Members
-
api
-
- Source:
- app.js, line 8
-
<constant> CT_NEW_LINE :String
-
- Source:
- Tokens.js, line 27
-
<constant> CT_SPACE :String
-
- Source:
- Tokens.js, line 28
-
displayTokenErrors
-
Handles the display of errors found during Lexing
- Source:
- output.js, line 54
-
<constant> R_$ :Pattern
-
- Source:
- Tokens.js, line 53
-
<constant> R_BRACE_CLOSE :Pattern
-
- Source:
- Tokens.js, line 44
-
<constant> R_BRACE_OPEN :Pattern
-
- Source:
- Tokens.js, line 43
-
<constant> R_CHAR :Pattern
-
- Source:
- Tokens.js, line 40
-
<constant> R_CHARACTER :Pattern
-
- Source:
- Tokens.js, line 42
-
<constant> R_DIGIT :Pattern
-
- Source:
- Tokens.js, line 41
-
<constant> R_EQUALS :Pattern
-
- Source:
- Tokens.js, line 48
-
<constant> R_INT :Pattern
-
- Source:
- Tokens.js, line 39
-
<constant> R_MINUS :Pattern
-
- Source:
- Tokens.js, line 52
-
<constant> R_NEW_LINE :Pattern
-
- Source:
- Tokens.js, line 54
-
<constant> R_P :Pattern
-
- Source:
- Tokens.js, line 49
-
<constant> R_PAREN_CLOSE :Pattern
-
- Source:
- Tokens.js, line 47
-
<constant> R_PAREN_OPEN :Pattern
-
- Source:
- Tokens.js, line 46
-
<constant> R_PLUS :Pattern
-
- Source:
- Tokens.js, line 51
-
<constant> R_QUOTE :Pattern
-
- Source:
- Tokens.js, line 50
-
<constant> R_SPACE :Pattern
-
- Source:
- Tokens.js, line 55
-
<constant> T_$ :String
-
- Source:
- Tokens.js, line 25
-
<constant> T_BRACE_CLOSE :String
-
- Source:
- Tokens.js, line 16
-
<constant> T_BRACE_OPEN :String
-
- Source:
- Tokens.js, line 15
-
<constant> T_CHAR :String
-
- Source:
- Tokens.js, line 12
-
<constant> T_CHARACTER :String
-
- Source:
- Tokens.js, line 14
-
<constant> T_DIGIT :String
-
- Source:
- Tokens.js, line 13
-
<constant> T_EPSILON :String
-
- Source:
- Tokens.js, line 17
-
<constant> T_EQUALS :String
-
- Source:
- Tokens.js, line 20
-
<constant> T_INT :String
-
- Source:
- Tokens.js, line 11
-
<constant> T_MINUS :String
-
- Source:
- Tokens.js, line 24
-
<constant> T_P :String
-
- Source:
- Tokens.js, line 21
-
<constant> T_PAREN_CLOSE :String
-
- Source:
- Tokens.js, line 19
-
<constant> T_PAREN_OPEN :String
-
- Source:
- Tokens.js, line 18
-
<constant> T_PLUS :String
-
- Source:
- Tokens.js, line 23
-
<constant> T_QUOTE :String
-
- Source:
- Tokens.js, line 22
-
<constant> Tests
-
Holds all the test cases to auto-load. Whitespace is important
- Source:
- tests.js, line 11
-
<constant> Tokens :Object
-
Order of importance to the Lexer
- Source:
- Tokens.js, line 63
Methods
-
clearOutput()
-
Completely clears output and shows productions pane
- Source:
- output.js, line 18
-
displayOutput()
-
Displays compiler output pane
- Source:
- output.js, line 10
-
init()
-
initializes Morph6502
- Source:
- app.js, line 18
-
loadTest()
-
Loads a test case into the editor
- Source:
- app.js, line 75
-
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:
- output.js, line 40
-
resetOutput()
-
Only clears output pane and line highlighting
- Source:
- output.js, line 27
-
setupKeyboardEvents()
-
Enables all special keyboard events that the interface requires
- Source:
- app.js, line 45
-
setVerbose()
-
Toggles verbose mode
- Source:
- app.js, line 64
-
specialKeys()
-
Handles keyboard events
- Source:
- app.js, line 52
-
trim(src) → {String}
-
Alan's Trim
Parameters:
Name Type Description src
String String to trim - Source:
- utils.js, line 13
Returns:
src with no whitespace on either side.- Type
- String