| Package | Description |
|---|---|
| me.jaimegarza.syntax.env | |
| me.jaimegarza.syntax.generator | |
| me.jaimegarza.syntax.language | |
| me.jaimegarza.syntax.model.parser |
| Modifier and Type | Method and Description |
|---|---|
Terminal |
RuntimeData.findTerminalById(int id)
Find one terminal by id
|
Terminal |
RuntimeData.findTerminalByName(String name)
Find one terminal by name
|
Terminal |
RuntimeData.findTerminalByToken(int tokenId)
Find one terminal by token
|
| Modifier and Type | Method and Description |
|---|---|
List<Terminal> |
RuntimeData.getTerminals() |
| Modifier and Type | Method and Description |
|---|---|
void |
RuntimeData.setTerminals(List<Terminal> terminals) |
| Modifier and Type | Method and Description |
|---|---|
protected Terminal |
AbstractCodeParser.declareOneTerminal(String id,
boolean isErrorToken,
Associativity associativity,
int precedence,
Type type,
int tokenNumber,
String fullName)
Declare a token
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
AbstractCodeParser.generateDefaultRegexCode(int dfaNode,
Terminal token)
Produce the if statement that will match the regex symbol and the default return code
|
protected boolean |
AbstractCodeParser.generateLexerCode(String lexerMode,
Terminal token)
copy action until the next ';' or '}' that actually closes
|
protected boolean |
AbstractCodeParser.generateRegexCode(String lexerMode,
int dfaNode,
Terminal token)
Produce the if statement that will match the regex symbol and include additional code
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
Pascal.generateLexerCode(FormattingPrintStream output,
String lexerMode,
Lexer lexer,
Terminal token,
int additionalIndent) |
boolean |
LanguageSupport.generateLexerCode(FormattingPrintStream output,
String lexerMode,
Lexer lexer,
Terminal token,
int additionalIndent)
Emit the code for the lexical part of the grammar
|
boolean |
BaseLanguageSupport.generateLexerCode(FormattingPrintStream output,
String lexerMode,
Lexer lexer,
Terminal token,
int additionalIndent) |
void |
Pascal.generateRegexReturn(FormattingPrintStream output,
Terminal token) |
void |
LanguageSupport.generateRegexReturn(FormattingPrintStream output,
Terminal token)
Generate the default return token for a regexp
|
void |
Javascript.generateRegexReturn(FormattingPrintStream output,
Terminal token) |
void |
Java.generateRegexReturn(FormattingPrintStream output,
Terminal token) |
void |
C.generateRegexReturn(FormattingPrintStream output,
Terminal token) |
void |
Pascal.generateToken(Terminal id,
boolean isLast) |
void |
LanguageSupport.generateToken(Terminal id,
boolean isLast)
Generate the code for a given token
|
void |
Javascript.generateToken(Terminal id,
boolean isLast) |
void |
Java.generateToken(Terminal id,
boolean isLast) |
void |
C.generateToken(Terminal id,
boolean isLast) |
protected boolean |
Pascal.lexerDollar(FormattingPrintStream output,
String lexerMode,
Lexer lexer,
Terminal token) |
protected boolean |
BaseLanguageSupport.lexerDollar(FormattingPrintStream output,
String lexerMode,
Lexer lexer,
Terminal token) |
| Modifier and Type | Class and Description |
|---|---|
class |
ErrorToken
~pojo class
Represents an error non terminal in the grammar . |
| Modifier and Type | Method and Description |
|---|---|
List<Terminal> |
TokenGroup.getTokens() |
| Modifier and Type | Method and Description |
|---|---|
void |
TokenGroup.setTokens(List<Terminal> tokens) |
| Constructor and Description |
|---|
TokenGroup(List<Terminal> tokens,
String name,
String displayName)
Construct a fully defined group
|
Copyright © 2017. All rights reserved.