827 B
827 B
ESCCompiler
Extends: Object
Description
Compiler of the ESC language
Constants Descriptions
COMMENT_REGEX
const COMMENT_REGEX: String = "^\\s*#.*$"
A RegEx for comment lines .*$'
EMPTY_REGEX
const EMPTY_REGEX: String = "^\\s*$"
A RegEx for empty lines
INDENT_REGEX
const INDENT_REGEX: String = "^(?<indent>\\s*)"
A RegEx for finding out the indent of a line
Method Descriptions
load_esc_file
func load_esc_file(path: String) -> ESCScript
Load an ESC file from a file resource
compile
func compile(lines: Array) -> ESCScript
Compiles an array of ESC script strings to an ESCScript