1
0
mirror of https://gitlab.com/camelot/kickc.git synced 2025-04-07 06:37:31 +00:00

Added ++/-- post increment/decrement operators.

This commit is contained in:
Jesper Gravgaard 2017-07-13 23:40:17 +02:00
parent de8e5139cc
commit ed7a4dded9
22 changed files with 499 additions and 349 deletions

View File

@ -153,6 +153,10 @@ public class AsmFragment {
return "_staridx_";
case "+":
return "_plus_";
case "++":
return "_inc_";
case "--":
return "_dec_";
case "-":
return "_minus_";
case "==":

View File

@ -0,0 +1 @@
dex

View File

@ -0,0 +1 @@
inx

View File

@ -0,0 +1 @@
iny

View File

@ -0,0 +1 @@
dec {zpby1}

View File

@ -0,0 +1,3 @@
lda {zpby2}
sta {zpby1}
dec {zpby1}

View File

@ -0,0 +1,3 @@
lda {zpby2}
sta {zpby1}
inc {zpby1}

View File

@ -0,0 +1,4 @@
lda {zpby1}
clc
adc {zpby2}
sta {zpby1}

View File

@ -368,6 +368,19 @@ public class Pass1GenerateStatementSequence extends KickCBaseVisitor<Object> {
return tmpVar;
}
@Override
public Object visitExprPostMod(KickCParser.ExprPostModContext ctx) {
RValue child = (RValue) this.visit(ctx.expr());
String op = ((TerminalNode) ctx.getChild(1)).getSymbol().getText();
Operator operator = new Operator(op);
VariableIntermediate tmpVar = getCurrentSymbols().addVariableIntermediate();
Statement stmt1 = new StatementAssignment(tmpVar, child);
sequence.addStatement(stmt1);
Statement stmt2 = new StatementAssignment((LValue) child, operator, child);
sequence.addStatement(stmt2);
return tmpVar;
}
@Override
public RValue visitExprPar(KickCParser.ExprParContext ctx) {
return (RValue) this.visit(ctx.expr());

View File

@ -155,6 +155,14 @@ public class Pass2ConstantPropagation extends Pass2SsaOptimization {
case "+": {
return c;
}
case "++": {
ConstantInteger cInt = (ConstantInteger) c;
return new ConstantInteger(cInt.getNumber()+1);
}
case "--": {
ConstantInteger cInt = (ConstantInteger) c;
return new ConstantInteger(cInt.getNumber()-1);
}
case "*": { // pointer dereference
return null;
}

View File

@ -72,6 +72,17 @@ public class Pass3RegisterAllocation {
//allocation.allocate(symbols.getVariable("a#1"), new RegisterAllocation.RegisterAByte());
//allocation.allocate(symbols.getVariable("a#0"), new RegisterAllocation.RegisterAByte());
// Registers for postinc.kc
/*
allocation.allocate(symbols.getVariable("c#0"), new RegisterAllocation.RegisterZpByte(101));
allocation.allocate(symbols.getVariable("c#1"), new RegisterAllocation.RegisterZpByte(101));
allocation.allocate(symbols.getVariable("c#2"), new RegisterAllocation.RegisterZpByte(101));
allocation.allocate(symbols.getVariable("$1"), new RegisterAllocation.RegisterZpByte(101));
allocation.allocate(symbols.getVariable("i#0"), RegisterAllocation.getRegisterX());
allocation.allocate(symbols.getVariable("i#1"), RegisterAllocation.getRegisterX());
allocation.allocate(symbols.getVariable("i#2"), RegisterAllocation.getRegisterX());
*/
// Optimal Registers for flipper-rex2.kc
allocation.allocate(symbols.getVariable("plot::i#0"), RegisterAllocation.getRegisterX());
allocation.allocate(symbols.getVariable("plot::i#1"), RegisterAllocation.getRegisterX());
@ -127,6 +138,7 @@ public class Pass3RegisterAllocation {
allocation.allocate(symbols.getVariable("c#2"), RegisterAllocation.getRegisterX());
allocation.allocate(symbols.getVariable("c#3"), RegisterAllocation.getRegisterX());
allocation.allocate(symbols.getVariable("c#4"), RegisterAllocation.getRegisterX());
symbols.setAllocation(allocation);
}

View File

@ -50,6 +50,7 @@ expr
| NAME '(' parameterList? ')' #exprCall
| '(' typeDecl ')' expr #exprCast
| expr '[' expr ']' #exprArray
| expr ('--' | '++' )#exprPostMod
| ('+' | '-' | 'not' | '!' | '&' | '*') expr #exprUnary
| expr ('>>' | '<<' ) expr #exprBinary
| expr ('*' | '/' ) expr #exprBinary

View File

@ -35,22 +35,24 @@ T__33=34
T__34=35
T__35=36
T__36=37
SIMPLETYPE=38
STRING=39
BOOLEAN=40
NUMBER=41
NUMFLOAT=42
BINFLOAT=43
DECFLOAT=44
HEXFLOAT=45
NUMINT=46
BININTEGER=47
DECINTEGER=48
HEXINTEGER=49
NAME=50
WS=51
COMMENT_LINE=52
COMMENT_BLOCK=53
T__37=38
T__38=39
SIMPLETYPE=40
STRING=41
BOOLEAN=42
NUMBER=43
NUMFLOAT=44
BINFLOAT=45
DECFLOAT=46
HEXFLOAT=47
NUMINT=48
BININTEGER=49
DECINTEGER=50
HEXINTEGER=51
NAME=52
WS=53
COMMENT_LINE=54
COMMENT_BLOCK=55
'{'=1
'}'=2
'('=3
@ -67,24 +69,26 @@ COMMENT_BLOCK=53
'*'=14
'['=15
']'=16
'+'=17
'-'=18
'not'=19
'!'=20
'&'=21
'>>'=22
'<<'=23
'/'=24
'=='=25
'!='=26
'<>'=27
'<'=28
'<='=29
'=<'=30
'>='=31
'=>'=32
'>'=33
'and'=34
'&&'=35
'or'=36
'||'=37
'--'=17
'++'=18
'+'=19
'-'=20
'not'=21
'!'=22
'&'=23
'>>'=24
'<<'=25
'/'=26
'=='=27
'!='=28
'<>'=29
'<'=30
'<='=31
'=<'=32
'>='=33
'=>'=34
'>'=35
'and'=36
'&&'=37
'or'=38
'||'=39

View File

@ -1,4 +1,4 @@
// Generated from /Users/jespergravgaard/c64/src/kickc/src/dk/camelot64/kickc/parser/KickC.g4 by ANTLR 4.7
// Generated from C:/c64/src/kickc/src/dk/camelot64/kickc/parser\KickC.g4 by ANTLR 4.7
package dk.camelot64.kickc.parser;
import org.antlr.v4.runtime.ParserRuleContext;
@ -347,6 +347,18 @@ public class KickCBaseListener implements KickCListener {
* <p>The default implementation does nothing.</p>
*/
@Override public void exitExprBool(KickCParser.ExprBoolContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void enterExprPostMod(KickCParser.ExprPostModContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void exitExprPostMod(KickCParser.ExprPostModContext ctx) { }
/**
* {@inheritDoc}
*

View File

@ -1,4 +1,4 @@
// Generated from /Users/jespergravgaard/c64/src/kickc/src/dk/camelot64/kickc/parser/KickC.g4 by ANTLR 4.7
// Generated from C:/c64/src/kickc/src/dk/camelot64/kickc/parser\KickC.g4 by ANTLR 4.7
package dk.camelot64.kickc.parser;
import org.antlr.v4.runtime.tree.AbstractParseTreeVisitor;
@ -207,6 +207,13 @@ public class KickCBaseVisitor<T> extends AbstractParseTreeVisitor<T> implements
* {@link #visitChildren} on {@code ctx}.</p>
*/
@Override public T visitExprBool(KickCParser.ExprBoolContext ctx) { return visitChildren(ctx); }
/**
* {@inheritDoc}
*
* <p>The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.</p>
*/
@Override public T visitExprPostMod(KickCParser.ExprPostModContext ctx) { return visitChildren(ctx); }
/**
* {@inheritDoc}
*

View File

@ -1,4 +1,4 @@
// Generated from /Users/jespergravgaard/c64/src/kickc/src/dk/camelot64/kickc/parser/KickC.g4 by ANTLR 4.7
// Generated from C:/c64/src/kickc/src/dk/camelot64/kickc/parser\KickC.g4 by ANTLR 4.7
package dk.camelot64.kickc.parser;
import org.antlr.v4.runtime.Lexer;
import org.antlr.v4.runtime.CharStream;
@ -21,10 +21,10 @@ public class KickCLexer extends Lexer {
T__9=10, T__10=11, T__11=12, T__12=13, T__13=14, T__14=15, T__15=16, T__16=17,
T__17=18, T__18=19, T__19=20, T__20=21, T__21=22, T__22=23, T__23=24,
T__24=25, T__25=26, T__26=27, T__27=28, T__28=29, T__29=30, T__30=31,
T__31=32, T__32=33, T__33=34, T__34=35, T__35=36, T__36=37, SIMPLETYPE=38,
STRING=39, BOOLEAN=40, NUMBER=41, NUMFLOAT=42, BINFLOAT=43, DECFLOAT=44,
HEXFLOAT=45, NUMINT=46, BININTEGER=47, DECINTEGER=48, HEXINTEGER=49, NAME=50,
WS=51, COMMENT_LINE=52, COMMENT_BLOCK=53;
T__31=32, T__32=33, T__33=34, T__34=35, T__35=36, T__36=37, T__37=38,
T__38=39, SIMPLETYPE=40, STRING=41, BOOLEAN=42, NUMBER=43, NUMFLOAT=44,
BINFLOAT=45, DECFLOAT=46, HEXFLOAT=47, NUMINT=48, BININTEGER=49, DECINTEGER=50,
HEXINTEGER=51, NAME=52, WS=53, COMMENT_LINE=54, COMMENT_BLOCK=55;
public static String[] channelNames = {
"DEFAULT_TOKEN_CHANNEL", "HIDDEN"
};
@ -38,26 +38,26 @@ public class KickCLexer extends Lexer {
"T__9", "T__10", "T__11", "T__12", "T__13", "T__14", "T__15", "T__16",
"T__17", "T__18", "T__19", "T__20", "T__21", "T__22", "T__23", "T__24",
"T__25", "T__26", "T__27", "T__28", "T__29", "T__30", "T__31", "T__32",
"T__33", "T__34", "T__35", "T__36", "SIMPLETYPE", "STRING", "BOOLEAN",
"NUMBER", "NUMFLOAT", "BINFLOAT", "DECFLOAT", "HEXFLOAT", "NUMINT", "BININTEGER",
"DECINTEGER", "HEXINTEGER", "BINDIGIT", "DECDIGIT", "HEXDIGIT", "NAME",
"NAME_START", "NAME_CHAR", "WS", "COMMENT_LINE", "COMMENT_BLOCK"
"T__33", "T__34", "T__35", "T__36", "T__37", "T__38", "SIMPLETYPE", "STRING",
"BOOLEAN", "NUMBER", "NUMFLOAT", "BINFLOAT", "DECFLOAT", "HEXFLOAT", "NUMINT",
"BININTEGER", "DECINTEGER", "HEXINTEGER", "BINDIGIT", "DECDIGIT", "HEXDIGIT",
"NAME", "NAME_START", "NAME_CHAR", "WS", "COMMENT_LINE", "COMMENT_BLOCK"
};
private static final String[] _LITERAL_NAMES = {
null, "'{'", "'}'", "'('", "')'", "'const'", "'='", "';'", "'if'", "'else'",
"'while'", "'do'", "'return'", "','", "'*'", "'['", "']'", "'+'", "'-'",
"'not'", "'!'", "'&'", "'>>'", "'<<'", "'/'", "'=='", "'!='", "'<>'",
"'<'", "'<='", "'=<'", "'>='", "'=>'", "'>'", "'and'", "'&&'", "'or'",
"'||'"
"'while'", "'do'", "'return'", "','", "'*'", "'['", "']'", "'--'", "'++'",
"'+'", "'-'", "'not'", "'!'", "'&'", "'>>'", "'<<'", "'/'", "'=='", "'!='",
"'<>'", "'<'", "'<='", "'=<'", "'>='", "'=>'", "'>'", "'and'", "'&&'",
"'or'", "'||'"
};
private static final String[] _SYMBOLIC_NAMES = {
null, null, null, null, null, null, null, null, null, null, null, null,
null, null, null, null, null, null, null, null, null, null, null, null,
null, null, null, null, null, null, null, null, null, null, null, null,
null, null, "SIMPLETYPE", "STRING", "BOOLEAN", "NUMBER", "NUMFLOAT", "BINFLOAT",
"DECFLOAT", "HEXFLOAT", "NUMINT", "BININTEGER", "DECINTEGER", "HEXINTEGER",
"NAME", "WS", "COMMENT_LINE", "COMMENT_BLOCK"
null, null, null, null, "SIMPLETYPE", "STRING", "BOOLEAN", "NUMBER", "NUMFLOAT",
"BINFLOAT", "DECFLOAT", "HEXFLOAT", "NUMINT", "BININTEGER", "DECINTEGER",
"HEXINTEGER", "NAME", "WS", "COMMENT_LINE", "COMMENT_BLOCK"
};
public static final Vocabulary VOCABULARY = new VocabularyImpl(_LITERAL_NAMES, _SYMBOLIC_NAMES);
@ -117,152 +117,155 @@ public class KickCLexer extends Lexer {
public ATN getATN() { return _ATN; }
public static final String _serializedATN =
"\3\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964\2\67\u01a5\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\4\64"+
"\t\64\4\65\t\65\4\66\t\66\4\67\t\67\48\t8\49\t9\4:\t:\4;\t;\3\2\3\2\3"+
"\3\3\3\3\4\3\4\3\5\3\5\3\6\3\6\3\6\3\6\3\6\3\6\3\7\3\7\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\13\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\17\3\17\3\20\3\20\3\21\3\21\3\22"+
"\3\22\3\23\3\23\3\24\3\24\3\24\3\24\3\25\3\25\3\26\3\26\3\27\3\27\3\27"+
"\3\30\3\30\3\30\3\31\3\31\3\32\3\32\3\32\3\33\3\33\3\33\3\34\3\34\3\34"+
"\3\35\3\35\3\36\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\'\3\'\3"+
"\'\3\'\3\'\3\'\3\'\3\'\3\'\3\'\3\'\3\'\3\'\3\'\3\'\3\'\3\'\3\'\3\'\5\'"+
"\u00fd\n\'\3(\3(\3(\3(\7(\u0103\n(\f(\16(\u0106\13(\3(\3(\3)\3)\3)\3)"+
"\3)\3)\3)\3)\3)\5)\u0113\n)\3*\3*\5*\u0117\n*\3+\3+\3+\5+\u011c\n+\3,"+
"\3,\3,\3,\3,\5,\u0123\n,\3,\7,\u0126\n,\f,\16,\u0129\13,\3,\3,\6,\u012d"+
"\n,\r,\16,\u012e\3-\7-\u0132\n-\f-\16-\u0135\13-\3-\3-\6-\u0139\n-\r-"+
"\16-\u013a\3.\3.\3.\3.\3.\5.\u0142\n.\3.\7.\u0145\n.\f.\16.\u0148\13."+
"\3.\3.\6.\u014c\n.\r.\16.\u014d\3/\3/\3/\5/\u0153\n/\3\60\3\60\3\60\6"+
"\60\u0158\n\60\r\60\16\60\u0159\3\60\3\60\6\60\u015e\n\60\r\60\16\60\u015f"+
"\5\60\u0162\n\60\3\61\6\61\u0165\n\61\r\61\16\61\u0166\3\62\3\62\3\62"+
"\3\62\3\62\5\62\u016e\n\62\3\62\6\62\u0171\n\62\r\62\16\62\u0172\3\63"+
"\3\63\3\64\3\64\3\65\3\65\3\66\3\66\7\66\u017d\n\66\f\66\16\66\u0180\13"+
"\66\3\67\3\67\38\38\39\69\u0187\n9\r9\169\u0188\39\39\3:\3:\3:\3:\7:\u0191"+
"\n:\f:\16:\u0194\13:\3:\3:\3;\3;\3;\3;\7;\u019c\n;\f;\16;\u019f\13;\3"+
";\3;\3;\3;\3;\3\u019d\2<\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\62"+
"c\63e\2g\2i\2k\64m\2o\2q\65s\66u\67\3\2\13\3\2$$\4\2DDdd\3\2\62\63\3\2"+
"\62;\5\2\62;CHch\5\2C\\aac|\6\2\62;C\\aac|\5\2\13\f\17\17\"\"\4\2\f\f"+
"\17\17\2\u01c0\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\2"+
"9\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"+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\u0186"+
"\3\2\2\2s\u018c\3\2\2\2u\u0197\3\2\2\2wx\7}\2\2x\4\3\2\2\2yz\7\177\2\2"+
"z\6\3\2\2\2{|\7*\2\2|\b\3\2\2\2}~\7+\2\2~\n\3\2\2\2\177\u0080\7e\2\2\u0080"+
"\u0081\7q\2\2\u0081\u0082\7p\2\2\u0082\u0083\7u\2\2\u0083\u0084\7v\2\2"+
"\u0084\f\3\2\2\2\u0085\u0086\7?\2\2\u0086\16\3\2\2\2\u0087\u0088\7=\2"+
"\2\u0088\20\3\2\2\2\u0089\u008a\7k\2\2\u008a\u008b\7h\2\2\u008b\22\3\2"+
"\2\2\u008c\u008d\7g\2\2\u008d\u008e\7n\2\2\u008e\u008f\7u\2\2\u008f\u0090"+
"\7g\2\2\u0090\24\3\2\2\2\u0091\u0092\7y\2\2\u0092\u0093\7j\2\2\u0093\u0094"+
"\7k\2\2\u0094\u0095\7n\2\2\u0095\u0096\7g\2\2\u0096\26\3\2\2\2\u0097\u0098"+
"\7f\2\2\u0098\u0099\7q\2\2\u0099\30\3\2\2\2\u009a\u009b\7t\2\2\u009b\u009c"+
"\7g\2\2\u009c\u009d\7v\2\2\u009d\u009e\7w\2\2\u009e\u009f\7t\2\2\u009f"+
"\u00a0\7p\2\2\u00a0\32\3\2\2\2\u00a1\u00a2\7.\2\2\u00a2\34\3\2\2\2\u00a3"+
"\u00a4\7,\2\2\u00a4\36\3\2\2\2\u00a5\u00a6\7]\2\2\u00a6 \3\2\2\2\u00a7"+
"\u00a8\7_\2\2\u00a8\"\3\2\2\2\u00a9\u00aa\7-\2\2\u00aa$\3\2\2\2\u00ab"+
"\u00ac\7/\2\2\u00ac&\3\2\2\2\u00ad\u00ae\7p\2\2\u00ae\u00af\7q\2\2\u00af"+
"\u00b0\7v\2\2\u00b0(\3\2\2\2\u00b1\u00b2\7#\2\2\u00b2*\3\2\2\2\u00b3\u00b4"+
"\7(\2\2\u00b4,\3\2\2\2\u00b5\u00b6\7@\2\2\u00b6\u00b7\7@\2\2\u00b7.\3"+
"\2\2\2\u00b8\u00b9\7>\2\2\u00b9\u00ba\7>\2\2\u00ba\60\3\2\2\2\u00bb\u00bc"+
"\7\61\2\2\u00bc\62\3\2\2\2\u00bd\u00be\7?\2\2\u00be\u00bf\7?\2\2\u00bf"+
"\64\3\2\2\2\u00c0\u00c1\7#\2\2\u00c1\u00c2\7?\2\2\u00c2\66\3\2\2\2\u00c3"+
"\u00c4\7>\2\2\u00c4\u00c5\7@\2\2\u00c58\3\2\2\2\u00c6\u00c7\7>\2\2\u00c7"+
":\3\2\2\2\u00c8\u00c9\7>\2\2\u00c9\u00ca\7?\2\2\u00ca<\3\2\2\2\u00cb\u00cc"+
"\7?\2\2\u00cc\u00cd\7>\2\2\u00cd>\3\2\2\2\u00ce\u00cf\7@\2\2\u00cf\u00d0"+
"\7?\2\2\u00d0@\3\2\2\2\u00d1\u00d2\7?\2\2\u00d2\u00d3\7@\2\2\u00d3B\3"+
"\2\2\2\u00d4\u00d5\7@\2\2\u00d5D\3\2\2\2\u00d6\u00d7\7c\2\2\u00d7\u00d8"+
"\7p\2\2\u00d8\u00d9\7f\2\2\u00d9F\3\2\2\2\u00da\u00db\7(\2\2\u00db\u00dc"+
"\7(\2\2\u00dcH\3\2\2\2\u00dd\u00de\7q\2\2\u00de\u00df\7t\2\2\u00dfJ\3"+
"\2\2\2\u00e0\u00e1\7~\2\2\u00e1\u00e2\7~\2\2\u00e2L\3\2\2\2\u00e3\u00e4"+
"\7d\2\2\u00e4\u00e5\7{\2\2\u00e5\u00e6\7v\2\2\u00e6\u00fd\7g\2\2\u00e7"+
"\u00e8\7y\2\2\u00e8\u00e9\7q\2\2\u00e9\u00ea\7t\2\2\u00ea\u00fd\7f\2\2"+
"\u00eb\u00ec\7u\2\2\u00ec\u00ed\7v\2\2\u00ed\u00ee\7t\2\2\u00ee\u00ef"+
"\7k\2\2\u00ef\u00f0\7p\2\2\u00f0\u00fd\7i\2\2\u00f1\u00f2\7d\2\2\u00f2"+
"\u00f3\7q\2\2\u00f3\u00f4\7q\2\2\u00f4\u00f5\7n\2\2\u00f5\u00f6\7g\2\2"+
"\u00f6\u00f7\7c\2\2\u00f7\u00fd\7p\2\2\u00f8\u00f9\7x\2\2\u00f9\u00fa"+
"\7q\2\2\u00fa\u00fb\7k\2\2\u00fb\u00fd\7f\2\2\u00fc\u00e3\3\2\2\2\u00fc"+
"\u00e7\3\2\2\2\u00fc\u00eb\3\2\2\2\u00fc\u00f1\3\2\2\2\u00fc\u00f8\3\2"+
"\2\2\u00fdN\3\2\2\2\u00fe\u0104\7$\2\2\u00ff\u0100\7^\2\2\u0100\u0103"+
"\7$\2\2\u0101\u0103\n\2\2\2\u0102\u00ff\3\2\2\2\u0102\u0101\3\2\2\2\u0103"+
"\u0106\3\2\2\2\u0104\u0102\3\2\2\2\u0104\u0105\3\2\2\2\u0105\u0107\3\2"+
"\2\2\u0106\u0104\3\2\2\2\u0107\u0108\7$\2\2\u0108P\3\2\2\2\u0109\u010a"+
"\7v\2\2\u010a\u010b\7t\2\2\u010b\u010c\7w\2\2\u010c\u0113\7g\2\2\u010d"+
"\u010e\7h\2\2\u010e\u010f\7c\2\2\u010f\u0110\7n\2\2\u0110\u0111\7u\2\2"+
"\u0111\u0113\7g\2\2\u0112\u0109\3\2\2\2\u0112\u010d\3\2\2\2\u0113R\3\2"+
"\2\2\u0114\u0117\5U+\2\u0115\u0117\5]/\2\u0116\u0114\3\2\2\2\u0116\u0115"+
"\3\2\2\2\u0117T\3\2\2\2\u0118\u011c\5W,\2\u0119\u011c\5Y-\2\u011a\u011c"+
"\5[.\2\u011b\u0118\3\2\2\2\u011b\u0119\3\2\2\2\u011b\u011a\3\2\2\2\u011c"+
"V\3\2\2\2\u011d\u0123\7\'\2\2\u011e\u011f\7\62\2\2\u011f\u0123\7d\2\2"+
"\u0120\u0121\7\62\2\2\u0121\u0123\7D\2\2\u0122\u011d\3\2\2\2\u0122\u011e"+
"\3\2\2\2\u0122\u0120\3\2\2\2\u0123\u0127\3\2\2\2\u0124\u0126\5e\63\2\u0125"+
"\u0124\3\2\2\2\u0126\u0129\3\2\2\2\u0127\u0125\3\2\2\2\u0127\u0128\3\2"+
"\2\2\u0128\u012a\3\2\2\2\u0129\u0127\3\2\2\2\u012a\u012c\7\60\2\2\u012b"+
"\u012d\5e\63\2\u012c\u012b\3\2\2\2\u012d\u012e\3\2\2\2\u012e\u012c\3\2"+
"\2\2\u012e\u012f\3\2\2\2\u012fX\3\2\2\2\u0130\u0132\5g\64\2\u0131\u0130"+
"\3\2\2\2\u0132\u0135\3\2\2\2\u0133\u0131\3\2\2\2\u0133\u0134\3\2\2\2\u0134"+
"\u0136\3\2\2\2\u0135\u0133\3\2\2\2\u0136\u0138\7\60\2\2\u0137\u0139\5"+
"g\64\2\u0138\u0137\3\2\2\2\u0139\u013a\3\2\2\2\u013a\u0138\3\2\2\2\u013a"+
"\u013b\3\2\2\2\u013bZ\3\2\2\2\u013c\u0142\7&\2\2\u013d\u013e\7\62\2\2"+
"\u013e\u0142\7z\2\2\u013f\u0140\7\62\2\2\u0140\u0142\7Z\2\2\u0141\u013c"+
"\3\2\2\2\u0141\u013d\3\2\2\2\u0141\u013f\3\2\2\2\u0142\u0146\3\2\2\2\u0143"+
"\u0145\5i\65\2\u0144\u0143\3\2\2\2\u0145\u0148\3\2\2\2\u0146\u0144\3\2"+
"\2\2\u0146\u0147\3\2\2\2\u0147\u0149\3\2\2\2\u0148\u0146\3\2\2\2\u0149"+
"\u014b\7\60\2\2\u014a\u014c\5i\65\2\u014b\u014a\3\2\2\2\u014c\u014d\3"+
"\2\2\2\u014d\u014b\3\2\2\2\u014d\u014e\3\2\2\2\u014e\\\3\2\2\2\u014f\u0153"+
"\5a\61\2\u0150\u0153\5c\62\2\u0151\u0153\5_\60\2\u0152\u014f\3\2\2\2\u0152"+
"\u0150\3\2\2\2\u0152\u0151\3\2\2\2\u0153^\3\2\2\2\u0154\u0155\7\62\2\2"+
"\u0155\u0157\t\3\2\2\u0156\u0158\5e\63\2\u0157\u0156\3\2\2\2\u0158\u0159"+
"\3\2\2\2\u0159\u0157\3\2\2\2\u0159\u015a\3\2\2\2\u015a\u0162\3\2\2\2\u015b"+
"\u015d\7\'\2\2\u015c\u015e\5e\63\2\u015d\u015c\3\2\2\2\u015e\u015f\3\2"+
"\2\2\u015f\u015d\3\2\2\2\u015f\u0160\3\2\2\2\u0160\u0162\3\2\2\2\u0161"+
"\u0154\3\2\2\2\u0161\u015b\3\2\2\2\u0162`\3\2\2\2\u0163\u0165\5g\64\2"+
"\u0164\u0163\3\2\2\2\u0165\u0166\3\2\2\2\u0166\u0164\3\2\2\2\u0166\u0167"+
"\3\2\2\2\u0167b\3\2\2\2\u0168\u016e\7&\2\2\u0169\u016a\7\62\2\2\u016a"+
"\u016e\7z\2\2\u016b\u016c\7\62\2\2\u016c\u016e\7Z\2\2\u016d\u0168\3\2"+
"\2\2\u016d\u0169\3\2\2\2\u016d\u016b\3\2\2\2\u016e\u0170\3\2\2\2\u016f"+
"\u0171\5i\65\2\u0170\u016f\3\2\2\2\u0171\u0172\3\2\2\2\u0172\u0170\3\2"+
"\2\2\u0172\u0173\3\2\2\2\u0173d\3\2\2\2\u0174\u0175\t\4\2\2\u0175f\3\2"+
"\2\2\u0176\u0177\t\5\2\2\u0177h\3\2\2\2\u0178\u0179\t\6\2\2\u0179j\3\2"+
"\2\2\u017a\u017e\5m\67\2\u017b\u017d\5o8\2\u017c\u017b\3\2\2\2\u017d\u0180"+
"\3\2\2\2\u017e\u017c\3\2\2\2\u017e\u017f\3\2\2\2\u017fl\3\2\2\2\u0180"+
"\u017e\3\2\2\2\u0181\u0182\t\7\2\2\u0182n\3\2\2\2\u0183\u0184\t\b\2\2"+
"\u0184p\3\2\2\2\u0185\u0187\t\t\2\2\u0186\u0185\3\2\2\2\u0187\u0188\3"+
"\2\2\2\u0188\u0186\3\2\2\2\u0188\u0189\3\2\2\2\u0189\u018a\3\2\2\2\u018a"+
"\u018b\b9\2\2\u018br\3\2\2\2\u018c\u018d\7\61\2\2\u018d\u018e\7\61\2\2"+
"\u018e\u0192\3\2\2\2\u018f\u0191\n\n\2\2\u0190\u018f\3\2\2\2\u0191\u0194"+
"\3\2\2\2\u0192\u0190\3\2\2\2\u0192\u0193\3\2\2\2\u0193\u0195\3\2\2\2\u0194"+
"\u0192\3\2\2\2\u0195\u0196\b:\2\2\u0196t\3\2\2\2\u0197\u0198\7\61\2\2"+
"\u0198\u0199\7,\2\2\u0199\u019d\3\2\2\2\u019a\u019c\13\2\2\2\u019b\u019a"+
"\3\2\2\2\u019c\u019f\3\2\2\2\u019d\u019e\3\2\2\2\u019d\u019b\3\2\2\2\u019e"+
"\u01a0\3\2\2\2\u019f\u019d\3\2\2\2\u01a0\u01a1\7,\2\2\u01a1\u01a2\7\61"+
"\2\2\u01a2\u01a3\3\2\2\2\u01a3\u01a4\b;\2\2\u01a4v\3\2\2\2\34\2\u00fc"+
"\u0102\u0104\u0112\u0116\u011b\u0122\u0127\u012e\u0133\u013a\u0141\u0146"+
"\u014d\u0152\u0159\u015f\u0161\u0166\u016d\u0172\u017e\u0188\u0192\u019d"+
"\3\b\2\2";
"\3\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964\29\u01af\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\4\64\t"+
"\64\4\65\t\65\4\66\t\66\4\67\t\67\48\t8\49\t9\4:\t:\4;\t;\4<\t<\4=\t="+
"\3\2\3\2\3\3\3\3\3\4\3\4\3\5\3\5\3\6\3\6\3\6\3\6\3\6\3\6\3\7\3\7\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\13\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\17\3\17\3\20\3\20\3\21"+
"\3\21\3\22\3\22\3\22\3\23\3\23\3\23\3\24\3\24\3\25\3\25\3\26\3\26\3\26"+
"\3\26\3\27\3\27\3\30\3\30\3\31\3\31\3\31\3\32\3\32\3\32\3\33\3\33\3\34"+
"\3\34\3\34\3\35\3\35\3\35\3\36\3\36\3\36\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"+
")\3)\3)\3)\3)\3)\3)\3)\3)\3)\3)\3)\3)\3)\3)\3)\3)\3)\3)\3)\3)\3)\3)\3"+
")\3)\5)\u0107\n)\3*\3*\3*\3*\7*\u010d\n*\f*\16*\u0110\13*\3*\3*\3+\3+"+
"\3+\3+\3+\3+\3+\3+\3+\5+\u011d\n+\3,\3,\5,\u0121\n,\3-\3-\3-\5-\u0126"+
"\n-\3.\3.\3.\3.\3.\5.\u012d\n.\3.\7.\u0130\n.\f.\16.\u0133\13.\3.\3.\6"+
".\u0137\n.\r.\16.\u0138\3/\7/\u013c\n/\f/\16/\u013f\13/\3/\3/\6/\u0143"+
"\n/\r/\16/\u0144\3\60\3\60\3\60\3\60\3\60\5\60\u014c\n\60\3\60\7\60\u014f"+
"\n\60\f\60\16\60\u0152\13\60\3\60\3\60\6\60\u0156\n\60\r\60\16\60\u0157"+
"\3\61\3\61\3\61\5\61\u015d\n\61\3\62\3\62\3\62\6\62\u0162\n\62\r\62\16"+
"\62\u0163\3\62\3\62\6\62\u0168\n\62\r\62\16\62\u0169\5\62\u016c\n\62\3"+
"\63\6\63\u016f\n\63\r\63\16\63\u0170\3\64\3\64\3\64\3\64\3\64\5\64\u0178"+
"\n\64\3\64\6\64\u017b\n\64\r\64\16\64\u017c\3\65\3\65\3\66\3\66\3\67\3"+
"\67\38\38\78\u0187\n8\f8\168\u018a\138\39\39\3:\3:\3;\6;\u0191\n;\r;\16"+
";\u0192\3;\3;\3<\3<\3<\3<\7<\u019b\n<\f<\16<\u019e\13<\3<\3<\3=\3=\3="+
"\3=\7=\u01a6\n=\f=\16=\u01a9\13=\3=\3=\3=\3=\3=\3\u01a7\2>\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\62c\63e\64g\65i\2k\2m\2o\66q\2s\2u\67"+
"w8y9\3\2\13\3\2$$\4\2DDdd\3\2\62\63\3\2\62;\5\2\62;CHch\5\2C\\aac|\6\2"+
"\62;C\\aac|\5\2\13\f\17\17\"\"\4\2\f\f\17\17\2\u01ca\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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c\3\2\2\2c\u016b\3\2\2\2e\u016e\3\2\2\2g\u0177\3\2"+
"\2\2i\u017e\3\2\2\2k\u0180\3\2\2\2m\u0182\3\2\2\2o\u0184\3\2\2\2q\u018b"+
"\3\2\2\2s\u018d\3\2\2\2u\u0190\3\2\2\2w\u0196\3\2\2\2y\u01a1\3\2\2\2{"+
"|\7}\2\2|\4\3\2\2\2}~\7\177\2\2~\6\3\2\2\2\177\u0080\7*\2\2\u0080\b\3"+
"\2\2\2\u0081\u0082\7+\2\2\u0082\n\3\2\2\2\u0083\u0084\7e\2\2\u0084\u0085"+
"\7q\2\2\u0085\u0086\7p\2\2\u0086\u0087\7u\2\2\u0087\u0088\7v\2\2\u0088"+
"\f\3\2\2\2\u0089\u008a\7?\2\2\u008a\16\3\2\2\2\u008b\u008c\7=\2\2\u008c"+
"\20\3\2\2\2\u008d\u008e\7k\2\2\u008e\u008f\7h\2\2\u008f\22\3\2\2\2\u0090"+
"\u0091\7g\2\2\u0091\u0092\7n\2\2\u0092\u0093\7u\2\2\u0093\u0094\7g\2\2"+
"\u0094\24\3\2\2\2\u0095\u0096\7y\2\2\u0096\u0097\7j\2\2\u0097\u0098\7"+
"k\2\2\u0098\u0099\7n\2\2\u0099\u009a\7g\2\2\u009a\26\3\2\2\2\u009b\u009c"+
"\7f\2\2\u009c\u009d\7q\2\2\u009d\30\3\2\2\2\u009e\u009f\7t\2\2\u009f\u00a0"+
"\7g\2\2\u00a0\u00a1\7v\2\2\u00a1\u00a2\7w\2\2\u00a2\u00a3\7t\2\2\u00a3"+
"\u00a4\7p\2\2\u00a4\32\3\2\2\2\u00a5\u00a6\7.\2\2\u00a6\34\3\2\2\2\u00a7"+
"\u00a8\7,\2\2\u00a8\36\3\2\2\2\u00a9\u00aa\7]\2\2\u00aa \3\2\2\2\u00ab"+
"\u00ac\7_\2\2\u00ac\"\3\2\2\2\u00ad\u00ae\7/\2\2\u00ae\u00af\7/\2\2\u00af"+
"$\3\2\2\2\u00b0\u00b1\7-\2\2\u00b1\u00b2\7-\2\2\u00b2&\3\2\2\2\u00b3\u00b4"+
"\7-\2\2\u00b4(\3\2\2\2\u00b5\u00b6\7/\2\2\u00b6*\3\2\2\2\u00b7\u00b8\7"+
"p\2\2\u00b8\u00b9\7q\2\2\u00b9\u00ba\7v\2\2\u00ba,\3\2\2\2\u00bb\u00bc"+
"\7#\2\2\u00bc.\3\2\2\2\u00bd\u00be\7(\2\2\u00be\60\3\2\2\2\u00bf\u00c0"+
"\7@\2\2\u00c0\u00c1\7@\2\2\u00c1\62\3\2\2\2\u00c2\u00c3\7>\2\2\u00c3\u00c4"+
"\7>\2\2\u00c4\64\3\2\2\2\u00c5\u00c6\7\61\2\2\u00c6\66\3\2\2\2\u00c7\u00c8"+
"\7?\2\2\u00c8\u00c9\7?\2\2\u00c98\3\2\2\2\u00ca\u00cb\7#\2\2\u00cb\u00cc"+
"\7?\2\2\u00cc:\3\2\2\2\u00cd\u00ce\7>\2\2\u00ce\u00cf\7@\2\2\u00cf<\3"+
"\2\2\2\u00d0\u00d1\7>\2\2\u00d1>\3\2\2\2\u00d2\u00d3\7>\2\2\u00d3\u00d4"+
"\7?\2\2\u00d4@\3\2\2\2\u00d5\u00d6\7?\2\2\u00d6\u00d7\7>\2\2\u00d7B\3"+
"\2\2\2\u00d8\u00d9\7@\2\2\u00d9\u00da\7?\2\2\u00daD\3\2\2\2\u00db\u00dc"+
"\7?\2\2\u00dc\u00dd\7@\2\2\u00ddF\3\2\2\2\u00de\u00df\7@\2\2\u00dfH\3"+
"\2\2\2\u00e0\u00e1\7c\2\2\u00e1\u00e2\7p\2\2\u00e2\u00e3\7f\2\2\u00e3"+
"J\3\2\2\2\u00e4\u00e5\7(\2\2\u00e5\u00e6\7(\2\2\u00e6L\3\2\2\2\u00e7\u00e8"+
"\7q\2\2\u00e8\u00e9\7t\2\2\u00e9N\3\2\2\2\u00ea\u00eb\7~\2\2\u00eb\u00ec"+
"\7~\2\2\u00ecP\3\2\2\2\u00ed\u00ee\7d\2\2\u00ee\u00ef\7{\2\2\u00ef\u00f0"+
"\7v\2\2\u00f0\u0107\7g\2\2\u00f1\u00f2\7y\2\2\u00f2\u00f3\7q\2\2\u00f3"+
"\u00f4\7t\2\2\u00f4\u0107\7f\2\2\u00f5\u00f6\7u\2\2\u00f6\u00f7\7v\2\2"+
"\u00f7\u00f8\7t\2\2\u00f8\u00f9\7k\2\2\u00f9\u00fa\7p\2\2\u00fa\u0107"+
"\7i\2\2\u00fb\u00fc\7d\2\2\u00fc\u00fd\7q\2\2\u00fd\u00fe\7q\2\2\u00fe"+
"\u00ff\7n\2\2\u00ff\u0100\7g\2\2\u0100\u0101\7c\2\2\u0101\u0107\7p\2\2"+
"\u0102\u0103\7x\2\2\u0103\u0104\7q\2\2\u0104\u0105\7k\2\2\u0105\u0107"+
"\7f\2\2\u0106\u00ed\3\2\2\2\u0106\u00f1\3\2\2\2\u0106\u00f5\3\2\2\2\u0106"+
"\u00fb\3\2\2\2\u0106\u0102\3\2\2\2\u0107R\3\2\2\2\u0108\u010e\7$\2\2\u0109"+
"\u010a\7^\2\2\u010a\u010d\7$\2\2\u010b\u010d\n\2\2\2\u010c\u0109\3\2\2"+
"\2\u010c\u010b\3\2\2\2\u010d\u0110\3\2\2\2\u010e\u010c\3\2\2\2\u010e\u010f"+
"\3\2\2\2\u010f\u0111\3\2\2\2\u0110\u010e\3\2\2\2\u0111\u0112\7$\2\2\u0112"+
"T\3\2\2\2\u0113\u0114\7v\2\2\u0114\u0115\7t\2\2\u0115\u0116\7w\2\2\u0116"+
"\u011d\7g\2\2\u0117\u0118\7h\2\2\u0118\u0119\7c\2\2\u0119\u011a\7n\2\2"+
"\u011a\u011b\7u\2\2\u011b\u011d\7g\2\2\u011c\u0113\3\2\2\2\u011c\u0117"+
"\3\2\2\2\u011dV\3\2\2\2\u011e\u0121\5Y-\2\u011f\u0121\5a\61\2\u0120\u011e"+
"\3\2\2\2\u0120\u011f\3\2\2\2\u0121X\3\2\2\2\u0122\u0126\5[.\2\u0123\u0126"+
"\5]/\2\u0124\u0126\5_\60\2\u0125\u0122\3\2\2\2\u0125\u0123\3\2\2\2\u0125"+
"\u0124\3\2\2\2\u0126Z\3\2\2\2\u0127\u012d\7\'\2\2\u0128\u0129\7\62\2\2"+
"\u0129\u012d\7d\2\2\u012a\u012b\7\62\2\2\u012b\u012d\7D\2\2\u012c\u0127"+
"\3\2\2\2\u012c\u0128\3\2\2\2\u012c\u012a\3\2\2\2\u012d\u0131\3\2\2\2\u012e"+
"\u0130\5i\65\2\u012f\u012e\3\2\2\2\u0130\u0133\3\2\2\2\u0131\u012f\3\2"+
"\2\2\u0131\u0132\3\2\2\2\u0132\u0134\3\2\2\2\u0133\u0131\3\2\2\2\u0134"+
"\u0136\7\60\2\2\u0135\u0137\5i\65\2\u0136\u0135\3\2\2\2\u0137\u0138\3"+
"\2\2\2\u0138\u0136\3\2\2\2\u0138\u0139\3\2\2\2\u0139\\\3\2\2\2\u013a\u013c"+
"\5k\66\2\u013b\u013a\3\2\2\2\u013c\u013f\3\2\2\2\u013d\u013b\3\2\2\2\u013d"+
"\u013e\3\2\2\2\u013e\u0140\3\2\2\2\u013f\u013d\3\2\2\2\u0140\u0142\7\60"+
"\2\2\u0141\u0143\5k\66\2\u0142\u0141\3\2\2\2\u0143\u0144\3\2\2\2\u0144"+
"\u0142\3\2\2\2\u0144\u0145\3\2\2\2\u0145^\3\2\2\2\u0146\u014c\7&\2\2\u0147"+
"\u0148\7\62\2\2\u0148\u014c\7z\2\2\u0149\u014a\7\62\2\2\u014a\u014c\7"+
"Z\2\2\u014b\u0146\3\2\2\2\u014b\u0147\3\2\2\2\u014b\u0149\3\2\2\2\u014c"+
"\u0150\3\2\2\2\u014d\u014f\5m\67\2\u014e\u014d\3\2\2\2\u014f\u0152\3\2"+
"\2\2\u0150\u014e\3\2\2\2\u0150\u0151\3\2\2\2\u0151\u0153\3\2\2\2\u0152"+
"\u0150\3\2\2\2\u0153\u0155\7\60\2\2\u0154\u0156\5m\67\2\u0155\u0154\3"+
"\2\2\2\u0156\u0157\3\2\2\2\u0157\u0155\3\2\2\2\u0157\u0158\3\2\2\2\u0158"+
"`\3\2\2\2\u0159\u015d\5e\63\2\u015a\u015d\5g\64\2\u015b\u015d\5c\62\2"+
"\u015c\u0159\3\2\2\2\u015c\u015a\3\2\2\2\u015c\u015b\3\2\2\2\u015db\3"+
"\2\2\2\u015e\u015f\7\62\2\2\u015f\u0161\t\3\2\2\u0160\u0162\5i\65\2\u0161"+
"\u0160\3\2\2\2\u0162\u0163\3\2\2\2\u0163\u0161\3\2\2\2\u0163\u0164\3\2"+
"\2\2\u0164\u016c\3\2\2\2\u0165\u0167\7\'\2\2\u0166\u0168\5i\65\2\u0167"+
"\u0166\3\2\2\2\u0168\u0169\3\2\2\2\u0169\u0167\3\2\2\2\u0169\u016a\3\2"+
"\2\2\u016a\u016c\3\2\2\2\u016b\u015e\3\2\2\2\u016b\u0165\3\2\2\2\u016c"+
"d\3\2\2\2\u016d\u016f\5k\66\2\u016e\u016d\3\2\2\2\u016f\u0170\3\2\2\2"+
"\u0170\u016e\3\2\2\2\u0170\u0171\3\2\2\2\u0171f\3\2\2\2\u0172\u0178\7"+
"&\2\2\u0173\u0174\7\62\2\2\u0174\u0178\7z\2\2\u0175\u0176\7\62\2\2\u0176"+
"\u0178\7Z\2\2\u0177\u0172\3\2\2\2\u0177\u0173\3\2\2\2\u0177\u0175\3\2"+
"\2\2\u0178\u017a\3\2\2\2\u0179\u017b\5m\67\2\u017a\u0179\3\2\2\2\u017b"+
"\u017c\3\2\2\2\u017c\u017a\3\2\2\2\u017c\u017d\3\2\2\2\u017dh\3\2\2\2"+
"\u017e\u017f\t\4\2\2\u017fj\3\2\2\2\u0180\u0181\t\5\2\2\u0181l\3\2\2\2"+
"\u0182\u0183\t\6\2\2\u0183n\3\2\2\2\u0184\u0188\5q9\2\u0185\u0187\5s:"+
"\2\u0186\u0185\3\2\2\2\u0187\u018a\3\2\2\2\u0188\u0186\3\2\2\2\u0188\u0189"+
"\3\2\2\2\u0189p\3\2\2\2\u018a\u0188\3\2\2\2\u018b\u018c\t\7\2\2\u018c"+
"r\3\2\2\2\u018d\u018e\t\b\2\2\u018et\3\2\2\2\u018f\u0191\t\t\2\2\u0190"+
"\u018f\3\2\2\2\u0191\u0192\3\2\2\2\u0192\u0190\3\2\2\2\u0192\u0193\3\2"+
"\2\2\u0193\u0194\3\2\2\2\u0194\u0195\b;\2\2\u0195v\3\2\2\2\u0196\u0197"+
"\7\61\2\2\u0197\u0198\7\61\2\2\u0198\u019c\3\2\2\2\u0199\u019b\n\n\2\2"+
"\u019a\u0199\3\2\2\2\u019b\u019e\3\2\2\2\u019c\u019a\3\2\2\2\u019c\u019d"+
"\3\2\2\2\u019d\u019f\3\2\2\2\u019e\u019c\3\2\2\2\u019f\u01a0\b<\2\2\u01a0"+
"x\3\2\2\2\u01a1\u01a2\7\61\2\2\u01a2\u01a3\7,\2\2\u01a3\u01a7\3\2\2\2"+
"\u01a4\u01a6\13\2\2\2\u01a5\u01a4\3\2\2\2\u01a6\u01a9\3\2\2\2\u01a7\u01a8"+
"\3\2\2\2\u01a7\u01a5\3\2\2\2\u01a8\u01aa\3\2\2\2\u01a9\u01a7\3\2\2\2\u01aa"+
"\u01ab\7,\2\2\u01ab\u01ac\7\61\2\2\u01ac\u01ad\3\2\2\2\u01ad\u01ae\b="+
"\2\2\u01aez\3\2\2\2\34\2\u0106\u010c\u010e\u011c\u0120\u0125\u012c\u0131"+
"\u0138\u013d\u0144\u014b\u0150\u0157\u015c\u0163\u0169\u016b\u0170\u0177"+
"\u017c\u0188\u0192\u019c\u01a7\3\b\2\2";
public static final ATN _ATN =
new ATNDeserializer().deserialize(_serializedATN.toCharArray());
static {

View File

@ -35,22 +35,24 @@ T__33=34
T__34=35
T__35=36
T__36=37
SIMPLETYPE=38
STRING=39
BOOLEAN=40
NUMBER=41
NUMFLOAT=42
BINFLOAT=43
DECFLOAT=44
HEXFLOAT=45
NUMINT=46
BININTEGER=47
DECINTEGER=48
HEXINTEGER=49
NAME=50
WS=51
COMMENT_LINE=52
COMMENT_BLOCK=53
T__37=38
T__38=39
SIMPLETYPE=40
STRING=41
BOOLEAN=42
NUMBER=43
NUMFLOAT=44
BINFLOAT=45
DECFLOAT=46
HEXFLOAT=47
NUMINT=48
BININTEGER=49
DECINTEGER=50
HEXINTEGER=51
NAME=52
WS=53
COMMENT_LINE=54
COMMENT_BLOCK=55
'{'=1
'}'=2
'('=3
@ -67,24 +69,26 @@ COMMENT_BLOCK=53
'*'=14
'['=15
']'=16
'+'=17
'-'=18
'not'=19
'!'=20
'&'=21
'>>'=22
'<<'=23
'/'=24
'=='=25
'!='=26
'<>'=27
'<'=28
'<='=29
'=<'=30
'>='=31
'=>'=32
'>'=33
'and'=34
'&&'=35
'or'=36
'||'=37
'--'=17
'++'=18
'+'=19
'-'=20
'not'=21
'!'=22
'&'=23
'>>'=24
'<<'=25
'/'=26
'=='=27
'!='=28
'<>'=29
'<'=30
'<='=31
'=<'=32
'>='=33
'=>'=34
'>'=35
'and'=36
'&&'=37
'or'=38
'||'=39

View File

@ -1,4 +1,4 @@
// Generated from /Users/jespergravgaard/c64/src/kickc/src/dk/camelot64/kickc/parser/KickC.g4 by ANTLR 4.7
// Generated from C:/c64/src/kickc/src/dk/camelot64/kickc/parser\KickC.g4 by ANTLR 4.7
package dk.camelot64.kickc.parser;
import org.antlr.v4.runtime.tree.ParseTreeListener;
@ -335,6 +335,18 @@ public interface KickCListener extends ParseTreeListener {
* @param ctx the parse tree
*/
void exitExprBool(KickCParser.ExprBoolContext ctx);
/**
* Enter a parse tree produced by the {@code exprPostMod}
* labeled alternative in {@link KickCParser#expr}.
* @param ctx the parse tree
*/
void enterExprPostMod(KickCParser.ExprPostModContext ctx);
/**
* Exit a parse tree produced by the {@code exprPostMod}
* labeled alternative in {@link KickCParser#expr}.
* @param ctx the parse tree
*/
void exitExprPostMod(KickCParser.ExprPostModContext ctx);
/**
* Enter a parse tree produced by the {@code exprId}
* labeled alternative in {@link KickCParser#expr}.

View File

@ -1,4 +1,4 @@
// Generated from /Users/jespergravgaard/c64/src/kickc/src/dk/camelot64/kickc/parser/KickC.g4 by ANTLR 4.7
// Generated from C:/c64/src/kickc/src/dk/camelot64/kickc/parser\KickC.g4 by ANTLR 4.7
package dk.camelot64.kickc.parser;
import org.antlr.v4.runtime.atn.*;
import org.antlr.v4.runtime.dfa.DFA;
@ -21,10 +21,10 @@ public class KickCParser extends Parser {
T__9=10, T__10=11, T__11=12, T__12=13, T__13=14, T__14=15, T__15=16, T__16=17,
T__17=18, T__18=19, T__19=20, T__20=21, T__21=22, T__22=23, T__23=24,
T__24=25, T__25=26, T__26=27, T__27=28, T__28=29, T__29=30, T__30=31,
T__31=32, T__32=33, T__33=34, T__34=35, T__35=36, T__36=37, SIMPLETYPE=38,
STRING=39, BOOLEAN=40, NUMBER=41, NUMFLOAT=42, BINFLOAT=43, DECFLOAT=44,
HEXFLOAT=45, NUMINT=46, BININTEGER=47, DECINTEGER=48, HEXINTEGER=49, NAME=50,
WS=51, COMMENT_LINE=52, COMMENT_BLOCK=53;
T__31=32, T__32=33, T__33=34, T__34=35, T__35=36, T__36=37, T__37=38,
T__38=39, SIMPLETYPE=40, STRING=41, BOOLEAN=42, NUMBER=43, NUMFLOAT=44,
BINFLOAT=45, DECFLOAT=46, HEXFLOAT=47, NUMINT=48, BININTEGER=49, DECINTEGER=50,
HEXINTEGER=51, NAME=52, WS=53, COMMENT_LINE=54, COMMENT_BLOCK=55;
public static final int
RULE_file = 0, RULE_stmtSeq = 1, RULE_stmt = 2, RULE_parameterListDecl = 3,
RULE_parameterDecl = 4, RULE_typeDecl = 5, RULE_initializer = 6, RULE_lvalue = 7,
@ -36,18 +36,18 @@ public class KickCParser extends Parser {
private static final String[] _LITERAL_NAMES = {
null, "'{'", "'}'", "'('", "')'", "'const'", "'='", "';'", "'if'", "'else'",
"'while'", "'do'", "'return'", "','", "'*'", "'['", "']'", "'+'", "'-'",
"'not'", "'!'", "'&'", "'>>'", "'<<'", "'/'", "'=='", "'!='", "'<>'",
"'<'", "'<='", "'=<'", "'>='", "'=>'", "'>'", "'and'", "'&&'", "'or'",
"'||'"
"'while'", "'do'", "'return'", "','", "'*'", "'['", "']'", "'--'", "'++'",
"'+'", "'-'", "'not'", "'!'", "'&'", "'>>'", "'<<'", "'/'", "'=='", "'!='",
"'<>'", "'<'", "'<='", "'=<'", "'>='", "'=>'", "'>'", "'and'", "'&&'",
"'or'", "'||'"
};
private static final String[] _SYMBOLIC_NAMES = {
null, null, null, null, null, null, null, null, null, null, null, null,
null, null, null, null, null, null, null, null, null, null, null, null,
null, null, null, null, null, null, null, null, null, null, null, null,
null, null, "SIMPLETYPE", "STRING", "BOOLEAN", "NUMBER", "NUMFLOAT", "BINFLOAT",
"DECFLOAT", "HEXFLOAT", "NUMINT", "BININTEGER", "DECINTEGER", "HEXINTEGER",
"NAME", "WS", "COMMENT_LINE", "COMMENT_BLOCK"
null, null, null, null, "SIMPLETYPE", "STRING", "BOOLEAN", "NUMBER", "NUMFLOAT",
"BINFLOAT", "DECFLOAT", "HEXFLOAT", "NUMINT", "BININTEGER", "DECINTEGER",
"HEXINTEGER", "NAME", "WS", "COMMENT_LINE", "COMMENT_BLOCK"
};
public static final Vocabulary VOCABULARY = new VocabularyImpl(_LITERAL_NAMES, _SYMBOLIC_NAMES);
@ -191,7 +191,7 @@ public class KickCParser extends Parser {
setState(26);
_errHandler.sync(this);
_la = _input.LA(1);
} while ( (((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << T__0) | (1L << T__2) | (1L << T__4) | (1L << T__7) | (1L << T__9) | (1L << T__10) | (1L << T__11) | (1L << T__13) | (1L << T__16) | (1L << T__17) | (1L << T__18) | (1L << T__19) | (1L << T__20) | (1L << SIMPLETYPE) | (1L << STRING) | (1L << BOOLEAN) | (1L << NUMBER) | (1L << NAME))) != 0) );
} while ( (((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << T__0) | (1L << T__2) | (1L << T__4) | (1L << T__7) | (1L << T__9) | (1L << T__10) | (1L << T__11) | (1L << T__13) | (1L << T__18) | (1L << T__19) | (1L << T__20) | (1L << T__21) | (1L << T__22) | (1L << SIMPLETYPE) | (1L << STRING) | (1L << BOOLEAN) | (1L << NUMBER) | (1L << NAME))) != 0) );
}
}
catch (RecognitionException re) {
@ -431,7 +431,7 @@ public class KickCParser extends Parser {
setState(30);
_errHandler.sync(this);
_la = _input.LA(1);
if ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << T__0) | (1L << T__2) | (1L << T__4) | (1L << T__7) | (1L << T__9) | (1L << T__10) | (1L << T__11) | (1L << T__13) | (1L << T__16) | (1L << T__17) | (1L << T__18) | (1L << T__19) | (1L << T__20) | (1L << SIMPLETYPE) | (1L << STRING) | (1L << BOOLEAN) | (1L << NUMBER) | (1L << NAME))) != 0)) {
if ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << T__0) | (1L << T__2) | (1L << T__4) | (1L << T__7) | (1L << T__9) | (1L << T__10) | (1L << T__11) | (1L << T__13) | (1L << T__18) | (1L << T__19) | (1L << T__20) | (1L << T__21) | (1L << T__22) | (1L << SIMPLETYPE) | (1L << STRING) | (1L << BOOLEAN) | (1L << NUMBER) | (1L << NAME))) != 0)) {
{
setState(29);
stmtSeq();
@ -469,7 +469,7 @@ public class KickCParser extends Parser {
setState(42);
_errHandler.sync(this);
_la = _input.LA(1);
if ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << T__0) | (1L << T__2) | (1L << T__4) | (1L << T__7) | (1L << T__9) | (1L << T__10) | (1L << T__11) | (1L << T__13) | (1L << T__16) | (1L << T__17) | (1L << T__18) | (1L << T__19) | (1L << T__20) | (1L << SIMPLETYPE) | (1L << STRING) | (1L << BOOLEAN) | (1L << NUMBER) | (1L << NAME))) != 0)) {
if ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << T__0) | (1L << T__2) | (1L << T__4) | (1L << T__7) | (1L << T__9) | (1L << T__10) | (1L << T__11) | (1L << T__13) | (1L << T__18) | (1L << T__19) | (1L << T__20) | (1L << T__21) | (1L << T__22) | (1L << SIMPLETYPE) | (1L << STRING) | (1L << BOOLEAN) | (1L << NUMBER) | (1L << NAME))) != 0)) {
{
setState(41);
stmtSeq();
@ -609,7 +609,7 @@ public class KickCParser extends Parser {
setState(89);
_errHandler.sync(this);
_la = _input.LA(1);
if ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << T__2) | (1L << T__13) | (1L << T__16) | (1L << T__17) | (1L << T__18) | (1L << T__19) | (1L << T__20) | (1L << STRING) | (1L << BOOLEAN) | (1L << NUMBER) | (1L << NAME))) != 0)) {
if ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << T__2) | (1L << T__13) | (1L << T__18) | (1L << T__19) | (1L << T__20) | (1L << T__21) | (1L << T__22) | (1L << STRING) | (1L << BOOLEAN) | (1L << NUMBER) | (1L << NAME))) != 0)) {
{
setState(88);
expr(0);
@ -871,7 +871,7 @@ public class KickCParser extends Parser {
setState(113);
_errHandler.sync(this);
_la = _input.LA(1);
if ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << T__2) | (1L << T__13) | (1L << T__16) | (1L << T__17) | (1L << T__18) | (1L << T__19) | (1L << T__20) | (1L << STRING) | (1L << BOOLEAN) | (1L << NUMBER) | (1L << NAME))) != 0)) {
if ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << T__2) | (1L << T__13) | (1L << T__18) | (1L << T__19) | (1L << T__20) | (1L << T__21) | (1L << T__22) | (1L << STRING) | (1L << BOOLEAN) | (1L << NUMBER) | (1L << NAME))) != 0)) {
{
setState(112);
expr(0);
@ -965,11 +965,11 @@ public class KickCParser extends Parser {
switch (_input.LA(1)) {
case T__2:
case T__13:
case T__16:
case T__17:
case T__18:
case T__19:
case T__20:
case T__21:
case T__22:
case STRING:
case BOOLEAN:
case NUMBER:
@ -1336,6 +1336,25 @@ public class KickCParser extends Parser {
else return visitor.visitChildren(this);
}
}
public static class ExprPostModContext extends ExprContext {
public ExprContext expr() {
return getRuleContext(ExprContext.class,0);
}
public ExprPostModContext(ExprContext ctx) { copyFrom(ctx); }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof KickCListener ) ((KickCListener)listener).enterExprPostMod(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof KickCListener ) ((KickCListener)listener).exitExprPostMod(this);
}
@Override
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
if ( visitor instanceof KickCVisitor ) return ((KickCVisitor<? extends T>)visitor).visitExprPostMod(this);
else return visitor.visitChildren(this);
}
}
public static class ExprIdContext extends ExprContext {
public TerminalNode NAME() { return getToken(KickCParser.NAME, 0); }
public ExprIdContext(ExprContext ctx) { copyFrom(ctx); }
@ -1457,7 +1476,7 @@ public class KickCParser extends Parser {
setState(163);
_errHandler.sync(this);
_la = _input.LA(1);
if ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << T__2) | (1L << T__13) | (1L << T__16) | (1L << T__17) | (1L << T__18) | (1L << T__19) | (1L << T__20) | (1L << STRING) | (1L << BOOLEAN) | (1L << NUMBER) | (1L << NAME))) != 0)) {
if ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << T__2) | (1L << T__13) | (1L << T__18) | (1L << T__19) | (1L << T__20) | (1L << T__21) | (1L << T__22) | (1L << STRING) | (1L << BOOLEAN) | (1L << NUMBER) | (1L << NAME))) != 0)) {
{
setState(162);
parameterList();
@ -1480,7 +1499,7 @@ public class KickCParser extends Parser {
setState(168);
match(T__3);
setState(169);
expr(13);
expr(14);
}
break;
case 4:
@ -1490,7 +1509,7 @@ public class KickCParser extends Parser {
_prevctx = _localctx;
setState(171);
_la = _input.LA(1);
if ( !((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << T__13) | (1L << T__16) | (1L << T__17) | (1L << T__18) | (1L << T__19) | (1L << T__20))) != 0)) ) {
if ( !((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << T__13) | (1L << T__18) | (1L << T__19) | (1L << T__20) | (1L << T__21) | (1L << T__22))) != 0)) ) {
_errHandler.recoverInline(this);
}
else {
@ -1540,7 +1559,7 @@ public class KickCParser extends Parser {
break;
}
_ctx.stop = _input.LT(-1);
setState(204);
setState(206);
_errHandler.sync(this);
_alt = getInterpreter().adaptivePredict(_input,20,_ctx);
while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) {
@ -1548,7 +1567,7 @@ public class KickCParser extends Parser {
if ( _parseListeners!=null ) triggerExitRuleEvent();
_prevctx = _localctx;
{
setState(202);
setState(204);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,19,_ctx) ) {
case 1:
@ -1559,7 +1578,7 @@ public class KickCParser extends Parser {
if (!(precpred(_ctx, 10))) throw new FailedPredicateException(this, "precpred(_ctx, 10)");
setState(180);
_la = _input.LA(1);
if ( !(_la==T__21 || _la==T__22) ) {
if ( !(_la==T__23 || _la==T__24) ) {
_errHandler.recoverInline(this);
}
else {
@ -1579,7 +1598,7 @@ public class KickCParser extends Parser {
if (!(precpred(_ctx, 9))) throw new FailedPredicateException(this, "precpred(_ctx, 9)");
setState(183);
_la = _input.LA(1);
if ( !(_la==T__13 || _la==T__23) ) {
if ( !(_la==T__13 || _la==T__25) ) {
_errHandler.recoverInline(this);
}
else {
@ -1599,7 +1618,7 @@ public class KickCParser extends Parser {
if (!(precpred(_ctx, 8))) throw new FailedPredicateException(this, "precpred(_ctx, 8)");
setState(186);
_la = _input.LA(1);
if ( !(_la==T__16 || _la==T__17) ) {
if ( !(_la==T__18 || _la==T__19) ) {
_errHandler.recoverInline(this);
}
else {
@ -1619,7 +1638,7 @@ public class KickCParser extends Parser {
if (!(precpred(_ctx, 7))) throw new FailedPredicateException(this, "precpred(_ctx, 7)");
setState(189);
_la = _input.LA(1);
if ( !((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << T__24) | (1L << T__25) | (1L << T__26) | (1L << T__27) | (1L << T__28) | (1L << T__29) | (1L << T__30) | (1L << T__31) | (1L << T__32))) != 0)) ) {
if ( !((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << T__26) | (1L << T__27) | (1L << T__28) | (1L << T__29) | (1L << T__30) | (1L << T__31) | (1L << T__32) | (1L << T__33) | (1L << T__34))) != 0)) ) {
_errHandler.recoverInline(this);
}
else {
@ -1639,7 +1658,7 @@ public class KickCParser extends Parser {
if (!(precpred(_ctx, 6))) throw new FailedPredicateException(this, "precpred(_ctx, 6)");
setState(192);
_la = _input.LA(1);
if ( !(_la==T__33 || _la==T__34) ) {
if ( !(_la==T__35 || _la==T__36) ) {
_errHandler.recoverInline(this);
}
else {
@ -1659,7 +1678,7 @@ public class KickCParser extends Parser {
if (!(precpred(_ctx, 5))) throw new FailedPredicateException(this, "precpred(_ctx, 5)");
setState(195);
_la = _input.LA(1);
if ( !(_la==T__35 || _la==T__36) ) {
if ( !(_la==T__37 || _la==T__38) ) {
_errHandler.recoverInline(this);
}
else {
@ -1676,7 +1695,7 @@ public class KickCParser extends Parser {
_localctx = new ExprArrayContext(new ExprContext(_parentctx, _parentState));
pushNewRecursionContext(_localctx, _startState, RULE_expr);
setState(197);
if (!(precpred(_ctx, 12))) throw new FailedPredicateException(this, "precpred(_ctx, 12)");
if (!(precpred(_ctx, 13))) throw new FailedPredicateException(this, "precpred(_ctx, 13)");
setState(198);
match(T__14);
setState(199);
@ -1685,10 +1704,28 @@ public class KickCParser extends Parser {
match(T__15);
}
break;
case 8:
{
_localctx = new ExprPostModContext(new ExprContext(_parentctx, _parentState));
pushNewRecursionContext(_localctx, _startState, RULE_expr);
setState(202);
if (!(precpred(_ctx, 12))) throw new FailedPredicateException(this, "precpred(_ctx, 12)");
setState(203);
_la = _input.LA(1);
if ( !(_la==T__16 || _la==T__17) ) {
_errHandler.recoverInline(this);
}
else {
if ( _input.LA(1)==Token.EOF ) matchedEOF = true;
_errHandler.reportMatch(this);
consume();
}
}
break;
}
}
}
setState(206);
setState(208);
_errHandler.sync(this);
_alt = getInterpreter().adaptivePredict(_input,20,_ctx);
}
@ -1738,21 +1775,21 @@ public class KickCParser extends Parser {
try {
enterOuterAlt(_localctx, 1);
{
setState(207);
setState(209);
expr(0);
setState(212);
setState(214);
_errHandler.sync(this);
_la = _input.LA(1);
while (_la==T__12) {
{
{
setState(208);
setState(210);
match(T__12);
setState(209);
setState(211);
expr(0);
}
}
setState(214);
setState(216);
_errHandler.sync(this);
_la = _input.LA(1);
}
@ -1811,83 +1848,87 @@ public class KickCParser extends Parser {
case 8:
return precpred(_ctx, 5);
case 9:
return precpred(_ctx, 13);
case 10:
return precpred(_ctx, 12);
}
return true;
}
public static final String _serializedATN =
"\3\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964\3\67\u00da\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\3\2\3\2\3\2\3\3\6\3\33\n\3\r\3\16\3\34\3\4\3\4\5\4!\n\4\3\4\3\4"+
"\3\4\3\4\3\4\5\4(\n\4\3\4\3\4\3\4\5\4-\n\4\3\4\3\4\3\4\5\4\62\n\4\3\4"+
"\3\4\3\4\3\4\5\48\n\4\3\4\3\4\3\4\3\4\3\4\3\4\3\4\3\4\3\4\3\4\3\4\3\4"+
"\3\4\3\4\3\4\3\4\3\4\5\4K\n\4\3\4\3\4\3\4\3\4\3\4\3\4\3\4\3\4\3\4\3\4"+
"\3\4\3\4\3\4\3\4\3\4\5\4\\\n\4\3\4\5\4_\n\4\3\5\3\5\3\5\7\5d\n\5\f\5\16"+
"\3\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964\39\u00dc\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\3\2\3\2\3\2\3\3\6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2^"+
"\61\3\2\2\2^;\3\2\2\2^@\3\2\2\2^C\3\2\2\2^L\3\2\2\2^R\3\2\2\2^Y\3\2\2"+
"\2_\7\3\2\2\2`e\5\n\6\2ab\7\17\2\2bd\5\n\6\2ca\3\2\2\2dg\3\2\2\2ec\3\2"+
"\2\2ef\3\2\2\2f\t\3\2\2\2ge\3\2\2\2hi\5\f\7\2ij\7\64\2\2j\13\3\2\2\2k"+
"l\b\7\1\2lm\7(\2\2mx\3\2\2\2no\f\4\2\2ow\7\20\2\2pq\f\3\2\2qs\7\21\2\2"+
"rt\5\22\n\2sr\3\2\2\2st\3\2\2\2tu\3\2\2\2uw\7\22\2\2vn\3\2\2\2vp\3\2\2"+
"\2wz\3\2\2\2xv\3\2\2\2xy\3\2\2\2y\r\3\2\2\2zx\3\2\2\2{\u0088\5\22\n\2"+
"|}\7\3\2\2}\u0082\5\16\b\2~\177\7\17\2\2\177\u0081\5\16\b\2\u0080~\3\2"+
"\2\2\u0081\u0084\3\2\2\2\u0082\u0080\3\2\2\2\u0082\u0083\3\2\2\2\u0083"+
"\u0085\3\2\2\2\u0084\u0082\3\2\2\2\u0085\u0086\7\4\2\2\u0086\u0088\3\2"+
"\2\2\u0087{\3\2\2\2\u0087|\3\2\2\2\u0088\17\3\2\2\2\u0089\u008a\b\t\1"+
"\2\u008a\u008b\7\5\2\2\u008b\u008c\5\20\t\2\u008c\u008d\7\6\2\2\u008d"+
"\u0092\3\2\2\2\u008e\u0092\7\64\2\2\u008f\u0090\7\20\2\2\u0090\u0092\5"+
"\20\t\4\u0091\u0089\3\2\2\2\u0091\u008e\3\2\2\2\u0091\u008f\3\2\2\2\u0092"+
"\u009a\3\2\2\2\u0093\u0094\f\3\2\2\u0094\u0095\7\21\2\2\u0095\u0096\5"+
"\22\n\2\u0096\u0097\7\22\2\2\u0097\u0099\3\2\2\2\u0098\u0093\3\2\2\2\u0099"+
"\u009c\3\2\2\2\u009a\u0098\3\2\2\2\u009a\u009b\3\2\2\2\u009b\21\3\2\2"+
"\2\u009c\u009a\3\2\2\2\u009d\u009e\b\n\1\2\u009e\u009f\7\5\2\2\u009f\u00a0"+
"\5\22\n\2\u00a0\u00a1\7\6\2\2\u00a1\u00b4\3\2\2\2\u00a2\u00a3\7\64\2\2"+
"\u00a3\u00a5\7\5\2\2\u00a4\u00a6\5\24\13\2\u00a5\u00a4\3\2\2\2\u00a5\u00a6"+
"\3\2\2\2\u00a6\u00a7\3\2\2\2\u00a7\u00b4\7\6\2\2\u00a8\u00a9\7\5\2\2\u00a9"+
"\u00aa\5\f\7\2\u00aa\u00ab\7\6\2\2\u00ab\u00ac\5\22\n\17\u00ac\u00b4\3"+
"\2\2\2\u00ad\u00ae\t\2\2\2\u00ae\u00b4\5\22\n\r\u00af\u00b4\7\64\2\2\u00b0"+
"\u00b4\7+\2\2\u00b1\u00b4\7)\2\2\u00b2\u00b4\7*\2\2\u00b3\u009d\3\2\2"+
"\2\u00b3\u00a2\3\2\2\2\u00b3\u00a8\3\2\2\2\u00b3\u00ad\3\2\2\2\u00b3\u00af"+
"\3\2\2\2\u00b3\u00b0\3\2\2\2\u00b3\u00b1\3\2\2\2\u00b3\u00b2\3\2\2\2\u00b4"+
"\u00ce\3\2\2\2\u00b5\u00b6\f\f\2\2\u00b6\u00b7\t\3\2\2\u00b7\u00cd\5\22"+
"\n\r\u00b8\u00b9\f\13\2\2\u00b9\u00ba\t\4\2\2\u00ba\u00cd\5\22\n\f\u00bb"+
"\u00bc\f\n\2\2\u00bc\u00bd\t\5\2\2\u00bd\u00cd\5\22\n\13\u00be\u00bf\f"+
"\t\2\2\u00bf\u00c0\t\6\2\2\u00c0\u00cd\5\22\n\n\u00c1\u00c2\f\b\2\2\u00c2"+
"\u00c3\t\7\2\2\u00c3\u00cd\5\22\n\t\u00c4\u00c5\f\7\2\2\u00c5\u00c6\t"+
"\b\2\2\u00c6\u00cd\5\22\n\b\u00c7\u00c8\f\16\2\2\u00c8\u00c9\7\21\2\2"+
"\u00c9\u00ca\5\22\n\2\u00ca\u00cb\7\22\2\2\u00cb\u00cd\3\2\2\2\u00cc\u00b5"+
"\3\2\2\2\u00cc\u00b8\3\2\2\2\u00cc\u00bb\3\2\2\2\u00cc\u00be\3\2\2\2\u00cc"+
"\u00c1\3\2\2\2\u00cc\u00c4\3\2\2\2\u00cc\u00c7\3\2\2\2\u00cd\u00d0\3\2"+
"\2\2\u00ce\u00cc\3\2\2\2\u00ce\u00cf\3\2\2\2\u00cf\23\3\2\2\2\u00d0\u00ce"+
"\3\2\2\2\u00d1\u00d6\5\22\n\2\u00d2\u00d3\7\17\2\2\u00d3\u00d5\5\22\n"+
"\2\u00d4\u00d2\3\2\2\2\u00d5\u00d8\3\2\2\2\u00d6\u00d4\3\2\2\2\u00d6\u00d7"+
"\3\2\2\2\u00d7\25\3\2\2\2\u00d8\u00d6\3\2\2\2\30\34 \',\61\67J[^esvx\u0082"+
"\u0087\u0091\u009a\u00a5\u00b3\u00cc\u00ce\u00d6";
"\3\n\3\n\3\n\3\n\3\n\3\n\3\n\3\n\3\n\3\n\3\n\3\n\3\n\3\n\7\n\u00cf\n\n"+
"\f\n\16\n\u00d2\13\n\3\13\3\13\3\13\7\13\u00d7\n\13\f\13\16\13\u00da\13"+
"\13\3\13\2\5\f\20\22\f\2\4\6\b\n\f\16\20\22\24\2\n\4\2\20\20\25\31\3\2"+
"\32\33\4\2\20\20\34\34\3\2\25\26\3\2\35%\3\2&\'\3\2()\3\2\23\24\2\u00fb"+
"\2\26\3\2\2\2\4\32\3\2\2\2\6^\3\2\2\2\b`\3\2\2\2\nh\3\2\2\2\fk\3\2\2\2"+
"\16\u0087\3\2\2\2\20\u0091\3\2\2\2\22\u00b3\3\2\2\2\24\u00d3\3\2\2\2\26"+
"\27\5\4\3\2\27\30\7\2\2\3\30\3\3\2\2\2\31\33\5\6\4\2\32\31\3\2\2\2\33"+
"\34\3\2\2\2\34\32\3\2\2\2\34\35\3\2\2\2\35\5\3\2\2\2\36 \7\3\2\2\37!\5"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2mx\3\2\2\2no\f\4\2\2ow\7\20\2\2pq\f"+
"\3\2\2qs\7\21\2\2rt\5\22\n\2sr\3\2\2\2st\3\2\2\2tu\3\2\2\2uw\7\22\2\2"+
"vn\3\2\2\2vp\3\2\2\2wz\3\2\2\2xv\3\2\2\2xy\3\2\2\2y\r\3\2\2\2zx\3\2\2"+
"\2{\u0088\5\22\n\2|}\7\3\2\2}\u0082\5\16\b\2~\177\7\17\2\2\177\u0081\5"+
"\16\b\2\u0080~\3\2\2\2\u0081\u0084\3\2\2\2\u0082\u0080\3\2\2\2\u0082\u0083"+
"\3\2\2\2\u0083\u0085\3\2\2\2\u0084\u0082\3\2\2\2\u0085\u0086\7\4\2\2\u0086"+
"\u0088\3\2\2\2\u0087{\3\2\2\2\u0087|\3\2\2\2\u0088\17\3\2\2\2\u0089\u008a"+
"\b\t\1\2\u008a\u008b\7\5\2\2\u008b\u008c\5\20\t\2\u008c\u008d\7\6\2\2"+
"\u008d\u0092\3\2\2\2\u008e\u0092\7\66\2\2\u008f\u0090\7\20\2\2\u0090\u0092"+
"\5\20\t\4\u0091\u0089\3\2\2\2\u0091\u008e\3\2\2\2\u0091\u008f\3\2\2\2"+
"\u0092\u009a\3\2\2\2\u0093\u0094\f\3\2\2\u0094\u0095\7\21\2\2\u0095\u0096"+
"\5\22\n\2\u0096\u0097\7\22\2\2\u0097\u0099\3\2\2\2\u0098\u0093\3\2\2\2"+
"\u0099\u009c\3\2\2\2\u009a\u0098\3\2\2\2\u009a\u009b\3\2\2\2\u009b\21"+
"\3\2\2\2\u009c\u009a\3\2\2\2\u009d\u009e\b\n\1\2\u009e\u009f\7\5\2\2\u009f"+
"\u00a0\5\22\n\2\u00a0\u00a1\7\6\2\2\u00a1\u00b4\3\2\2\2\u00a2\u00a3\7"+
"\66\2\2\u00a3\u00a5\7\5\2\2\u00a4\u00a6\5\24\13\2\u00a5\u00a4\3\2\2\2"+
"\u00a5\u00a6\3\2\2\2\u00a6\u00a7\3\2\2\2\u00a7\u00b4\7\6\2\2\u00a8\u00a9"+
"\7\5\2\2\u00a9\u00aa\5\f\7\2\u00aa\u00ab\7\6\2\2\u00ab\u00ac\5\22\n\20"+
"\u00ac\u00b4\3\2\2\2\u00ad\u00ae\t\2\2\2\u00ae\u00b4\5\22\n\r\u00af\u00b4"+
"\7\66\2\2\u00b0\u00b4\7-\2\2\u00b1\u00b4\7+\2\2\u00b2\u00b4\7,\2\2\u00b3"+
"\u009d\3\2\2\2\u00b3\u00a2\3\2\2\2\u00b3\u00a8\3\2\2\2\u00b3\u00ad\3\2"+
"\2\2\u00b3\u00af\3\2\2\2\u00b3\u00b0\3\2\2\2\u00b3\u00b1\3\2\2\2\u00b3"+
"\u00b2\3\2\2\2\u00b4\u00d0\3\2\2\2\u00b5\u00b6\f\f\2\2\u00b6\u00b7\t\3"+
"\2\2\u00b7\u00cf\5\22\n\r\u00b8\u00b9\f\13\2\2\u00b9\u00ba\t\4\2\2\u00ba"+
"\u00cf\5\22\n\f\u00bb\u00bc\f\n\2\2\u00bc\u00bd\t\5\2\2\u00bd\u00cf\5"+
"\22\n\13\u00be\u00bf\f\t\2\2\u00bf\u00c0\t\6\2\2\u00c0\u00cf\5\22\n\n"+
"\u00c1\u00c2\f\b\2\2\u00c2\u00c3\t\7\2\2\u00c3\u00cf\5\22\n\t\u00c4\u00c5"+
"\f\7\2\2\u00c5\u00c6\t\b\2\2\u00c6\u00cf\5\22\n\b\u00c7\u00c8\f\17\2\2"+
"\u00c8\u00c9\7\21\2\2\u00c9\u00ca\5\22\n\2\u00ca\u00cb\7\22\2\2\u00cb"+
"\u00cf\3\2\2\2\u00cc\u00cd\f\16\2\2\u00cd\u00cf\t\t\2\2\u00ce\u00b5\3"+
"\2\2\2\u00ce\u00b8\3\2\2\2\u00ce\u00bb\3\2\2\2\u00ce\u00be\3\2\2\2\u00ce"+
"\u00c1\3\2\2\2\u00ce\u00c4\3\2\2\2\u00ce\u00c7\3\2\2\2\u00ce\u00cc\3\2"+
"\2\2\u00cf\u00d2\3\2\2\2\u00d0\u00ce\3\2\2\2\u00d0\u00d1\3\2\2\2\u00d1"+
"\23\3\2\2\2\u00d2\u00d0\3\2\2\2\u00d3\u00d8\5\22\n\2\u00d4\u00d5\7\17"+
"\2\2\u00d5\u00d7\5\22\n\2\u00d6\u00d4\3\2\2\2\u00d7\u00da\3\2\2\2\u00d8"+
"\u00d6\3\2\2\2\u00d8\u00d9\3\2\2\2\u00d9\25\3\2\2\2\u00da\u00d8\3\2\2"+
"\2\30\34 \',\61\67J[^esvx\u0082\u0087\u0091\u009a\u00a5\u00b3\u00ce\u00d0"+
"\u00d8";
public static final ATN _ATN =
new ATNDeserializer().deserialize(_serializedATN.toCharArray());
static {

View File

@ -1,4 +1,4 @@
// Generated from /Users/jespergravgaard/c64/src/kickc/src/dk/camelot64/kickc/parser/KickC.g4 by ANTLR 4.7
// Generated from C:/c64/src/kickc/src/dk/camelot64/kickc/parser\KickC.g4 by ANTLR 4.7
package dk.camelot64.kickc.parser;
import org.antlr.v4.runtime.tree.ParseTreeVisitor;
@ -202,6 +202,13 @@ public interface KickCVisitor<T> extends ParseTreeVisitor<T> {
* @return the visitor result
*/
T visitExprBool(KickCParser.ExprBoolContext ctx);
/**
* Visit a parse tree produced by the {@code exprPostMod}
* labeled alternative in {@link KickCParser#expr}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitExprPostMod(KickCParser.ExprPostModContext ctx);
/**
* Visit a parse tree produced by the {@code exprId}
* labeled alternative in {@link KickCParser#expr}.

View File

@ -10,7 +10,7 @@ do {
do{
do { } while(*RASTER!=254)
do { } while(*RASTER!=255)
c=c-1;
c--;
} while(c!=0)
flip();
plot();
@ -21,7 +21,7 @@ void prepare() {
byte i=0;
do {
buffer[i] = i;
i=i+1;
i++;
} while (i!=0)
}
@ -36,7 +36,7 @@ void flip() {
buffer2[dstIdx] = buffer[srcIdx];
srcIdx = srcIdx+1;
dstIdx = dstIdx+16;
c=c-1;
c--;
} while(c!=0)
dstIdx = dstIdx-1;
r=r-1;
@ -44,7 +44,7 @@ void flip() {
byte i=0;
do {
buffer[i] = buffer2[i];
i=i+1;
i++;
} while (i!=0)
}
@ -57,10 +57,10 @@ void plot() {
byte x=0;
do {
line[x] = buffer[i];
x=x+1;
i=i+1;
x++;
i++;
} while(x<16)
line = line+40;
y=y-1;
y--;
} while(y!=0)
}

View File

@ -0,0 +1,8 @@
byte a = 1;
byte b = 1;
byte i=0;
byte c = 0;
do {
c = c + a++ + b++;
i++;
} while (i<3)