Global

Members

api

Source:

<constant> CT_NEW_LINE :String

Source:

<constant> CT_SPACE :String

Source:

displayTokenErrors

Handles the display of errors found during Lexing
Source:

<constant> R_$ :Pattern

Source:

<constant> R_BRACE_CLOSE :Pattern

Source:

<constant> R_BRACE_OPEN :Pattern

Source:

<constant> R_CHAR :Pattern

Source:

<constant> R_CHARACTER :Pattern

Source:

<constant> R_DIGIT :Pattern

Source:

<constant> R_EQUALS :Pattern

Source:

<constant> R_INT :Pattern

Source:

<constant> R_MINUS :Pattern

Source:

<constant> R_NEW_LINE :Pattern

Source:

<constant> R_P :Pattern

Source:

<constant> R_PAREN_CLOSE :Pattern

Source:

<constant> R_PAREN_OPEN :Pattern

Source:

<constant> R_PLUS :Pattern

Source:

<constant> R_QUOTE :Pattern

Source:

<constant> R_SPACE :Pattern

Source:

<constant> T_$ :String

Source:

<constant> T_BRACE_CLOSE :String

Source:

<constant> T_BRACE_OPEN :String

Source:

<constant> T_CHAR :String

Source:

<constant> T_CHARACTER :String

Source:

<constant> T_DIGIT :String

Source:

<constant> T_EPSILON :String

Source:

<constant> T_EQUALS :String

Source:

<constant> T_INT :String

Source:

<constant> T_MINUS :String

Source:

<constant> T_P :String

Source:

<constant> T_PAREN_CLOSE :String

Source:

<constant> T_PAREN_OPEN :String

Source:

<constant> T_PLUS :String

Source:

<constant> T_QUOTE :String

Source:

<constant> Tests

Holds all the test cases to auto-load. Whitespace is important
Source:

<constant> Tokens :Object

Order of importance to the Lexer
Source:

Methods

clearOutput()

Completely clears output and shows productions pane
Source:

displayOutput()

Displays compiler output pane
Source:

init()

initializes Morph6502
Source:

loadTest()

Loads a test case into the editor
Source:

log(line, type, verbose)

Controls compiler output
Parameters:
Name Type Description
line String A line to add to output list
type String Classes to add to output list item
verbose Boolean Set to true if log should only be shown when verbose output is on. Default false
Source:

resetOutput()

Only clears output pane and line highlighting
Source:

setupKeyboardEvents()

Enables all special keyboard events that the interface requires
Source:

setVerbose()

Toggles verbose mode
Source:

specialKeys()

Handles keyboard events
Source:

trim(src) → {String}

Alan's Trim
Parameters:
Name Type Description
src String String to trim
Source:
Returns:
src with no whitespace on either side.
Type
String