CraftScript
  • CraftScript
  • Syntax
    • Kinds
    • Keywords
    • Language Features
  • Tutorials
    • Getting Started
      • Assurance Keywords
      • Value Keywords
      • Condition Keywords
      • Other Keywords
    • Using the Language
      • The Do Block
    • Importing External Scripts
    • Adding CraftScript to a Server
    • Environments and Contexts
  • Libraries
    • Reflection
    • Debug
    • Math
    • Parser
    • Global
Powered by GitBook
On this page
  1. Libraries

Parser

A script interpreter available at runtime.

This library is a function for parsing text into a runnable script object.

The script object is not loaded into the environment but can be run with the run statement.

import [parser]

script = run parser "/say hello"
run script
PreviousMathNextGlobal

Last updated 1 year ago