Add project files.

This commit is contained in:
2025-08-18 17:11:43 +03:30
parent 807dc263be
commit e5eb10d604
3943 changed files with 223719 additions and 0 deletions
File diff suppressed because one or more lines are too long
+236
View File
@@ -0,0 +1,236 @@
// Generated from C:/Projects/Elsa/v3/src/dsl/Elsa.Dsl/Dsl\ElsaLexer.g4 by ANTLR 4.9.2
import org.antlr.v4.runtime.Lexer;
import org.antlr.v4.runtime.CharStream;
import org.antlr.v4.runtime.Token;
import org.antlr.v4.runtime.TokenStream;
import org.antlr.v4.runtime.*;
import org.antlr.v4.runtime.atn.*;
import org.antlr.v4.runtime.dfa.DFA;
import org.antlr.v4.runtime.misc.*;
@SuppressWarnings({"all", "warnings", "unchecked", "unused", "cast"})
public class ElsaLexer extends Lexer {
static { RuntimeMetaData.checkVersion("4.9.2", RuntimeMetaData.VERSION); }
protected static final DFA[] _decisionToDFA;
protected static final PredictionContextCache _sharedContextCache =
new PredictionContextCache();
public static final int
EQ=1, GREATER=2, INCREMENT=3, DECREMENT=4, NEW=5, VARIABLE=6, LET=7, IF=8,
THEN=9, ELSE=10, FOR=11, RETURN=12, VOID=13, FLOAT=14, INT=15, STRING=16,
OBJECT=17, EXPRESSION_MARKER=18, SYMBOL=19, COLON=20, SEMICOLON=21, COMMA=22,
PLUS=23, MINUS=24, STAR=25, EQUALS=26, NOT_EQUALS=27, GREATER_EQUALS=28,
LESS=29, LESS_EQUALS=30, LAMBDA=31, PARENTHESES_OPEN=32, PARENTHESES_CLOSE=33,
BRACKET_OPEN=34, BRACKET_CLOSE=35, CURLYBRACE_OPEN=36, CURLYBRACE_CLOSE=37,
EXCLAMATION=38, PIPE=39, PIPE_DBL=40, PERIOD=41, STRING_VAL=42, BACKTICKSTRING_VAL=43,
LINE_COMMENT=44, INTEGER_VAL=45, ID=46, WS=47, ESC=48;
public static String[] channelNames = {
"DEFAULT_TOKEN_CHANNEL", "HIDDEN"
};
public static String[] modeNames = {
"DEFAULT_MODE"
};
private static String[] makeRuleNames() {
return new String[] {
"EQ", "GREATER", "INCREMENT", "DECREMENT", "NEW", "VARIABLE", "LET",
"IF", "THEN", "ELSE", "FOR", "RETURN", "VOID", "FLOAT", "INT", "STRING",
"OBJECT", "EXPRESSION_MARKER", "SYMBOL", "COLON", "SEMICOLON", "COMMA",
"PLUS", "MINUS", "STAR", "EQUALS", "NOT_EQUALS", "GREATER_EQUALS", "LESS",
"LESS_EQUALS", "LAMBDA", "PARENTHESES_OPEN", "PARENTHESES_CLOSE", "BRACKET_OPEN",
"BRACKET_CLOSE", "CURLYBRACE_OPEN", "CURLYBRACE_CLOSE", "EXCLAMATION",
"PIPE", "PIPE_DBL", "PERIOD", "STRING_VAL", "BACKTICKSTRING_VAL", "LINE_COMMENT",
"INTEGER_VAL", "ID", "WS", "LETTER", "DIGIT", "ESC"
};
}
public static final String[] ruleNames = makeRuleNames();
private static String[] makeLiteralNames() {
return new String[] {
null, "'='", "'>'", "'++'", "'--'", "'new'", "'variable'", "'let'", "'if'",
"'then'", "'else'", "'for'", "'return'", "'void'", "'float'", "'int'",
"'string'", "'object'", "'expression'", null, "':'", "';'", "','", "'+'",
"'-'", "'*'", "'=='", "'!='", "'>='", "'<'", "'<='", "'=>'", "'('", "')'",
"'['", "']'", "'{'", "'}'", "'!'", "'|'", "'||'", "'.'", null, null,
null, null, null, null, "'\\|'"
};
}
private static final String[] _LITERAL_NAMES = makeLiteralNames();
private static String[] makeSymbolicNames() {
return new String[] {
null, "EQ", "GREATER", "INCREMENT", "DECREMENT", "NEW", "VARIABLE", "LET",
"IF", "THEN", "ELSE", "FOR", "RETURN", "VOID", "FLOAT", "INT", "STRING",
"OBJECT", "EXPRESSION_MARKER", "SYMBOL", "COLON", "SEMICOLON", "COMMA",
"PLUS", "MINUS", "STAR", "EQUALS", "NOT_EQUALS", "GREATER_EQUALS", "LESS",
"LESS_EQUALS", "LAMBDA", "PARENTHESES_OPEN", "PARENTHESES_CLOSE", "BRACKET_OPEN",
"BRACKET_CLOSE", "CURLYBRACE_OPEN", "CURLYBRACE_CLOSE", "EXCLAMATION",
"PIPE", "PIPE_DBL", "PERIOD", "STRING_VAL", "BACKTICKSTRING_VAL", "LINE_COMMENT",
"INTEGER_VAL", "ID", "WS", "ESC"
};
}
private static final String[] _SYMBOLIC_NAMES = makeSymbolicNames();
public static final Vocabulary VOCABULARY = new VocabularyImpl(_LITERAL_NAMES, _SYMBOLIC_NAMES);
/**
* @deprecated Use {@link #VOCABULARY} instead.
*/
@Deprecated
public static final String[] tokenNames;
static {
tokenNames = new String[_SYMBOLIC_NAMES.length];
for (int i = 0; i < tokenNames.length; i++) {
tokenNames[i] = VOCABULARY.getLiteralName(i);
if (tokenNames[i] == null) {
tokenNames[i] = VOCABULARY.getSymbolicName(i);
}
if (tokenNames[i] == null) {
tokenNames[i] = "<INVALID>";
}
}
}
@Override
@Deprecated
public String[] getTokenNames() {
return tokenNames;
}
@Override
public Vocabulary getVocabulary() {
return VOCABULARY;
}
public ElsaLexer(CharStream input) {
super(input);
_interp = new LexerATNSimulator(this,_ATN,_decisionToDFA,_sharedContextCache);
}
@Override
public String getGrammarFileName() { return "ElsaLexer.g4"; }
@Override
public String[] getRuleNames() { return ruleNames; }
@Override
public String getSerializedATN() { return _serializedATN; }
@Override
public String[] getChannelNames() { return channelNames; }
@Override
public String[] getModeNames() { return modeNames; }
@Override
public ATN getATN() { return _ATN; }
public static final String _serializedATN =
"\3\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964\2\62\u0134\b\1\4\2"+
"\t\2\4\3\t\3\4\4\t\4\4\5\t\5\4\6\t\6\4\7\t\7\4\b\t\b\4\t\t\t\4\n\t\n\4"+
"\13\t\13\4\f\t\f\4\r\t\r\4\16\t\16\4\17\t\17\4\20\t\20\4\21\t\21\4\22"+
"\t\22\4\23\t\23\4\24\t\24\4\25\t\25\4\26\t\26\4\27\t\27\4\30\t\30\4\31"+
"\t\31\4\32\t\32\4\33\t\33\4\34\t\34\4\35\t\35\4\36\t\36\4\37\t\37\4 \t"+
" \4!\t!\4\"\t\"\4#\t#\4$\t$\4%\t%\4&\t&\4\'\t\'\4(\t(\4)\t)\4*\t*\4+\t"+
"+\4,\t,\4-\t-\4.\t.\4/\t/\4\60\t\60\4\61\t\61\4\62\t\62\4\63\t\63\3\2"+
"\3\2\3\3\3\3\3\4\3\4\3\4\3\5\3\5\3\5\3\6\3\6\3\6\3\6\3\7\3\7\3\7\3\7\3"+
"\7\3\7\3\7\3\7\3\7\3\b\3\b\3\b\3\b\3\t\3\t\3\t\3\n\3\n\3\n\3\n\3\n\3\13"+
"\3\13\3\13\3\13\3\13\3\f\3\f\3\f\3\f\3\r\3\r\3\r\3\r\3\r\3\r\3\r\3\16"+
"\3\16\3\16\3\16\3\16\3\17\3\17\3\17\3\17\3\17\3\17\3\20\3\20\3\20\3\20"+
"\3\21\3\21\3\21\3\21\3\21\3\21\3\21\3\22\3\22\3\22\3\22\3\22\3\22\3\22"+
"\3\23\3\23\3\23\3\23\3\23\3\23\3\23\3\23\3\23\3\23\3\23\3\24\3\24\3\25"+
"\3\25\3\26\3\26\3\27\3\27\3\30\3\30\3\31\3\31\3\32\3\32\3\33\3\33\3\33"+
"\3\34\3\34\3\34\3\35\3\35\3\35\3\36\3\36\3\37\3\37\3\37\3 \3 \3 \3!\3"+
"!\3\"\3\"\3#\3#\3$\3$\3%\3%\3&\3&\3\'\3\'\3(\3(\3)\3)\3)\3*\3*\3+\3+\3"+
"+\3+\7+\u00fb\n+\f+\16+\u00fe\13+\3+\3+\3,\3,\3,\3,\7,\u0106\n,\f,\16"+
",\u0109\13,\3,\3,\3-\3-\3-\3-\7-\u0111\n-\f-\16-\u0114\13-\3-\5-\u0117"+
"\n-\3-\3-\3-\3-\3.\6.\u011e\n.\r.\16.\u011f\3/\3/\3/\7/\u0125\n/\f/\16"+
"/\u0128\13/\3\60\3\60\3\60\3\60\3\61\3\61\3\62\3\62\3\63\3\63\3\63\5\u00fc"+
"\u0107\u0112\2\64\3\3\5\4\7\5\t\6\13\7\r\b\17\t\21\n\23\13\25\f\27\r\31"+
"\16\33\17\35\20\37\21!\22#\23%\24\'\25)\26+\27-\30/\31\61\32\63\33\65"+
"\34\67\359\36;\37= ?!A\"C#E$G%I&K\'M(O)Q*S+U,W-Y.[/]\60_\61a\2c\2e\62"+
"\3\2\6\6\2&&--?@bb\5\2\13\f\17\17\"\"\5\2C\\aac|\3\2\62;\2\u013a\2\3\3"+
"\2\2\2\2\5\3\2\2\2\2\7\3\2\2\2\2\t\3\2\2\2\2\13\3\2\2\2\2\r\3\2\2\2\2"+
"\17\3\2\2\2\2\21\3\2\2\2\2\23\3\2\2\2\2\25\3\2\2\2\2\27\3\2\2\2\2\31\3"+
"\2\2\2\2\33\3\2\2\2\2\35\3\2\2\2\2\37\3\2\2\2\2!\3\2\2\2\2#\3\2\2\2\2"+
"%\3\2\2\2\2\'\3\2\2\2\2)\3\2\2\2\2+\3\2\2\2\2-\3\2\2\2\2/\3\2\2\2\2\61"+
"\3\2\2\2\2\63\3\2\2\2\2\65\3\2\2\2\2\67\3\2\2\2\29\3\2\2\2\2;\3\2\2\2"+
"\2=\3\2\2\2\2?\3\2\2\2\2A\3\2\2\2\2C\3\2\2\2\2E\3\2\2\2\2G\3\2\2\2\2I"+
"\3\2\2\2\2K\3\2\2\2\2M\3\2\2\2\2O\3\2\2\2\2Q\3\2\2\2\2S\3\2\2\2\2U\3\2"+
"\2\2\2W\3\2\2\2\2Y\3\2\2\2\2[\3\2\2\2\2]\3\2\2\2\2_\3\2\2\2\2e\3\2\2\2"+
"\3g\3\2\2\2\5i\3\2\2\2\7k\3\2\2\2\tn\3\2\2\2\13q\3\2\2\2\ru\3\2\2\2\17"+
"~\3\2\2\2\21\u0082\3\2\2\2\23\u0085\3\2\2\2\25\u008a\3\2\2\2\27\u008f"+
"\3\2\2\2\31\u0093\3\2\2\2\33\u009a\3\2\2\2\35\u009f\3\2\2\2\37\u00a5\3"+
"\2\2\2!\u00a9\3\2\2\2#\u00b0\3\2\2\2%\u00b7\3\2\2\2\'\u00c2\3\2\2\2)\u00c4"+
"\3\2\2\2+\u00c6\3\2\2\2-\u00c8\3\2\2\2/\u00ca\3\2\2\2\61\u00cc\3\2\2\2"+
"\63\u00ce\3\2\2\2\65\u00d0\3\2\2\2\67\u00d3\3\2\2\29\u00d6\3\2\2\2;\u00d9"+
"\3\2\2\2=\u00db\3\2\2\2?\u00de\3\2\2\2A\u00e1\3\2\2\2C\u00e3\3\2\2\2E"+
"\u00e5\3\2\2\2G\u00e7\3\2\2\2I\u00e9\3\2\2\2K\u00eb\3\2\2\2M\u00ed\3\2"+
"\2\2O\u00ef\3\2\2\2Q\u00f1\3\2\2\2S\u00f4\3\2\2\2U\u00f6\3\2\2\2W\u0101"+
"\3\2\2\2Y\u010c\3\2\2\2[\u011d\3\2\2\2]\u0121\3\2\2\2_\u0129\3\2\2\2a"+
"\u012d\3\2\2\2c\u012f\3\2\2\2e\u0131\3\2\2\2gh\7?\2\2h\4\3\2\2\2ij\7@"+
"\2\2j\6\3\2\2\2kl\7-\2\2lm\7-\2\2m\b\3\2\2\2no\7/\2\2op\7/\2\2p\n\3\2"+
"\2\2qr\7p\2\2rs\7g\2\2st\7y\2\2t\f\3\2\2\2uv\7x\2\2vw\7c\2\2wx\7t\2\2"+
"xy\7k\2\2yz\7c\2\2z{\7d\2\2{|\7n\2\2|}\7g\2\2}\16\3\2\2\2~\177\7n\2\2"+
"\177\u0080\7g\2\2\u0080\u0081\7v\2\2\u0081\20\3\2\2\2\u0082\u0083\7k\2"+
"\2\u0083\u0084\7h\2\2\u0084\22\3\2\2\2\u0085\u0086\7v\2\2\u0086\u0087"+
"\7j\2\2\u0087\u0088\7g\2\2\u0088\u0089\7p\2\2\u0089\24\3\2\2\2\u008a\u008b"+
"\7g\2\2\u008b\u008c\7n\2\2\u008c\u008d\7u\2\2\u008d\u008e\7g\2\2\u008e"+
"\26\3\2\2\2\u008f\u0090\7h\2\2\u0090\u0091\7q\2\2\u0091\u0092\7t\2\2\u0092"+
"\30\3\2\2\2\u0093\u0094\7t\2\2\u0094\u0095\7g\2\2\u0095\u0096\7v\2\2\u0096"+
"\u0097\7w\2\2\u0097\u0098\7t\2\2\u0098\u0099\7p\2\2\u0099\32\3\2\2\2\u009a"+
"\u009b\7x\2\2\u009b\u009c\7q\2\2\u009c\u009d\7k\2\2\u009d\u009e\7f\2\2"+
"\u009e\34\3\2\2\2\u009f\u00a0\7h\2\2\u00a0\u00a1\7n\2\2\u00a1\u00a2\7"+
"q\2\2\u00a2\u00a3\7c\2\2\u00a3\u00a4\7v\2\2\u00a4\36\3\2\2\2\u00a5\u00a6"+
"\7k\2\2\u00a6\u00a7\7p\2\2\u00a7\u00a8\7v\2\2\u00a8 \3\2\2\2\u00a9\u00aa"+
"\7u\2\2\u00aa\u00ab\7v\2\2\u00ab\u00ac\7t\2\2\u00ac\u00ad\7k\2\2\u00ad"+
"\u00ae\7p\2\2\u00ae\u00af\7i\2\2\u00af\"\3\2\2\2\u00b0\u00b1\7q\2\2\u00b1"+
"\u00b2\7d\2\2\u00b2\u00b3\7l\2\2\u00b3\u00b4\7g\2\2\u00b4\u00b5\7e\2\2"+
"\u00b5\u00b6\7v\2\2\u00b6$\3\2\2\2\u00b7\u00b8\7g\2\2\u00b8\u00b9\7z\2"+
"\2\u00b9\u00ba\7r\2\2\u00ba\u00bb\7t\2\2\u00bb\u00bc\7g\2\2\u00bc\u00bd"+
"\7u\2\2\u00bd\u00be\7u\2\2\u00be\u00bf\7k\2\2\u00bf\u00c0\7q\2\2\u00c0"+
"\u00c1\7p\2\2\u00c1&\3\2\2\2\u00c2\u00c3\t\2\2\2\u00c3(\3\2\2\2\u00c4"+
"\u00c5\7<\2\2\u00c5*\3\2\2\2\u00c6\u00c7\7=\2\2\u00c7,\3\2\2\2\u00c8\u00c9"+
"\7.\2\2\u00c9.\3\2\2\2\u00ca\u00cb\7-\2\2\u00cb\60\3\2\2\2\u00cc\u00cd"+
"\7/\2\2\u00cd\62\3\2\2\2\u00ce\u00cf\7,\2\2\u00cf\64\3\2\2\2\u00d0\u00d1"+
"\7?\2\2\u00d1\u00d2\7?\2\2\u00d2\66\3\2\2\2\u00d3\u00d4\7#\2\2\u00d4\u00d5"+
"\7?\2\2\u00d58\3\2\2\2\u00d6\u00d7\7@\2\2\u00d7\u00d8\7?\2\2\u00d8:\3"+
"\2\2\2\u00d9\u00da\7>\2\2\u00da<\3\2\2\2\u00db\u00dc\7>\2\2\u00dc\u00dd"+
"\7?\2\2\u00dd>\3\2\2\2\u00de\u00df\7?\2\2\u00df\u00e0\7@\2\2\u00e0@\3"+
"\2\2\2\u00e1\u00e2\7*\2\2\u00e2B\3\2\2\2\u00e3\u00e4\7+\2\2\u00e4D\3\2"+
"\2\2\u00e5\u00e6\7]\2\2\u00e6F\3\2\2\2\u00e7\u00e8\7_\2\2\u00e8H\3\2\2"+
"\2\u00e9\u00ea\7}\2\2\u00eaJ\3\2\2\2\u00eb\u00ec\7\177\2\2\u00ecL\3\2"+
"\2\2\u00ed\u00ee\7#\2\2\u00eeN\3\2\2\2\u00ef\u00f0\7~\2\2\u00f0P\3\2\2"+
"\2\u00f1\u00f2\7~\2\2\u00f2\u00f3\7~\2\2\u00f3R\3\2\2\2\u00f4\u00f5\7"+
"\60\2\2\u00f5T\3\2\2\2\u00f6\u00fc\7$\2\2\u00f7\u00f8\7^\2\2\u00f8\u00fb"+
"\7$\2\2\u00f9\u00fb\13\2\2\2\u00fa\u00f7\3\2\2\2\u00fa\u00f9\3\2\2\2\u00fb"+
"\u00fe\3\2\2\2\u00fc\u00fd\3\2\2\2\u00fc\u00fa\3\2\2\2\u00fd\u00ff\3\2"+
"\2\2\u00fe\u00fc\3\2\2\2\u00ff\u0100\7$\2\2\u0100V\3\2\2\2\u0101\u0107"+
"\7b\2\2\u0102\u0103\7^\2\2\u0103\u0106\7$\2\2\u0104\u0106\13\2\2\2\u0105"+
"\u0102\3\2\2\2\u0105\u0104\3\2\2\2\u0106\u0109\3\2\2\2\u0107\u0108\3\2"+
"\2\2\u0107\u0105\3\2\2\2\u0108\u010a\3\2\2\2\u0109\u0107\3\2\2\2\u010a"+
"\u010b\7b\2\2\u010bX\3\2\2\2\u010c\u010d\7\61\2\2\u010d\u010e\7\61\2\2"+
"\u010e\u0112\3\2\2\2\u010f\u0111\13\2\2\2\u0110\u010f\3\2\2\2\u0111\u0114"+
"\3\2\2\2\u0112\u0113\3\2\2\2\u0112\u0110\3\2\2\2\u0113\u0116\3\2\2\2\u0114"+
"\u0112\3\2\2\2\u0115\u0117\7\17\2\2\u0116\u0115\3\2\2\2\u0116\u0117\3"+
"\2\2\2\u0117\u0118\3\2\2\2\u0118\u0119\7\f\2\2\u0119\u011a\3\2\2\2\u011a"+
"\u011b\b-\2\2\u011bZ\3\2\2\2\u011c\u011e\5c\62\2\u011d\u011c\3\2\2\2\u011e"+
"\u011f\3\2\2\2\u011f\u011d\3\2\2\2\u011f\u0120\3\2\2\2\u0120\\\3\2\2\2"+
"\u0121\u0126\5a\61\2\u0122\u0125\5a\61\2\u0123\u0125\5c\62\2\u0124\u0122"+
"\3\2\2\2\u0124\u0123\3\2\2\2\u0125\u0128\3\2\2\2\u0126\u0124\3\2\2\2\u0126"+
"\u0127\3\2\2\2\u0127^\3\2\2\2\u0128\u0126\3\2\2\2\u0129\u012a\t\3\2\2"+
"\u012a\u012b\3\2\2\2\u012b\u012c\b\60\2\2\u012c`\3\2\2\2\u012d\u012e\t"+
"\4\2\2\u012eb\3\2\2\2\u012f\u0130\t\5\2\2\u0130d\3\2\2\2\u0131\u0132\7"+
"^\2\2\u0132\u0133\7~\2\2\u0133f\3\2\2\2\f\2\u00fa\u00fc\u0105\u0107\u0112"+
"\u0116\u011f\u0124\u0126\3\b\2\2";
public static final ATN _ATN =
new ATNDeserializer().deserialize(_serializedATN.toCharArray());
static {
_decisionToDFA = new DFA[_ATN.getNumberOfDecisions()];
for (int i = 0; i < _ATN.getNumberOfDecisions(); i++) {
_decisionToDFA[i] = new DFA(_ATN.getDecisionState(i), i);
}
}
}
+89
View File
@@ -0,0 +1,89 @@
EQ=1
GREATER=2
INCREMENT=3
DECREMENT=4
NEW=5
VARIABLE=6
LET=7
IF=8
THEN=9
ELSE=10
FOR=11
RETURN=12
VOID=13
FLOAT=14
INT=15
STRING=16
OBJECT=17
EXPRESSION_MARKER=18
SYMBOL=19
COLON=20
SEMICOLON=21
COMMA=22
PLUS=23
MINUS=24
STAR=25
EQUALS=26
NOT_EQUALS=27
GREATER_EQUALS=28
LESS=29
LESS_EQUALS=30
LAMBDA=31
PARENTHESES_OPEN=32
PARENTHESES_CLOSE=33
BRACKET_OPEN=34
BRACKET_CLOSE=35
CURLYBRACE_OPEN=36
CURLYBRACE_CLOSE=37
EXCLAMATION=38
PIPE=39
PIPE_DBL=40
PERIOD=41
STRING_VAL=42
BACKTICKSTRING_VAL=43
LINE_COMMENT=44
INTEGER_VAL=45
ID=46
WS=47
ESC=48
'='=1
'>'=2
'++'=3
'--'=4
'new'=5
'variable'=6
'let'=7
'if'=8
'then'=9
'else'=10
'for'=11
'return'=12
'void'=13
'float'=14
'int'=15
'string'=16
'object'=17
'expression'=18
':'=20
';'=21
','=22
'+'=23
'-'=24
'*'=25
'=='=26
'!='=27
'>='=28
'<'=29
'<='=30
'=>'=31
'('=32
')'=33
'['=34
']'=35
'{'=36
'}'=37
'!'=38
'|'=39
'||'=40
'.'=41
'\\|'=48
File diff suppressed because one or more lines are too long
+2471
View File
File diff suppressed because it is too large Load Diff
+89
View File
@@ -0,0 +1,89 @@
EQ=1
GREATER=2
INCREMENT=3
DECREMENT=4
NEW=5
VARIABLE=6
LET=7
IF=8
THEN=9
ELSE=10
FOR=11
RETURN=12
VOID=13
FLOAT=14
INT=15
STRING=16
OBJECT=17
EXPRESSION_MARKER=18
SYMBOL=19
COLON=20
SEMICOLON=21
COMMA=22
PLUS=23
MINUS=24
STAR=25
EQUALS=26
NOT_EQUALS=27
GREATER_EQUALS=28
LESS=29
LESS_EQUALS=30
LAMBDA=31
PARENTHESES_OPEN=32
PARENTHESES_CLOSE=33
BRACKET_OPEN=34
BRACKET_CLOSE=35
CURLYBRACE_OPEN=36
CURLYBRACE_CLOSE=37
EXCLAMATION=38
PIPE=39
PIPE_DBL=40
PERIOD=41
STRING_VAL=42
BACKTICKSTRING_VAL=43
LINE_COMMENT=44
INTEGER_VAL=45
ID=46
WS=47
ESC=48
'='=1
'>'=2
'++'=3
'--'=4
'new'=5
'variable'=6
'let'=7
'if'=8
'then'=9
'else'=10
'for'=11
'return'=12
'void'=13
'float'=14
'int'=15
'string'=16
'object'=17
'expression'=18
':'=20
';'=21
','=22
'+'=23
'-'=24
'*'=25
'=='=26
'!='=27
'>='=28
'<'=29
'<='=30
'=>'=31
'('=32
')'=33
'['=34
']'=35
'{'=36
'}'=37
'!'=38
'|'=39
'||'=40
'.'=41
'\\|'=48
+590
View File
@@ -0,0 +1,590 @@
// Generated from C:/Projects/Elsa/v3/src/dsl/Elsa.Dsl/Dsl\ElsaParser.g4 by ANTLR 4.9.2
import org.antlr.v4.runtime.ParserRuleContext;
import org.antlr.v4.runtime.tree.ErrorNode;
import org.antlr.v4.runtime.tree.TerminalNode;
/**
* This class provides an empty implementation of {@link ElsaParserListener},
* which can be extended to create a listener which only needs to handle a subset
* of the available methods.
*/
public class ElsaParserBaseListener implements ElsaParserListener {
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void enterProgram(ElsaParser.ProgramContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void exitProgram(ElsaParser.ProgramContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void enterObject(ElsaParser.ObjectContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void exitObject(ElsaParser.ObjectContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void enterNewObject(ElsaParser.NewObjectContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void exitNewObject(ElsaParser.NewObjectContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void enterVarDecl(ElsaParser.VarDeclContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void exitVarDecl(ElsaParser.VarDeclContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void enterLocalVarDecl(ElsaParser.LocalVarDeclContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void exitLocalVarDecl(ElsaParser.LocalVarDeclContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void enterType(ElsaParser.TypeContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void exitType(ElsaParser.TypeContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void enterExpressionMarker(ElsaParser.ExpressionMarkerContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void exitExpressionMarker(ElsaParser.ExpressionMarkerContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void enterExpressionContent(ElsaParser.ExpressionContentContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void exitExpressionContent(ElsaParser.ExpressionContentContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void enterMethodCall(ElsaParser.MethodCallContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void exitMethodCall(ElsaParser.MethodCallContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void enterFuncCall(ElsaParser.FuncCallContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void exitFuncCall(ElsaParser.FuncCallContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void enterArgs(ElsaParser.ArgsContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void exitArgs(ElsaParser.ArgsContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void enterArg(ElsaParser.ArgContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void exitArg(ElsaParser.ArgContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void enterBlock(ElsaParser.BlockContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void exitBlock(ElsaParser.BlockContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void enterObjectInitializer(ElsaParser.ObjectInitializerContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void exitObjectInitializer(ElsaParser.ObjectInitializerContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void enterPropertyList(ElsaParser.PropertyListContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void exitPropertyList(ElsaParser.PropertyListContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void enterProperty(ElsaParser.PropertyContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void exitProperty(ElsaParser.PropertyContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void enterObjectStat(ElsaParser.ObjectStatContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void exitObjectStat(ElsaParser.ObjectStatContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void enterIfStat(ElsaParser.IfStatContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void exitIfStat(ElsaParser.IfStatContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void enterForStat(ElsaParser.ForStatContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void exitForStat(ElsaParser.ForStatContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void enterReturnStat(ElsaParser.ReturnStatContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void exitReturnStat(ElsaParser.ReturnStatContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void enterBlockStat(ElsaParser.BlockStatContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void exitBlockStat(ElsaParser.BlockStatContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void enterVariableDeclarationStat(ElsaParser.VariableDeclarationStatContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void exitVariableDeclarationStat(ElsaParser.VariableDeclarationStatContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void enterLocalVariableDeclarationStat(ElsaParser.LocalVariableDeclarationStatContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void exitLocalVariableDeclarationStat(ElsaParser.LocalVariableDeclarationStatContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void enterAssignmentStat(ElsaParser.AssignmentStatContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void exitAssignmentStat(ElsaParser.AssignmentStatContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void enterExpressionStat(ElsaParser.ExpressionStatContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void exitExpressionStat(ElsaParser.ExpressionStatContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void enterThenStat(ElsaParser.ThenStatContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void exitThenStat(ElsaParser.ThenStatContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void enterElseStat(ElsaParser.ElseStatContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void exitElseStat(ElsaParser.ElseStatContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void enterNewObjectExpr(ElsaParser.NewObjectExprContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void exitNewObjectExpr(ElsaParser.NewObjectExprContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void enterSubtractExpr(ElsaParser.SubtractExprContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void exitSubtractExpr(ElsaParser.SubtractExprContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void enterIncrementExpr(ElsaParser.IncrementExprContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void exitIncrementExpr(ElsaParser.IncrementExprContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void enterObjectExpr(ElsaParser.ObjectExprContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void exitObjectExpr(ElsaParser.ObjectExprContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void enterStringValueExpr(ElsaParser.StringValueExprContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void exitStringValueExpr(ElsaParser.StringValueExprContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void enterMultiplyExpr(ElsaParser.MultiplyExprContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void exitMultiplyExpr(ElsaParser.MultiplyExprContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void enterParenthesesExpr(ElsaParser.ParenthesesExprContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void exitParenthesesExpr(ElsaParser.ParenthesesExprContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void enterFunctionExpr(ElsaParser.FunctionExprContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void exitFunctionExpr(ElsaParser.FunctionExprContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void enterDecrementExpr(ElsaParser.DecrementExprContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void exitDecrementExpr(ElsaParser.DecrementExprContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void enterNegateExpr(ElsaParser.NegateExprContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void exitNegateExpr(ElsaParser.NegateExprContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void enterMethodCallExpr(ElsaParser.MethodCallExprContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void exitMethodCallExpr(ElsaParser.MethodCallExprContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void enterVariableExpr(ElsaParser.VariableExprContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void exitVariableExpr(ElsaParser.VariableExprContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void enterNotExpr(ElsaParser.NotExprContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void exitNotExpr(ElsaParser.NotExprContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void enterIntegerValueExpr(ElsaParser.IntegerValueExprContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void exitIntegerValueExpr(ElsaParser.IntegerValueExprContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void enterAddExpr(ElsaParser.AddExprContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void exitAddExpr(ElsaParser.AddExprContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void enterBackTickStringValueExpr(ElsaParser.BackTickStringValueExprContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void exitBackTickStringValueExpr(ElsaParser.BackTickStringValueExprContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void enterBracketsExpr(ElsaParser.BracketsExprContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void exitBracketsExpr(ElsaParser.BracketsExprContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void enterCompareExpr(ElsaParser.CompareExprContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void exitCompareExpr(ElsaParser.CompareExprContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void enterExprList(ElsaParser.ExprListContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void exitExprList(ElsaParser.ExprListContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void enterEveryRule(ParserRuleContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void exitEveryRule(ParserRuleContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void visitTerminal(TerminalNode node) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void visitErrorNode(ErrorNode node) { }
}
+335
View File
@@ -0,0 +1,335 @@
// Generated from C:/Projects/Elsa/v3/src/dsl/Elsa.Dsl/Dsl\ElsaParser.g4 by ANTLR 4.9.2
import org.antlr.v4.runtime.tree.AbstractParseTreeVisitor;
/**
* This class provides an empty implementation of {@link ElsaParserVisitor},
* which can be extended to create a visitor which only needs to handle a subset
* of the available methods.
*
* @param <T> The return type of the visit operation. Use {@link Void} for
* operations with no return type.
*/
public class ElsaParserBaseVisitor<T> extends AbstractParseTreeVisitor<T> implements ElsaParserVisitor<T> {
/**
* {@inheritDoc}
*
* <p>The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.</p>
*/
@Override public T visitProgram(ElsaParser.ProgramContext ctx) { return visitChildren(ctx); }
/**
* {@inheritDoc}
*
* <p>The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.</p>
*/
@Override public T visitObject(ElsaParser.ObjectContext ctx) { return visitChildren(ctx); }
/**
* {@inheritDoc}
*
* <p>The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.</p>
*/
@Override public T visitNewObject(ElsaParser.NewObjectContext ctx) { return visitChildren(ctx); }
/**
* {@inheritDoc}
*
* <p>The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.</p>
*/
@Override public T visitVarDecl(ElsaParser.VarDeclContext ctx) { return visitChildren(ctx); }
/**
* {@inheritDoc}
*
* <p>The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.</p>
*/
@Override public T visitLocalVarDecl(ElsaParser.LocalVarDeclContext ctx) { return visitChildren(ctx); }
/**
* {@inheritDoc}
*
* <p>The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.</p>
*/
@Override public T visitType(ElsaParser.TypeContext ctx) { return visitChildren(ctx); }
/**
* {@inheritDoc}
*
* <p>The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.</p>
*/
@Override public T visitExpressionMarker(ElsaParser.ExpressionMarkerContext ctx) { return visitChildren(ctx); }
/**
* {@inheritDoc}
*
* <p>The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.</p>
*/
@Override public T visitExpressionContent(ElsaParser.ExpressionContentContext ctx) { return visitChildren(ctx); }
/**
* {@inheritDoc}
*
* <p>The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.</p>
*/
@Override public T visitMethodCall(ElsaParser.MethodCallContext ctx) { return visitChildren(ctx); }
/**
* {@inheritDoc}
*
* <p>The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.</p>
*/
@Override public T visitFuncCall(ElsaParser.FuncCallContext ctx) { return visitChildren(ctx); }
/**
* {@inheritDoc}
*
* <p>The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.</p>
*/
@Override public T visitArgs(ElsaParser.ArgsContext ctx) { return visitChildren(ctx); }
/**
* {@inheritDoc}
*
* <p>The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.</p>
*/
@Override public T visitArg(ElsaParser.ArgContext ctx) { return visitChildren(ctx); }
/**
* {@inheritDoc}
*
* <p>The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.</p>
*/
@Override public T visitBlock(ElsaParser.BlockContext ctx) { return visitChildren(ctx); }
/**
* {@inheritDoc}
*
* <p>The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.</p>
*/
@Override public T visitObjectInitializer(ElsaParser.ObjectInitializerContext ctx) { return visitChildren(ctx); }
/**
* {@inheritDoc}
*
* <p>The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.</p>
*/
@Override public T visitPropertyList(ElsaParser.PropertyListContext ctx) { return visitChildren(ctx); }
/**
* {@inheritDoc}
*
* <p>The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.</p>
*/
@Override public T visitProperty(ElsaParser.PropertyContext ctx) { return visitChildren(ctx); }
/**
* {@inheritDoc}
*
* <p>The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.</p>
*/
@Override public T visitObjectStat(ElsaParser.ObjectStatContext ctx) { return visitChildren(ctx); }
/**
* {@inheritDoc}
*
* <p>The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.</p>
*/
@Override public T visitIfStat(ElsaParser.IfStatContext ctx) { return visitChildren(ctx); }
/**
* {@inheritDoc}
*
* <p>The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.</p>
*/
@Override public T visitForStat(ElsaParser.ForStatContext ctx) { return visitChildren(ctx); }
/**
* {@inheritDoc}
*
* <p>The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.</p>
*/
@Override public T visitReturnStat(ElsaParser.ReturnStatContext ctx) { return visitChildren(ctx); }
/**
* {@inheritDoc}
*
* <p>The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.</p>
*/
@Override public T visitBlockStat(ElsaParser.BlockStatContext ctx) { return visitChildren(ctx); }
/**
* {@inheritDoc}
*
* <p>The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.</p>
*/
@Override public T visitVariableDeclarationStat(ElsaParser.VariableDeclarationStatContext ctx) { return visitChildren(ctx); }
/**
* {@inheritDoc}
*
* <p>The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.</p>
*/
@Override public T visitLocalVariableDeclarationStat(ElsaParser.LocalVariableDeclarationStatContext ctx) { return visitChildren(ctx); }
/**
* {@inheritDoc}
*
* <p>The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.</p>
*/
@Override public T visitAssignmentStat(ElsaParser.AssignmentStatContext ctx) { return visitChildren(ctx); }
/**
* {@inheritDoc}
*
* <p>The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.</p>
*/
@Override public T visitExpressionStat(ElsaParser.ExpressionStatContext ctx) { return visitChildren(ctx); }
/**
* {@inheritDoc}
*
* <p>The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.</p>
*/
@Override public T visitThenStat(ElsaParser.ThenStatContext ctx) { return visitChildren(ctx); }
/**
* {@inheritDoc}
*
* <p>The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.</p>
*/
@Override public T visitElseStat(ElsaParser.ElseStatContext ctx) { return visitChildren(ctx); }
/**
* {@inheritDoc}
*
* <p>The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.</p>
*/
@Override public T visitNewObjectExpr(ElsaParser.NewObjectExprContext ctx) { return visitChildren(ctx); }
/**
* {@inheritDoc}
*
* <p>The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.</p>
*/
@Override public T visitSubtractExpr(ElsaParser.SubtractExprContext ctx) { return visitChildren(ctx); }
/**
* {@inheritDoc}
*
* <p>The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.</p>
*/
@Override public T visitIncrementExpr(ElsaParser.IncrementExprContext ctx) { return visitChildren(ctx); }
/**
* {@inheritDoc}
*
* <p>The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.</p>
*/
@Override public T visitObjectExpr(ElsaParser.ObjectExprContext ctx) { return visitChildren(ctx); }
/**
* {@inheritDoc}
*
* <p>The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.</p>
*/
@Override public T visitStringValueExpr(ElsaParser.StringValueExprContext ctx) { return visitChildren(ctx); }
/**
* {@inheritDoc}
*
* <p>The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.</p>
*/
@Override public T visitMultiplyExpr(ElsaParser.MultiplyExprContext ctx) { return visitChildren(ctx); }
/**
* {@inheritDoc}
*
* <p>The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.</p>
*/
@Override public T visitParenthesesExpr(ElsaParser.ParenthesesExprContext ctx) { return visitChildren(ctx); }
/**
* {@inheritDoc}
*
* <p>The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.</p>
*/
@Override public T visitFunctionExpr(ElsaParser.FunctionExprContext ctx) { return visitChildren(ctx); }
/**
* {@inheritDoc}
*
* <p>The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.</p>
*/
@Override public T visitDecrementExpr(ElsaParser.DecrementExprContext ctx) { return visitChildren(ctx); }
/**
* {@inheritDoc}
*
* <p>The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.</p>
*/
@Override public T visitNegateExpr(ElsaParser.NegateExprContext ctx) { return visitChildren(ctx); }
/**
* {@inheritDoc}
*
* <p>The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.</p>
*/
@Override public T visitMethodCallExpr(ElsaParser.MethodCallExprContext ctx) { return visitChildren(ctx); }
/**
* {@inheritDoc}
*
* <p>The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.</p>
*/
@Override public T visitVariableExpr(ElsaParser.VariableExprContext ctx) { return visitChildren(ctx); }
/**
* {@inheritDoc}
*
* <p>The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.</p>
*/
@Override public T visitNotExpr(ElsaParser.NotExprContext ctx) { return visitChildren(ctx); }
/**
* {@inheritDoc}
*
* <p>The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.</p>
*/
@Override public T visitIntegerValueExpr(ElsaParser.IntegerValueExprContext ctx) { return visitChildren(ctx); }
/**
* {@inheritDoc}
*
* <p>The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.</p>
*/
@Override public T visitAddExpr(ElsaParser.AddExprContext ctx) { return visitChildren(ctx); }
/**
* {@inheritDoc}
*
* <p>The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.</p>
*/
@Override public T visitBackTickStringValueExpr(ElsaParser.BackTickStringValueExprContext ctx) { return visitChildren(ctx); }
/**
* {@inheritDoc}
*
* <p>The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.</p>
*/
@Override public T visitBracketsExpr(ElsaParser.BracketsExprContext ctx) { return visitChildren(ctx); }
/**
* {@inheritDoc}
*
* <p>The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.</p>
*/
@Override public T visitCompareExpr(ElsaParser.CompareExprContext ctx) { return visitChildren(ctx); }
/**
* {@inheritDoc}
*
* <p>The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.</p>
*/
@Override public T visitExprList(ElsaParser.ExprListContext ctx) { return visitChildren(ctx); }
}
+523
View File
@@ -0,0 +1,523 @@
// Generated from C:/Projects/Elsa/v3/src/dsl/Elsa.Dsl/Dsl\ElsaParser.g4 by ANTLR 4.9.2
import org.antlr.v4.runtime.tree.ParseTreeListener;
/**
* This interface defines a complete listener for a parse tree produced by
* {@link ElsaParser}.
*/
public interface ElsaParserListener extends ParseTreeListener {
/**
* Enter a parse tree produced by {@link ElsaParser#program}.
* @param ctx the parse tree
*/
void enterProgram(ElsaParser.ProgramContext ctx);
/**
* Exit a parse tree produced by {@link ElsaParser#program}.
* @param ctx the parse tree
*/
void exitProgram(ElsaParser.ProgramContext ctx);
/**
* Enter a parse tree produced by {@link ElsaParser#object}.
* @param ctx the parse tree
*/
void enterObject(ElsaParser.ObjectContext ctx);
/**
* Exit a parse tree produced by {@link ElsaParser#object}.
* @param ctx the parse tree
*/
void exitObject(ElsaParser.ObjectContext ctx);
/**
* Enter a parse tree produced by {@link ElsaParser#newObject}.
* @param ctx the parse tree
*/
void enterNewObject(ElsaParser.NewObjectContext ctx);
/**
* Exit a parse tree produced by {@link ElsaParser#newObject}.
* @param ctx the parse tree
*/
void exitNewObject(ElsaParser.NewObjectContext ctx);
/**
* Enter a parse tree produced by {@link ElsaParser#varDecl}.
* @param ctx the parse tree
*/
void enterVarDecl(ElsaParser.VarDeclContext ctx);
/**
* Exit a parse tree produced by {@link ElsaParser#varDecl}.
* @param ctx the parse tree
*/
void exitVarDecl(ElsaParser.VarDeclContext ctx);
/**
* Enter a parse tree produced by {@link ElsaParser#localVarDecl}.
* @param ctx the parse tree
*/
void enterLocalVarDecl(ElsaParser.LocalVarDeclContext ctx);
/**
* Exit a parse tree produced by {@link ElsaParser#localVarDecl}.
* @param ctx the parse tree
*/
void exitLocalVarDecl(ElsaParser.LocalVarDeclContext ctx);
/**
* Enter a parse tree produced by {@link ElsaParser#type}.
* @param ctx the parse tree
*/
void enterType(ElsaParser.TypeContext ctx);
/**
* Exit a parse tree produced by {@link ElsaParser#type}.
* @param ctx the parse tree
*/
void exitType(ElsaParser.TypeContext ctx);
/**
* Enter a parse tree produced by {@link ElsaParser#expressionMarker}.
* @param ctx the parse tree
*/
void enterExpressionMarker(ElsaParser.ExpressionMarkerContext ctx);
/**
* Exit a parse tree produced by {@link ElsaParser#expressionMarker}.
* @param ctx the parse tree
*/
void exitExpressionMarker(ElsaParser.ExpressionMarkerContext ctx);
/**
* Enter a parse tree produced by {@link ElsaParser#expressionContent}.
* @param ctx the parse tree
*/
void enterExpressionContent(ElsaParser.ExpressionContentContext ctx);
/**
* Exit a parse tree produced by {@link ElsaParser#expressionContent}.
* @param ctx the parse tree
*/
void exitExpressionContent(ElsaParser.ExpressionContentContext ctx);
/**
* Enter a parse tree produced by {@link ElsaParser#methodCall}.
* @param ctx the parse tree
*/
void enterMethodCall(ElsaParser.MethodCallContext ctx);
/**
* Exit a parse tree produced by {@link ElsaParser#methodCall}.
* @param ctx the parse tree
*/
void exitMethodCall(ElsaParser.MethodCallContext ctx);
/**
* Enter a parse tree produced by {@link ElsaParser#funcCall}.
* @param ctx the parse tree
*/
void enterFuncCall(ElsaParser.FuncCallContext ctx);
/**
* Exit a parse tree produced by {@link ElsaParser#funcCall}.
* @param ctx the parse tree
*/
void exitFuncCall(ElsaParser.FuncCallContext ctx);
/**
* Enter a parse tree produced by {@link ElsaParser#args}.
* @param ctx the parse tree
*/
void enterArgs(ElsaParser.ArgsContext ctx);
/**
* Exit a parse tree produced by {@link ElsaParser#args}.
* @param ctx the parse tree
*/
void exitArgs(ElsaParser.ArgsContext ctx);
/**
* Enter a parse tree produced by {@link ElsaParser#arg}.
* @param ctx the parse tree
*/
void enterArg(ElsaParser.ArgContext ctx);
/**
* Exit a parse tree produced by {@link ElsaParser#arg}.
* @param ctx the parse tree
*/
void exitArg(ElsaParser.ArgContext ctx);
/**
* Enter a parse tree produced by {@link ElsaParser#block}.
* @param ctx the parse tree
*/
void enterBlock(ElsaParser.BlockContext ctx);
/**
* Exit a parse tree produced by {@link ElsaParser#block}.
* @param ctx the parse tree
*/
void exitBlock(ElsaParser.BlockContext ctx);
/**
* Enter a parse tree produced by {@link ElsaParser#objectInitializer}.
* @param ctx the parse tree
*/
void enterObjectInitializer(ElsaParser.ObjectInitializerContext ctx);
/**
* Exit a parse tree produced by {@link ElsaParser#objectInitializer}.
* @param ctx the parse tree
*/
void exitObjectInitializer(ElsaParser.ObjectInitializerContext ctx);
/**
* Enter a parse tree produced by {@link ElsaParser#propertyList}.
* @param ctx the parse tree
*/
void enterPropertyList(ElsaParser.PropertyListContext ctx);
/**
* Exit a parse tree produced by {@link ElsaParser#propertyList}.
* @param ctx the parse tree
*/
void exitPropertyList(ElsaParser.PropertyListContext ctx);
/**
* Enter a parse tree produced by {@link ElsaParser#property}.
* @param ctx the parse tree
*/
void enterProperty(ElsaParser.PropertyContext ctx);
/**
* Exit a parse tree produced by {@link ElsaParser#property}.
* @param ctx the parse tree
*/
void exitProperty(ElsaParser.PropertyContext ctx);
/**
* Enter a parse tree produced by the {@code objectStat}
* labeled alternative in {@link ElsaParser#stat}.
* @param ctx the parse tree
*/
void enterObjectStat(ElsaParser.ObjectStatContext ctx);
/**
* Exit a parse tree produced by the {@code objectStat}
* labeled alternative in {@link ElsaParser#stat}.
* @param ctx the parse tree
*/
void exitObjectStat(ElsaParser.ObjectStatContext ctx);
/**
* Enter a parse tree produced by the {@code ifStat}
* labeled alternative in {@link ElsaParser#stat}.
* @param ctx the parse tree
*/
void enterIfStat(ElsaParser.IfStatContext ctx);
/**
* Exit a parse tree produced by the {@code ifStat}
* labeled alternative in {@link ElsaParser#stat}.
* @param ctx the parse tree
*/
void exitIfStat(ElsaParser.IfStatContext ctx);
/**
* Enter a parse tree produced by the {@code forStat}
* labeled alternative in {@link ElsaParser#stat}.
* @param ctx the parse tree
*/
void enterForStat(ElsaParser.ForStatContext ctx);
/**
* Exit a parse tree produced by the {@code forStat}
* labeled alternative in {@link ElsaParser#stat}.
* @param ctx the parse tree
*/
void exitForStat(ElsaParser.ForStatContext ctx);
/**
* Enter a parse tree produced by the {@code returnStat}
* labeled alternative in {@link ElsaParser#stat}.
* @param ctx the parse tree
*/
void enterReturnStat(ElsaParser.ReturnStatContext ctx);
/**
* Exit a parse tree produced by the {@code returnStat}
* labeled alternative in {@link ElsaParser#stat}.
* @param ctx the parse tree
*/
void exitReturnStat(ElsaParser.ReturnStatContext ctx);
/**
* Enter a parse tree produced by the {@code blockStat}
* labeled alternative in {@link ElsaParser#stat}.
* @param ctx the parse tree
*/
void enterBlockStat(ElsaParser.BlockStatContext ctx);
/**
* Exit a parse tree produced by the {@code blockStat}
* labeled alternative in {@link ElsaParser#stat}.
* @param ctx the parse tree
*/
void exitBlockStat(ElsaParser.BlockStatContext ctx);
/**
* Enter a parse tree produced by the {@code variableDeclarationStat}
* labeled alternative in {@link ElsaParser#stat}.
* @param ctx the parse tree
*/
void enterVariableDeclarationStat(ElsaParser.VariableDeclarationStatContext ctx);
/**
* Exit a parse tree produced by the {@code variableDeclarationStat}
* labeled alternative in {@link ElsaParser#stat}.
* @param ctx the parse tree
*/
void exitVariableDeclarationStat(ElsaParser.VariableDeclarationStatContext ctx);
/**
* Enter a parse tree produced by the {@code localVariableDeclarationStat}
* labeled alternative in {@link ElsaParser#stat}.
* @param ctx the parse tree
*/
void enterLocalVariableDeclarationStat(ElsaParser.LocalVariableDeclarationStatContext ctx);
/**
* Exit a parse tree produced by the {@code localVariableDeclarationStat}
* labeled alternative in {@link ElsaParser#stat}.
* @param ctx the parse tree
*/
void exitLocalVariableDeclarationStat(ElsaParser.LocalVariableDeclarationStatContext ctx);
/**
* Enter a parse tree produced by the {@code assignmentStat}
* labeled alternative in {@link ElsaParser#stat}.
* @param ctx the parse tree
*/
void enterAssignmentStat(ElsaParser.AssignmentStatContext ctx);
/**
* Exit a parse tree produced by the {@code assignmentStat}
* labeled alternative in {@link ElsaParser#stat}.
* @param ctx the parse tree
*/
void exitAssignmentStat(ElsaParser.AssignmentStatContext ctx);
/**
* Enter a parse tree produced by the {@code expressionStat}
* labeled alternative in {@link ElsaParser#stat}.
* @param ctx the parse tree
*/
void enterExpressionStat(ElsaParser.ExpressionStatContext ctx);
/**
* Exit a parse tree produced by the {@code expressionStat}
* labeled alternative in {@link ElsaParser#stat}.
* @param ctx the parse tree
*/
void exitExpressionStat(ElsaParser.ExpressionStatContext ctx);
/**
* Enter a parse tree produced by {@link ElsaParser#thenStat}.
* @param ctx the parse tree
*/
void enterThenStat(ElsaParser.ThenStatContext ctx);
/**
* Exit a parse tree produced by {@link ElsaParser#thenStat}.
* @param ctx the parse tree
*/
void exitThenStat(ElsaParser.ThenStatContext ctx);
/**
* Enter a parse tree produced by {@link ElsaParser#elseStat}.
* @param ctx the parse tree
*/
void enterElseStat(ElsaParser.ElseStatContext ctx);
/**
* Exit a parse tree produced by {@link ElsaParser#elseStat}.
* @param ctx the parse tree
*/
void exitElseStat(ElsaParser.ElseStatContext ctx);
/**
* Enter a parse tree produced by the {@code newObjectExpr}
* labeled alternative in {@link ElsaParser#expr}.
* @param ctx the parse tree
*/
void enterNewObjectExpr(ElsaParser.NewObjectExprContext ctx);
/**
* Exit a parse tree produced by the {@code newObjectExpr}
* labeled alternative in {@link ElsaParser#expr}.
* @param ctx the parse tree
*/
void exitNewObjectExpr(ElsaParser.NewObjectExprContext ctx);
/**
* Enter a parse tree produced by the {@code subtractExpr}
* labeled alternative in {@link ElsaParser#expr}.
* @param ctx the parse tree
*/
void enterSubtractExpr(ElsaParser.SubtractExprContext ctx);
/**
* Exit a parse tree produced by the {@code subtractExpr}
* labeled alternative in {@link ElsaParser#expr}.
* @param ctx the parse tree
*/
void exitSubtractExpr(ElsaParser.SubtractExprContext ctx);
/**
* Enter a parse tree produced by the {@code incrementExpr}
* labeled alternative in {@link ElsaParser#expr}.
* @param ctx the parse tree
*/
void enterIncrementExpr(ElsaParser.IncrementExprContext ctx);
/**
* Exit a parse tree produced by the {@code incrementExpr}
* labeled alternative in {@link ElsaParser#expr}.
* @param ctx the parse tree
*/
void exitIncrementExpr(ElsaParser.IncrementExprContext ctx);
/**
* Enter a parse tree produced by the {@code objectExpr}
* labeled alternative in {@link ElsaParser#expr}.
* @param ctx the parse tree
*/
void enterObjectExpr(ElsaParser.ObjectExprContext ctx);
/**
* Exit a parse tree produced by the {@code objectExpr}
* labeled alternative in {@link ElsaParser#expr}.
* @param ctx the parse tree
*/
void exitObjectExpr(ElsaParser.ObjectExprContext ctx);
/**
* Enter a parse tree produced by the {@code stringValueExpr}
* labeled alternative in {@link ElsaParser#expr}.
* @param ctx the parse tree
*/
void enterStringValueExpr(ElsaParser.StringValueExprContext ctx);
/**
* Exit a parse tree produced by the {@code stringValueExpr}
* labeled alternative in {@link ElsaParser#expr}.
* @param ctx the parse tree
*/
void exitStringValueExpr(ElsaParser.StringValueExprContext ctx);
/**
* Enter a parse tree produced by the {@code multiplyExpr}
* labeled alternative in {@link ElsaParser#expr}.
* @param ctx the parse tree
*/
void enterMultiplyExpr(ElsaParser.MultiplyExprContext ctx);
/**
* Exit a parse tree produced by the {@code multiplyExpr}
* labeled alternative in {@link ElsaParser#expr}.
* @param ctx the parse tree
*/
void exitMultiplyExpr(ElsaParser.MultiplyExprContext ctx);
/**
* Enter a parse tree produced by the {@code parenthesesExpr}
* labeled alternative in {@link ElsaParser#expr}.
* @param ctx the parse tree
*/
void enterParenthesesExpr(ElsaParser.ParenthesesExprContext ctx);
/**
* Exit a parse tree produced by the {@code parenthesesExpr}
* labeled alternative in {@link ElsaParser#expr}.
* @param ctx the parse tree
*/
void exitParenthesesExpr(ElsaParser.ParenthesesExprContext ctx);
/**
* Enter a parse tree produced by the {@code functionExpr}
* labeled alternative in {@link ElsaParser#expr}.
* @param ctx the parse tree
*/
void enterFunctionExpr(ElsaParser.FunctionExprContext ctx);
/**
* Exit a parse tree produced by the {@code functionExpr}
* labeled alternative in {@link ElsaParser#expr}.
* @param ctx the parse tree
*/
void exitFunctionExpr(ElsaParser.FunctionExprContext ctx);
/**
* Enter a parse tree produced by the {@code decrementExpr}
* labeled alternative in {@link ElsaParser#expr}.
* @param ctx the parse tree
*/
void enterDecrementExpr(ElsaParser.DecrementExprContext ctx);
/**
* Exit a parse tree produced by the {@code decrementExpr}
* labeled alternative in {@link ElsaParser#expr}.
* @param ctx the parse tree
*/
void exitDecrementExpr(ElsaParser.DecrementExprContext ctx);
/**
* Enter a parse tree produced by the {@code negateExpr}
* labeled alternative in {@link ElsaParser#expr}.
* @param ctx the parse tree
*/
void enterNegateExpr(ElsaParser.NegateExprContext ctx);
/**
* Exit a parse tree produced by the {@code negateExpr}
* labeled alternative in {@link ElsaParser#expr}.
* @param ctx the parse tree
*/
void exitNegateExpr(ElsaParser.NegateExprContext ctx);
/**
* Enter a parse tree produced by the {@code methodCallExpr}
* labeled alternative in {@link ElsaParser#expr}.
* @param ctx the parse tree
*/
void enterMethodCallExpr(ElsaParser.MethodCallExprContext ctx);
/**
* Exit a parse tree produced by the {@code methodCallExpr}
* labeled alternative in {@link ElsaParser#expr}.
* @param ctx the parse tree
*/
void exitMethodCallExpr(ElsaParser.MethodCallExprContext ctx);
/**
* Enter a parse tree produced by the {@code variableExpr}
* labeled alternative in {@link ElsaParser#expr}.
* @param ctx the parse tree
*/
void enterVariableExpr(ElsaParser.VariableExprContext ctx);
/**
* Exit a parse tree produced by the {@code variableExpr}
* labeled alternative in {@link ElsaParser#expr}.
* @param ctx the parse tree
*/
void exitVariableExpr(ElsaParser.VariableExprContext ctx);
/**
* Enter a parse tree produced by the {@code notExpr}
* labeled alternative in {@link ElsaParser#expr}.
* @param ctx the parse tree
*/
void enterNotExpr(ElsaParser.NotExprContext ctx);
/**
* Exit a parse tree produced by the {@code notExpr}
* labeled alternative in {@link ElsaParser#expr}.
* @param ctx the parse tree
*/
void exitNotExpr(ElsaParser.NotExprContext ctx);
/**
* Enter a parse tree produced by the {@code integerValueExpr}
* labeled alternative in {@link ElsaParser#expr}.
* @param ctx the parse tree
*/
void enterIntegerValueExpr(ElsaParser.IntegerValueExprContext ctx);
/**
* Exit a parse tree produced by the {@code integerValueExpr}
* labeled alternative in {@link ElsaParser#expr}.
* @param ctx the parse tree
*/
void exitIntegerValueExpr(ElsaParser.IntegerValueExprContext ctx);
/**
* Enter a parse tree produced by the {@code addExpr}
* labeled alternative in {@link ElsaParser#expr}.
* @param ctx the parse tree
*/
void enterAddExpr(ElsaParser.AddExprContext ctx);
/**
* Exit a parse tree produced by the {@code addExpr}
* labeled alternative in {@link ElsaParser#expr}.
* @param ctx the parse tree
*/
void exitAddExpr(ElsaParser.AddExprContext ctx);
/**
* Enter a parse tree produced by the {@code backTickStringValueExpr}
* labeled alternative in {@link ElsaParser#expr}.
* @param ctx the parse tree
*/
void enterBackTickStringValueExpr(ElsaParser.BackTickStringValueExprContext ctx);
/**
* Exit a parse tree produced by the {@code backTickStringValueExpr}
* labeled alternative in {@link ElsaParser#expr}.
* @param ctx the parse tree
*/
void exitBackTickStringValueExpr(ElsaParser.BackTickStringValueExprContext ctx);
/**
* Enter a parse tree produced by the {@code bracketsExpr}
* labeled alternative in {@link ElsaParser#expr}.
* @param ctx the parse tree
*/
void enterBracketsExpr(ElsaParser.BracketsExprContext ctx);
/**
* Exit a parse tree produced by the {@code bracketsExpr}
* labeled alternative in {@link ElsaParser#expr}.
* @param ctx the parse tree
*/
void exitBracketsExpr(ElsaParser.BracketsExprContext ctx);
/**
* Enter a parse tree produced by the {@code compareExpr}
* labeled alternative in {@link ElsaParser#expr}.
* @param ctx the parse tree
*/
void enterCompareExpr(ElsaParser.CompareExprContext ctx);
/**
* Exit a parse tree produced by the {@code compareExpr}
* labeled alternative in {@link ElsaParser#expr}.
* @param ctx the parse tree
*/
void exitCompareExpr(ElsaParser.CompareExprContext ctx);
/**
* Enter a parse tree produced by {@link ElsaParser#exprList}.
* @param ctx the parse tree
*/
void enterExprList(ElsaParser.ExprListContext ctx);
/**
* Exit a parse tree produced by {@link ElsaParser#exprList}.
* @param ctx the parse tree
*/
void exitExprList(ElsaParser.ExprListContext ctx);
}
+315
View File
@@ -0,0 +1,315 @@
// Generated from C:/Projects/Elsa/v3/src/dsl/Elsa.Dsl/Dsl\ElsaParser.g4 by ANTLR 4.9.2
import org.antlr.v4.runtime.tree.ParseTreeVisitor;
/**
* This interface defines a complete generic visitor for a parse tree produced
* by {@link ElsaParser}.
*
* @param <T> The return type of the visit operation. Use {@link Void} for
* operations with no return type.
*/
public interface ElsaParserVisitor<T> extends ParseTreeVisitor<T> {
/**
* Visit a parse tree produced by {@link ElsaParser#program}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitProgram(ElsaParser.ProgramContext ctx);
/**
* Visit a parse tree produced by {@link ElsaParser#object}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitObject(ElsaParser.ObjectContext ctx);
/**
* Visit a parse tree produced by {@link ElsaParser#newObject}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitNewObject(ElsaParser.NewObjectContext ctx);
/**
* Visit a parse tree produced by {@link ElsaParser#varDecl}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitVarDecl(ElsaParser.VarDeclContext ctx);
/**
* Visit a parse tree produced by {@link ElsaParser#localVarDecl}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitLocalVarDecl(ElsaParser.LocalVarDeclContext ctx);
/**
* Visit a parse tree produced by {@link ElsaParser#type}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitType(ElsaParser.TypeContext ctx);
/**
* Visit a parse tree produced by {@link ElsaParser#expressionMarker}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitExpressionMarker(ElsaParser.ExpressionMarkerContext ctx);
/**
* Visit a parse tree produced by {@link ElsaParser#expressionContent}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitExpressionContent(ElsaParser.ExpressionContentContext ctx);
/**
* Visit a parse tree produced by {@link ElsaParser#methodCall}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitMethodCall(ElsaParser.MethodCallContext ctx);
/**
* Visit a parse tree produced by {@link ElsaParser#funcCall}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitFuncCall(ElsaParser.FuncCallContext ctx);
/**
* Visit a parse tree produced by {@link ElsaParser#args}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitArgs(ElsaParser.ArgsContext ctx);
/**
* Visit a parse tree produced by {@link ElsaParser#arg}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitArg(ElsaParser.ArgContext ctx);
/**
* Visit a parse tree produced by {@link ElsaParser#block}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitBlock(ElsaParser.BlockContext ctx);
/**
* Visit a parse tree produced by {@link ElsaParser#objectInitializer}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitObjectInitializer(ElsaParser.ObjectInitializerContext ctx);
/**
* Visit a parse tree produced by {@link ElsaParser#propertyList}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitPropertyList(ElsaParser.PropertyListContext ctx);
/**
* Visit a parse tree produced by {@link ElsaParser#property}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitProperty(ElsaParser.PropertyContext ctx);
/**
* Visit a parse tree produced by the {@code objectStat}
* labeled alternative in {@link ElsaParser#stat}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitObjectStat(ElsaParser.ObjectStatContext ctx);
/**
* Visit a parse tree produced by the {@code ifStat}
* labeled alternative in {@link ElsaParser#stat}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitIfStat(ElsaParser.IfStatContext ctx);
/**
* Visit a parse tree produced by the {@code forStat}
* labeled alternative in {@link ElsaParser#stat}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitForStat(ElsaParser.ForStatContext ctx);
/**
* Visit a parse tree produced by the {@code returnStat}
* labeled alternative in {@link ElsaParser#stat}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitReturnStat(ElsaParser.ReturnStatContext ctx);
/**
* Visit a parse tree produced by the {@code blockStat}
* labeled alternative in {@link ElsaParser#stat}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitBlockStat(ElsaParser.BlockStatContext ctx);
/**
* Visit a parse tree produced by the {@code variableDeclarationStat}
* labeled alternative in {@link ElsaParser#stat}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitVariableDeclarationStat(ElsaParser.VariableDeclarationStatContext ctx);
/**
* Visit a parse tree produced by the {@code localVariableDeclarationStat}
* labeled alternative in {@link ElsaParser#stat}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitLocalVariableDeclarationStat(ElsaParser.LocalVariableDeclarationStatContext ctx);
/**
* Visit a parse tree produced by the {@code assignmentStat}
* labeled alternative in {@link ElsaParser#stat}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitAssignmentStat(ElsaParser.AssignmentStatContext ctx);
/**
* Visit a parse tree produced by the {@code expressionStat}
* labeled alternative in {@link ElsaParser#stat}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitExpressionStat(ElsaParser.ExpressionStatContext ctx);
/**
* Visit a parse tree produced by {@link ElsaParser#thenStat}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitThenStat(ElsaParser.ThenStatContext ctx);
/**
* Visit a parse tree produced by {@link ElsaParser#elseStat}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitElseStat(ElsaParser.ElseStatContext ctx);
/**
* Visit a parse tree produced by the {@code newObjectExpr}
* labeled alternative in {@link ElsaParser#expr}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitNewObjectExpr(ElsaParser.NewObjectExprContext ctx);
/**
* Visit a parse tree produced by the {@code subtractExpr}
* labeled alternative in {@link ElsaParser#expr}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitSubtractExpr(ElsaParser.SubtractExprContext ctx);
/**
* Visit a parse tree produced by the {@code incrementExpr}
* labeled alternative in {@link ElsaParser#expr}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitIncrementExpr(ElsaParser.IncrementExprContext ctx);
/**
* Visit a parse tree produced by the {@code objectExpr}
* labeled alternative in {@link ElsaParser#expr}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitObjectExpr(ElsaParser.ObjectExprContext ctx);
/**
* Visit a parse tree produced by the {@code stringValueExpr}
* labeled alternative in {@link ElsaParser#expr}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitStringValueExpr(ElsaParser.StringValueExprContext ctx);
/**
* Visit a parse tree produced by the {@code multiplyExpr}
* labeled alternative in {@link ElsaParser#expr}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitMultiplyExpr(ElsaParser.MultiplyExprContext ctx);
/**
* Visit a parse tree produced by the {@code parenthesesExpr}
* labeled alternative in {@link ElsaParser#expr}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitParenthesesExpr(ElsaParser.ParenthesesExprContext ctx);
/**
* Visit a parse tree produced by the {@code functionExpr}
* labeled alternative in {@link ElsaParser#expr}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitFunctionExpr(ElsaParser.FunctionExprContext ctx);
/**
* Visit a parse tree produced by the {@code decrementExpr}
* labeled alternative in {@link ElsaParser#expr}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitDecrementExpr(ElsaParser.DecrementExprContext ctx);
/**
* Visit a parse tree produced by the {@code negateExpr}
* labeled alternative in {@link ElsaParser#expr}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitNegateExpr(ElsaParser.NegateExprContext ctx);
/**
* Visit a parse tree produced by the {@code methodCallExpr}
* labeled alternative in {@link ElsaParser#expr}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitMethodCallExpr(ElsaParser.MethodCallExprContext ctx);
/**
* Visit a parse tree produced by the {@code variableExpr}
* labeled alternative in {@link ElsaParser#expr}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitVariableExpr(ElsaParser.VariableExprContext ctx);
/**
* Visit a parse tree produced by the {@code notExpr}
* labeled alternative in {@link ElsaParser#expr}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitNotExpr(ElsaParser.NotExprContext ctx);
/**
* Visit a parse tree produced by the {@code integerValueExpr}
* labeled alternative in {@link ElsaParser#expr}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitIntegerValueExpr(ElsaParser.IntegerValueExprContext ctx);
/**
* Visit a parse tree produced by the {@code addExpr}
* labeled alternative in {@link ElsaParser#expr}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitAddExpr(ElsaParser.AddExprContext ctx);
/**
* Visit a parse tree produced by the {@code backTickStringValueExpr}
* labeled alternative in {@link ElsaParser#expr}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitBackTickStringValueExpr(ElsaParser.BackTickStringValueExprContext ctx);
/**
* Visit a parse tree produced by the {@code bracketsExpr}
* labeled alternative in {@link ElsaParser#expr}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitBracketsExpr(ElsaParser.BracketsExprContext ctx);
/**
* Visit a parse tree produced by the {@code compareExpr}
* labeled alternative in {@link ElsaParser#expr}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitCompareExpr(ElsaParser.CompareExprContext ctx);
/**
* Visit a parse tree produced by {@link ElsaParser#exprList}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitExprList(ElsaParser.ExprListContext ctx);
}