Files
gymkhana-actions/docs/api/ESCCompiler.md
Dennis Ploeger 58d880101d Optimized Docs (#7)
Authored-by: Dennis Ploeger <develop@dieploegers.de>
2021-06-22 23:06:20 +02:00

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