1
0
mirror of https://gitlab.com/camelot/kickc.git synced 2024-09-08 17:54:40 +00:00

Addes parser/lexer state ensuring that ASMREL labels does not get confused with negated struct references. Closes #266

This commit is contained in:
jespergravgaard 2019-08-24 14:11:45 +02:00
parent 5642c8d228
commit bb53f0b51d
24 changed files with 1949 additions and 579 deletions

View File

@ -4,6 +4,7 @@ import dk.camelot64.kickc.model.CompileError;
import dk.camelot64.kickc.model.statements.StatementSource;
import dk.camelot64.kickc.parser.KickCLexer;
import dk.camelot64.kickc.parser.KickCParser;
import dk.camelot64.kickc.parser.ParserState;
import org.antlr.v4.runtime.*;
public class AsmParser {
@ -16,8 +17,9 @@ public class AsmParser {
*/
public static KickCParser.AsmLinesContext parseAsm(String body, StatementSource source) {
CodePointCharStream fragmentCharStream = CharStreams.fromString(body);
ParserState parserState = new ParserState();
KickCLexer kickCLexer = new KickCLexer(fragmentCharStream);
KickCParser kickCParser = new KickCParser(new CommonTokenStream(kickCLexer));
KickCParser kickCParser = new KickCParser(new CommonTokenStream(kickCLexer), kickCLexer);
kickCParser.addErrorListener(new BaseErrorListener() {
@Override
public void syntaxError(Recognizer<?, ?> recognizer, Object offendingSymbol, int line, int charPositionInLine, String msg, RecognitionException e) {

View File

@ -8,6 +8,7 @@ import dk.camelot64.kickc.model.symbols.Variable;
import dk.camelot64.kickc.model.values.SymbolRef;
import dk.camelot64.kickc.parser.KickCLexer;
import dk.camelot64.kickc.parser.KickCParser;
import dk.camelot64.kickc.parser.ParserState;
import dk.camelot64.kickc.passes.PassNCastSimplification;
import dk.camelot64.kickc.passes.*;
import org.antlr.v4.runtime.*;
@ -96,6 +97,7 @@ public class Compiler {
program.getLog().append("PARSING " + file.getPath().replace("\\", "/"));
program.getLog().append(fileStream.toString());
}
ParserState parserState = new ParserState();
KickCLexer lexer = new KickCLexer(fileStream);
lexer.addErrorListener(new BaseErrorListener() {
@Override
@ -110,7 +112,7 @@ public class Compiler {
}
});
CommonTokenStream tokenStream = new CommonTokenStream(lexer);
KickCParser parser = new KickCParser(tokenStream);
KickCParser parser = new KickCParser(tokenStream, lexer);
parser.setBuildParseTree(true);
parser.addErrorListener(new BaseErrorListener() {
@Override

View File

@ -1,6 +1,23 @@
// KickC grammar
grammar KickC;
@header {
}
@parser::members {
ParserState state;
public KickCParser(TokenStream input, KickCLexer lexer) {
this(input);
this.state = lexer.state;
}
}
@lexer::members {
ParserState state = new ParserState();
}
file
: importSeq declSeq EOF
;
@ -229,7 +246,7 @@ asmDirective
;
asmLines
: asmLine*
: {state.setAsm(true);} asmLine* {state.setAsm(false);}
;
asmLine
@ -302,7 +319,7 @@ fragment HEXDIGIT : [0-9a-fA-F];
NAME : NAME_START NAME_CHAR* ;
fragment NAME_START : [a-zA-Z_];
fragment NAME_CHAR : [a-zA-Z0-9_];
ASMREL: '!' NAME_CHAR* [+-]+ ;
ASMREL: '!' NAME_CHAR* [+-]+ {state.isAsm()}? ;
// Add white space to the hidden channel 1
WS : [ \t\r\n\u00a0]+ -> channel(1);

View File

@ -1,6 +1,8 @@
// Generated from /Users/jespergravgaard/c64/kickc/src/main/java/dk/camelot64/kickc/parser/KickC.g4 by ANTLR 4.7
package dk.camelot64.kickc.parser;
import org.antlr.v4.runtime.ParserRuleContext;
import org.antlr.v4.runtime.tree.ErrorNode;
import org.antlr.v4.runtime.tree.TerminalNode;

View File

@ -1,5 +1,7 @@
// Generated from /Users/jespergravgaard/c64/kickc/src/main/java/dk/camelot64/kickc/parser/KickC.g4 by ANTLR 4.7
package dk.camelot64.kickc.parser;
import org.antlr.v4.runtime.tree.AbstractParseTreeVisitor;
/**

View File

@ -1,5 +1,7 @@
// Generated from /Users/jespergravgaard/c64/kickc/src/main/java/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;
import org.antlr.v4.runtime.Token;
@ -123,6 +125,9 @@ public class KickCLexer extends Lexer {
}
ParserState state = new ParserState();
public KickCLexer(CharStream input) {
super(input);
_interp = new LexerATNSimulator(this,_ATN,_decisionToDFA,_sharedContextCache);
@ -146,8 +151,24 @@ public class KickCLexer extends Lexer {
@Override
public ATN getATN() { return _ATN; }
@Override
public boolean sempred(RuleContext _localctx, int ruleIndex, int predIndex) {
switch (ruleIndex) {
case 115:
return ASMREL_sempred((RuleContext)_localctx, predIndex);
}
return true;
}
private boolean ASMREL_sempred(RuleContext _localctx, int predIndex) {
switch (predIndex) {
case 0:
return state.isAsm();
}
return true;
}
public static final String _serializedATN =
"\3\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964\2t\u048a\b\1\4\2\t"+
"\3\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964\2t\u048c\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"+
@ -208,360 +229,360 @@ public class KickCLexer extends Lexer {
"\3l\3l\6l\u0437\nl\rl\16l\u0438\5l\u043b\nl\3m\6m\u043e\nm\rm\16m\u043f"+
"\3n\3n\3n\3n\3n\5n\u0447\nn\3n\6n\u044a\nn\rn\16n\u044b\3o\3o\3p\3p\3"+
"q\3q\3r\3r\7r\u0456\nr\fr\16r\u0459\13r\3s\3s\3t\3t\3u\3u\7u\u0461\nu"+
"\fu\16u\u0464\13u\3u\6u\u0467\nu\ru\16u\u0468\3v\6v\u046c\nv\rv\16v\u046d"+
"\3v\3v\3w\3w\3w\3w\7w\u0476\nw\fw\16w\u0479\13w\3w\3w\3x\3x\3x\3x\7x\u0481"+
"\nx\fx\16x\u0484\13x\3x\3x\3x\3x\3x\4\u0392\u0482\2y\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\66k\67m8o9q:s;u<w=y>{?}@\177"+
"A\u0081B\u0083C\u0085D\u0087E\u0089F\u008bG\u008dH\u008fI\u0091J\u0093"+
"K\u0095L\u0097M\u0099N\u009bO\u009dP\u009fQ\u00a1R\u00a3S\u00a5T\u00a7"+
"U\u00a9V\u00abW\u00adX\u00afY\u00b1Z\u00b3[\u00b5\\\u00b7]\u00b9^\u00bb"+
"_\u00bd`\u00bfa\u00c1b\u00c3c\u00c5d\u00c7e\u00c9f\u00cbg\u00cdh\u00cf"+
"i\u00d1j\u00d3k\u00d5l\u00d7m\u00d9n\u00dbo\u00dd\2\u00df\2\u00e1\2\u00e3"+
"p\u00e5\2\u00e7\2\u00e9q\u00ebr\u00eds\u00eft\3\2\23\3\2$$\3\2||\4\2r"+
"ruu\4\2ooww\7\2$$))hhpptt\3\2))\4\2uuww\7\2dfkknnuuyy\4\2DDdd\3\2\62\63"+
"\3\2\62;\5\2\62;CHch\5\2C\\aac|\6\2\62;C\\aac|\4\2--//\6\2\13\f\17\17"+
"\"\"\u00a2\u00a2\4\2\f\f\17\17\2\u04fc\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\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\177\3\2\2"+
"\2\2\u0081\3\2\2\2\2\u0083\3\2\2\2\2\u0085\3\2\2\2\2\u0087\3\2\2\2\2\u0089"+
"\3\2\2\2\2\u008b\3\2\2\2\2\u008d\3\2\2\2\2\u008f\3\2\2\2\2\u0091\3\2\2"+
"\2\2\u0093\3\2\2\2\2\u0095\3\2\2\2\2\u0097\3\2\2\2\2\u0099\3\2\2\2\2\u009b"+
"\3\2\2\2\2\u009d\3\2\2\2\2\u009f\3\2\2\2\2\u00a1\3\2\2\2\2\u00a3\3\2\2"+
"\2\2\u00a5\3\2\2\2\2\u00a7\3\2\2\2\2\u00a9\3\2\2\2\2\u00ab\3\2\2\2\2\u00ad"+
"\3\2\2\2\2\u00af\3\2\2\2\2\u00b1\3\2\2\2\2\u00b3\3\2\2\2\2\u00b5\3\2\2"+
"\2\2\u00b7\3\2\2\2\2\u00b9\3\2\2\2\2\u00bb\3\2\2\2\2\u00bd\3\2\2\2\2\u00bf"+
"\3\2\2\2\2\u00c1\3\2\2\2\2\u00c3\3\2\2\2\2\u00c5\3\2\2\2\2\u00c7\3\2\2"+
"\2\2\u00c9\3\2\2\2\2\u00cb\3\2\2\2\2\u00cd\3\2\2\2\2\u00cf\3\2\2\2\2\u00d1"+
"\3\2\2\2\2\u00d3\3\2\2\2\2\u00d5\3\2\2\2\2\u00d7\3\2\2\2\2\u00d9\3\2\2"+
"\2\2\u00db\3\2\2\2\2\u00e3\3\2\2\2\2\u00e9\3\2\2\2\2\u00eb\3\2\2\2\2\u00ed"+
"\3\2\2\2\2\u00ef\3\2\2\2\3\u00f1\3\2\2\2\5\u00f8\3\2\2\2\7\u00fa\3\2\2"+
"\2\t\u0102\3\2\2\2\13\u0104\3\2\2\2\r\u0106\3\2\2\2\17\u0108\3\2\2\2\21"+
"\u010a\3\2\2\2\23\u010c\3\2\2\2\25\u010e\3\2\2\2\27\u0116\3\2\2\2\31\u011e"+
"\3\2\2\2\33\u0127\3\2\2\2\35\u012a\3\2\2\2\37\u012e\3\2\2\2!\u0135\3\2"+
"\2\2#\u013d\3\2\2\2%\u0142\3\2\2\2\'\u014b\3\2\2\2)\u0154\3\2\2\2+\u015d"+
"\3\2\2\2-\u0167\3\2\2\2/\u016d\3\2\2\2\61\u0174\3\2\2\2\63\u017b\3\2\2"+
"\2\65\u0181\3\2\2\2\67\u018a\3\2\2\29\u0191\3\2\2\2;\u019a\3\2\2\2=\u01a4"+
"\3\2\2\2?\u01a7\3\2\2\2A\u01ac\3\2\2\2C\u01b2\3\2\2\2E\u01b5\3\2\2\2G"+
"\u01b9\3\2\2\2I\u01c0\3\2\2\2K\u01c7\3\2\2\2M\u01cd\3\2\2\2O\u01d6\3\2"+
"\2\2Q\u01da\3\2\2\2S\u01e3\3\2\2\2U\u01e8\3\2\2\2W\u01ea\3\2\2\2Y\u01ed"+
"\3\2\2\2[\u01f4\3\2\2\2]\u01fd\3\2\2\2_\u01ff\3\2\2\2a\u0201\3\2\2\2c"+
"\u0203\3\2\2\2e\u020a\3\2\2\2g\u020f\3\2\2\2i\u0211\3\2\2\2k\u0214\3\2"+
"\2\2m\u021b\3\2\2\2o\u0222\3\2\2\2q\u0225\3\2\2\2s\u0228\3\2\2\2u\u022a"+
"\3\2\2\2w\u022c\3\2\2\2y\u022e\3\2\2\2{\u0230\3\2\2\2}\u0232\3\2\2\2\177"+
"\u0235\3\2\2\2\u0081\u0238\3\2\2\2\u0083\u023a\3\2\2\2\u0085\u023c\3\2"+
"\2\2\u0087\u023e\3\2\2\2\u0089\u0240\3\2\2\2\u008b\u0243\3\2\2\2\u008d"+
"\u0246\3\2\2\2\u008f\u0249\3\2\2\2\u0091\u024c\3\2\2\2\u0093\u024e\3\2"+
"\2\2\u0095\u0250\3\2\2\2\u0097\u0253\3\2\2\2\u0099\u0256\3\2\2\2\u009b"+
"\u0258\3\2\2\2\u009d\u025b\3\2\2\2\u009f\u025e\3\2\2\2\u00a1\u0261\3\2"+
"\2\2\u00a3\u0264\3\2\2\2\u00a5\u0267\3\2\2\2\u00a7\u026b\3\2\2\2\u00a9"+
"\u026f\3\2\2\2\u00ab\u0272\3\2\2\2\u00ad\u0275\3\2\2\2\u00af\u0278\3\2"+
"\2\2\u00b1\u0280\3\2\2\2\u00b3\u0289\3\2\2\2\u00b5\u028e\3\2\2\2\u00b7"+
"\u0297\3\2\2\2\u00b9\u029d\3\2\2\2\u00bb\u02a4\3\2\2\2\u00bd\u02aa\3\2"+
"\2\2\u00bf\u038a\3\2\2\2\u00c1\u038c\3\2\2\2\u00c3\u03bd\3\2\2\2\u00c5"+
"\u03bf\3\2\2\2\u00c7\u03d5\3\2\2\2\u00c9\u03e6\3\2\2\2\u00cb\u03ea\3\2"+
"\2\2\u00cd\u03ef\3\2\2\2\u00cf\u03f6\3\2\2\2\u00d1\u0407\3\2\2\2\u00d3"+
"\u0415\3\2\2\2\u00d5\u0426\3\2\2\2\u00d7\u043a\3\2\2\2\u00d9\u043d\3\2"+
"\2\2\u00db\u0446\3\2\2\2\u00dd\u044d\3\2\2\2\u00df\u044f\3\2\2\2\u00e1"+
"\u0451\3\2\2\2\u00e3\u0453\3\2\2\2\u00e5\u045a\3\2\2\2\u00e7\u045c\3\2"+
"\2\2\u00e9\u045e\3\2\2\2\u00eb\u046b\3\2\2\2\u00ed\u0471\3\2\2\2\u00ef"+
"\u047c\3\2\2\2\u00f1\u00f2\7k\2\2\u00f2\u00f3\7o\2\2\u00f3\u00f4\7r\2"+
"\2\u00f4\u00f5\7q\2\2\u00f5\u00f6\7t\2\2\u00f6\u00f7\7v\2\2\u00f7\4\3"+
"\2\2\2\u00f8\u00f9\7=\2\2\u00f9\6\3\2\2\2\u00fa\u00fb\7v\2\2\u00fb\u00fc"+
"\7{\2\2\u00fc\u00fd\7r\2\2\u00fd\u00fe\7g\2\2\u00fe\u00ff\7f\2\2\u00ff"+
"\u0100\7g\2\2\u0100\u0101\7h\2\2\u0101\b\3\2\2\2\u0102\u0103\7.\2\2\u0103"+
"\n\3\2\2\2\u0104\u0105\7?\2\2\u0105\f\3\2\2\2\u0106\u0107\7*\2\2\u0107"+
"\16\3\2\2\2\u0108\u0109\7+\2\2\u0109\20\3\2\2\2\u010a\u010b\7}\2\2\u010b"+
"\22\3\2\2\2\u010c\u010d\7\177\2\2\u010d\24\3\2\2\2\u010e\u010f\7%\2\2"+
"\u010f\u0110\7r\2\2\u0110\u0111\7t\2\2\u0111\u0112\7c\2\2\u0112\u0113"+
"\7i\2\2\u0113\u0114\7o\2\2\u0114\u0115\7c\2\2\u0115\26\3\2\2\2\u0116\u0117"+
"\7t\2\2\u0117\u0118\7g\2\2\u0118\u0119\7u\2\2\u0119\u011a\7g\2\2\u011a"+
"\u011b\7t\2\2\u011b\u011c\7x\2\2\u011c\u011d\7g\2\2\u011d\30\3\2\2\2\u011e"+
"\u011f\7%\2\2\u011f\u0120\7t\2\2\u0120\u0121\7g\2\2\u0121\u0122\7u\2\2"+
"\u0122\u0123\7g\2\2\u0123\u0124\7t\2\2\u0124\u0125\7x\2\2\u0125\u0126"+
"\7g\2\2\u0126\32\3\2\2\2\u0127\u0128\7r\2\2\u0128\u0129\7e\2\2\u0129\34"+
"\3\2\2\2\u012a\u012b\7%\2\2\u012b\u012c\7r\2\2\u012c\u012d\7e\2\2\u012d"+
"\36\3\2\2\2\u012e\u012f\7v\2\2\u012f\u0130\7c\2\2\u0130\u0131\7t\2\2\u0131"+
"\u0132\7i\2\2\u0132\u0133\7g\2\2\u0133\u0134\7v\2\2\u0134 \3\2\2\2\u0135"+
"\u0136\7%\2\2\u0136\u0137\7v\2\2\u0137\u0138\7c\2\2\u0138\u0139\7t\2\2"+
"\u0139\u013a\7i\2\2\u013a\u013b\7g\2\2\u013b\u013c\7v\2\2\u013c\"\3\2"+
"\2\2\u013d\u013e\7n\2\2\u013e\u013f\7k\2\2\u013f\u0140\7p\2\2\u0140\u0141"+
"\7m\2\2\u0141$\3\2\2\2\u0142\u0143\7e\2\2\u0143\u0144\7q\2\2\u0144\u0145"+
"\7f\2\2\u0145\u0146\7g\2\2\u0146\u0147\7a\2\2\u0147\u0148\7u\2\2\u0148"+
"\u0149\7g\2\2\u0149\u014a\7i\2\2\u014a&\3\2\2\2\u014b\u014c\7f\2\2\u014c"+
"\u014d\7c\2\2\u014d\u014e\7v\2\2\u014e\u014f\7c\2\2\u014f\u0150\7a\2\2"+
"\u0150\u0151\7u\2\2\u0151\u0152\7g\2\2\u0152\u0153\7i\2\2\u0153(\3\2\2"+
"\2\u0154\u0155\7g\2\2\u0155\u0156\7p\2\2\u0156\u0157\7e\2\2\u0157\u0158"+
"\7q\2\2\u0158\u0159\7f\2\2\u0159\u015a\7k\2\2\u015a\u015b\7p\2\2\u015b"+
"\u015c\7i\2\2\u015c*\3\2\2\2\u015d\u015e\7%\2\2\u015e\u015f\7g\2\2\u015f"+
"\u0160\7p\2\2\u0160\u0161\7e\2\2\u0161\u0162\7q\2\2\u0162\u0163\7f\2\2"+
"\u0163\u0164\7k\2\2\u0164\u0165\7p\2\2\u0165\u0166\7i\2\2\u0166,\3\2\2"+
"\2\u0167\u0168\7e\2\2\u0168\u0169\7q\2\2\u0169\u016a\7p\2\2\u016a\u016b"+
"\7u\2\2\u016b\u016c\7v\2\2\u016c.\3\2\2\2\u016d\u016e\7g\2\2\u016e\u016f"+
"\7z\2\2\u016f\u0170\7v\2\2\u0170\u0171\7g\2\2\u0171\u0172\7t\2\2\u0172"+
"\u0173\7p\2\2\u0173\60\3\2\2\2\u0174\u0175\7g\2\2\u0175\u0176\7z\2\2\u0176"+
"\u0177\7r\2\2\u0177\u0178\7q\2\2\u0178\u0179\7t\2\2\u0179\u017a\7v\2\2"+
"\u017a\62\3\2\2\2\u017b\u017c\7c\2\2\u017c\u017d\7n\2\2\u017d\u017e\7"+
"k\2\2\u017e\u017f\7i\2\2\u017f\u0180\7p\2\2\u0180\64\3\2\2\2\u0181\u0182"+
"\7t\2\2\u0182\u0183\7g\2\2\u0183\u0184\7i\2\2\u0184\u0185\7k\2\2\u0185"+
"\u0186\7u\2\2\u0186\u0187\7v\2\2\u0187\u0188\7g\2\2\u0188\u0189\7t\2\2"+
"\u0189\66\3\2\2\2\u018a\u018b\7k\2\2\u018b\u018c\7p\2\2\u018c\u018d\7"+
"n\2\2\u018d\u018e\7k\2\2\u018e\u018f\7p\2\2\u018f\u0190\7g\2\2\u01908"+
"\3\2\2\2\u0191\u0192\7x\2\2\u0192\u0193\7q\2\2\u0193\u0194\7n\2\2\u0194"+
"\u0195\7c\2\2\u0195\u0196\7v\2\2\u0196\u0197\7k\2\2\u0197\u0198\7n\2\2"+
"\u0198\u0199\7g\2\2\u0199:\3\2\2\2\u019a\u019b\7k\2\2\u019b\u019c\7p\2"+
"\2\u019c\u019d\7v\2\2\u019d\u019e\7g\2\2\u019e\u019f\7t\2\2\u019f\u01a0"+
"\7t\2\2\u01a0\u01a1\7w\2\2\u01a1\u01a2\7r\2\2\u01a2\u01a3\7v\2\2\u01a3"+
"<\3\2\2\2\u01a4\u01a5\7k\2\2\u01a5\u01a6\7h\2\2\u01a6>\3\2\2\2\u01a7\u01a8"+
"\7g\2\2\u01a8\u01a9\7n\2\2\u01a9\u01aa\7u\2\2\u01aa\u01ab\7g\2\2\u01ab"+
"@\3\2\2\2\u01ac\u01ad\7y\2\2\u01ad\u01ae\7j\2\2\u01ae\u01af\7k\2\2\u01af"+
"\u01b0\7n\2\2\u01b0\u01b1\7g\2\2\u01b1B\3\2\2\2\u01b2\u01b3\7f\2\2\u01b3"+
"\u01b4\7q\2\2\u01b4D\3\2\2\2\u01b5\u01b6\7h\2\2\u01b6\u01b7\7q\2\2\u01b7"+
"\u01b8\7t\2\2\u01b8F\3\2\2\2\u01b9\u01ba\7u\2\2\u01ba\u01bb\7y\2\2\u01bb"+
"\u01bc\7k\2\2\u01bc\u01bd\7v\2\2\u01bd\u01be\7e\2\2\u01be\u01bf\7j\2\2"+
"\u01bfH\3\2\2\2\u01c0\u01c1\7t\2\2\u01c1\u01c2\7g\2\2\u01c2\u01c3\7v\2"+
"\2\u01c3\u01c4\7w\2\2\u01c4\u01c5\7t\2\2\u01c5\u01c6\7p\2\2\u01c6J\3\2"+
"\2\2\u01c7\u01c8\7d\2\2\u01c8\u01c9\7t\2\2\u01c9\u01ca\7g\2\2\u01ca\u01cb"+
"\7c\2\2\u01cb\u01cc\7m\2\2\u01ccL\3\2\2\2\u01cd\u01ce\7e\2\2\u01ce\u01cf"+
"\7q\2\2\u01cf\u01d0\7p\2\2\u01d0\u01d1\7v\2\2\u01d1\u01d2\7k\2\2\u01d2"+
"\u01d3\7p\2\2\u01d3\u01d4\7w\2\2\u01d4\u01d5\7g\2\2\u01d5N\3\2\2\2\u01d6"+
"\u01d7\7c\2\2\u01d7\u01d8\7u\2\2\u01d8\u01d9\7o\2\2\u01d9P\3\2\2\2\u01da"+
"\u01db\7f\2\2\u01db\u01dc\7g\2\2\u01dc\u01dd\7h\2\2\u01dd\u01de\7c\2\2"+
"\u01de\u01df\7w\2\2\u01df\u01e0\7n\2\2\u01e0\u01e1\7v\2\2\u01e1\u01e2"+
"\7<\2\2\u01e2R\3\2\2\2\u01e3\u01e4\7e\2\2\u01e4\u01e5\7c\2\2\u01e5\u01e6"+
"\7u\2\2\u01e6\u01e7\7g\2\2\u01e7T\3\2\2\2\u01e8\u01e9\7<\2\2\u01e9V\3"+
"\2\2\2\u01ea\u01eb\7\60\2\2\u01eb\u01ec\7\60\2\2\u01ecX\3\2\2\2\u01ed"+
"\u01ee\7u\2\2\u01ee\u01ef\7k\2\2\u01ef\u01f0\7i\2\2\u01f0\u01f1\7p\2\2"+
"\u01f1\u01f2\7g\2\2\u01f2\u01f3\7f\2\2\u01f3Z\3\2\2\2\u01f4\u01f5\7w\2"+
"\2\u01f5\u01f6\7p\2\2\u01f6\u01f7\7u\2\2\u01f7\u01f8\7k\2\2\u01f8\u01f9"+
"\7i\2\2\u01f9\u01fa\7p\2\2\u01fa\u01fb\7g\2\2\u01fb\u01fc\7f\2\2\u01fc"+
"\\\3\2\2\2\u01fd\u01fe\7,\2\2\u01fe^\3\2\2\2\u01ff\u0200\7]\2\2\u0200"+
"`\3\2\2\2\u0201\u0202\7_\2\2\u0202b\3\2\2\2\u0203\u0204\7u\2\2\u0204\u0205"+
"\7v\2\2\u0205\u0206\7t\2\2\u0206\u0207\7w\2\2\u0207\u0208\7e\2\2\u0208"+
"\u0209\7v\2\2\u0209d\3\2\2\2\u020a\u020b\7g\2\2\u020b\u020c\7p\2\2\u020c"+
"\u020d\7w\2\2\u020d\u020e\7o\2\2\u020ef\3\2\2\2\u020f\u0210\7\60\2\2\u0210"+
"h\3\2\2\2\u0211\u0212\7/\2\2\u0212\u0213\7@\2\2\u0213j\3\2\2\2\u0214\u0215"+
"\7u\2\2\u0215\u0216\7k\2\2\u0216\u0217\7|\2\2\u0217\u0218\7g\2\2\u0218"+
"\u0219\7q\2\2\u0219\u021a\7h\2\2\u021al\3\2\2\2\u021b\u021c\7v\2\2\u021c"+
"\u021d\7{\2\2\u021d\u021e\7r\2\2\u021e\u021f\7g\2\2\u021f\u0220\7k\2\2"+
"\u0220\u0221\7f\2\2\u0221n\3\2\2\2\u0222\u0223\7/\2\2\u0223\u0224\7/\2"+
"\2\u0224p\3\2\2\2\u0225\u0226\7-\2\2\u0226\u0227\7-\2\2\u0227r\3\2\2\2"+
"\u0228\u0229\7-\2\2\u0229t\3\2\2\2\u022a\u022b\7/\2\2\u022bv\3\2\2\2\u022c"+
"\u022d\7#\2\2\u022dx\3\2\2\2\u022e\u022f\7(\2\2\u022fz\3\2\2\2\u0230\u0231"+
"\7\u0080\2\2\u0231|\3\2\2\2\u0232\u0233\7@\2\2\u0233\u0234\7@\2\2\u0234"+
"~\3\2\2\2\u0235\u0236\7>\2\2\u0236\u0237\7>\2\2\u0237\u0080\3\2\2\2\u0238"+
"\u0239\7\61\2\2\u0239\u0082\3\2\2\2\u023a\u023b\7\'\2\2\u023b\u0084\3"+
"\2\2\2\u023c\u023d\7>\2\2\u023d\u0086\3\2\2\2\u023e\u023f\7@\2\2\u023f"+
"\u0088\3\2\2\2\u0240\u0241\7?\2\2\u0241\u0242\7?\2\2\u0242\u008a\3\2\2"+
"\2\u0243\u0244\7#\2\2\u0244\u0245\7?\2\2\u0245\u008c\3\2\2\2\u0246\u0247"+
"\7>\2\2\u0247\u0248\7?\2\2\u0248\u008e\3\2\2\2\u0249\u024a\7@\2\2\u024a"+
"\u024b\7?\2\2\u024b\u0090\3\2\2\2\u024c\u024d\7`\2\2\u024d\u0092\3\2\2"+
"\2\u024e\u024f\7~\2\2\u024f\u0094\3\2\2\2\u0250\u0251\7(\2\2\u0251\u0252"+
"\7(\2\2\u0252\u0096\3\2\2\2\u0253\u0254\7~\2\2\u0254\u0255\7~\2\2\u0255"+
"\u0098\3\2\2\2\u0256\u0257\7A\2\2\u0257\u009a\3\2\2\2\u0258\u0259\7-\2"+
"\2\u0259\u025a\7?\2\2\u025a\u009c\3\2\2\2\u025b\u025c\7/\2\2\u025c\u025d"+
"\7?\2\2\u025d\u009e\3\2\2\2\u025e\u025f\7,\2\2\u025f\u0260\7?\2\2\u0260"+
"\u00a0\3\2\2\2\u0261\u0262\7\61\2\2\u0262\u0263\7?\2\2\u0263\u00a2\3\2"+
"\2\2\u0264\u0265\7\'\2\2\u0265\u0266\7?\2\2\u0266\u00a4\3\2\2\2\u0267"+
"\u0268\7>\2\2\u0268\u0269\7>\2\2\u0269\u026a\7?\2\2\u026a\u00a6\3\2\2"+
"\2\u026b\u026c\7@\2\2\u026c\u026d\7@\2\2\u026d\u026e\7?\2\2\u026e\u00a8"+
"\3\2\2\2\u026f\u0270\7(\2\2\u0270\u0271\7?\2\2\u0271\u00aa\3\2\2\2\u0272"+
"\u0273\7~\2\2\u0273\u0274\7?\2\2\u0274\u00ac\3\2\2\2\u0275\u0276\7`\2"+
"\2\u0276\u0277\7?\2\2\u0277\u00ae\3\2\2\2\u0278\u0279\7m\2\2\u0279\u027a"+
"\7k\2\2\u027a\u027b\7e\2\2\u027b\u027c\7m\2\2\u027c\u027d\7c\2\2\u027d"+
"\u027e\7u\2\2\u027e\u027f\7o\2\2\u027f\u00b0\3\2\2\2\u0280\u0281\7t\2"+
"\2\u0281\u0282\7g\2\2\u0282\u0283\7u\2\2\u0283\u0284\7q\2\2\u0284\u0285"+
"\7w\2\2\u0285\u0286\7t\2\2\u0286\u0287\7e\2\2\u0287\u0288\7g\2\2\u0288"+
"\u00b2\3\2\2\2\u0289\u028a\7w\2\2\u028a\u028b\7u\2\2\u028b\u028c\7g\2"+
"\2\u028c\u028d\7u\2\2\u028d\u00b4\3\2\2\2\u028e\u028f\7e\2\2\u028f\u0290"+
"\7n\2\2\u0290\u0291\7q\2\2\u0291\u0292\7d\2\2\u0292\u0293\7d\2\2\u0293"+
"\u0294\7g\2\2\u0294\u0295\7t\2\2\u0295\u0296\7u\2\2\u0296\u00b6\3\2\2"+
"\2\u0297\u0298\7d\2\2\u0298\u0299\7{\2\2\u0299\u029a\7v\2\2\u029a\u029b"+
"\7g\2\2\u029b\u029c\7u\2\2\u029c\u00b8\3\2\2\2\u029d\u029e\7e\2\2\u029e"+
"\u029f\7{\2\2\u029f\u02a0\7e\2\2\u02a0\u02a1\7n\2\2\u02a1\u02a2\7g\2\2"+
"\u02a2\u02a3\7u\2\2\u02a3\u00ba\3\2\2\2\u02a4\u02a5\7\60\2\2\u02a5\u02a6"+
"\7d\2\2\u02a6\u02a7\7{\2\2\u02a7\u02a8\7v\2\2\u02a8\u02a9\7g\2\2\u02a9"+
"\u00bc\3\2\2\2\u02aa\u02ab\7%\2\2\u02ab\u00be\3\2\2\2\u02ac\u02ad\7d\2"+
"\2\u02ad\u02ae\7t\2\2\u02ae\u038b\7m\2\2\u02af\u02b0\7q\2\2\u02b0\u02b1"+
"\7t\2\2\u02b1\u038b\7c\2\2\u02b2\u02b3\7m\2\2\u02b3\u02b4\7k\2\2\u02b4"+
"\u038b\7n\2\2\u02b5\u02b6\7u\2\2\u02b6\u02b7\7n\2\2\u02b7\u038b\7q\2\2"+
"\u02b8\u02b9\7p\2\2\u02b9\u02ba\7q\2\2\u02ba\u038b\7r\2\2\u02bb\u02bc"+
"\7c\2\2\u02bc\u02bd\7u\2\2\u02bd\u038b\7n\2\2\u02be\u02bf\7r\2\2\u02bf"+
"\u02c0\7j\2\2\u02c0\u038b\7r\2\2\u02c1\u02c2\7c\2\2\u02c2\u02c3\7p\2\2"+
"\u02c3\u038b\7e\2\2\u02c4\u02c5\7d\2\2\u02c5\u02c6\7r\2\2\u02c6\u038b"+
"\7n\2\2\u02c7\u02c8\7e\2\2\u02c8\u02c9\7n\2\2\u02c9\u038b\7e\2\2\u02ca"+
"\u02cb\7l\2\2\u02cb\u02cc\7u\2\2\u02cc\u038b\7t\2\2\u02cd\u02ce\7c\2\2"+
"\u02ce\u02cf\7p\2\2\u02cf\u038b\7f\2\2\u02d0\u02d1\7t\2\2\u02d1\u02d2"+
"\7n\2\2\u02d2\u038b\7c\2\2\u02d3\u02d4\7d\2\2\u02d4\u02d5\7k\2\2\u02d5"+
"\u038b\7v\2\2\u02d6\u02d7\7t\2\2\u02d7\u02d8\7q\2\2\u02d8\u038b\7n\2\2"+
"\u02d9\u02da\7r\2\2\u02da\u02db\7n\2\2\u02db\u038b\7c\2\2\u02dc\u02dd"+
"\7r\2\2\u02dd\u02de\7n\2\2\u02de\u038b\7r\2\2\u02df\u02e0\7d\2\2\u02e0"+
"\u02e1\7o\2\2\u02e1\u038b\7k\2\2\u02e2\u02e3\7u\2\2\u02e3\u02e4\7g\2\2"+
"\u02e4\u038b\7e\2\2\u02e5\u02e6\7t\2\2\u02e6\u02e7\7v\2\2\u02e7\u038b"+
"\7k\2\2\u02e8\u02e9\7g\2\2\u02e9\u02ea\7q\2\2\u02ea\u038b\7t\2\2\u02eb"+
"\u02ec\7u\2\2\u02ec\u02ed\7t\2\2\u02ed\u038b\7g\2\2\u02ee\u02ef\7n\2\2"+
"\u02ef\u02f0\7u\2\2\u02f0\u038b\7t\2\2\u02f1\u02f2\7r\2\2\u02f2\u02f3"+
"\7j\2\2\u02f3\u038b\7c\2\2\u02f4\u02f5\7c\2\2\u02f5\u02f6\7n\2\2\u02f6"+
"\u038b\7t\2\2\u02f7\u02f8\7l\2\2\u02f8\u02f9\7o\2\2\u02f9\u038b\7r\2\2"+
"\u02fa\u02fb\7d\2\2\u02fb\u02fc\7x\2\2\u02fc\u038b\7e\2\2\u02fd\u02fe"+
"\7e\2\2\u02fe\u02ff\7n\2\2\u02ff\u038b\7k\2\2\u0300\u0301\7t\2\2\u0301"+
"\u0302\7v\2\2\u0302\u038b\7u\2\2\u0303\u0304\7c\2\2\u0304\u0305\7f\2\2"+
"\u0305\u038b\7e\2\2\u0306\u0307\7t\2\2\u0307\u0308\7t\2\2\u0308\u038b"+
"\7c\2\2\u0309\u030a\7d\2\2\u030a\u030b\7x\2\2\u030b\u038b\7u\2\2\u030c"+
"\u030d\7u\2\2\u030d\u030e\7g\2\2\u030e\u038b\7k\2\2\u030f\u0310\7u\2\2"+
"\u0310\u0311\7c\2\2\u0311\u038b\7z\2\2\u0312\u0313\7u\2\2\u0313\u0314"+
"\7v\2\2\u0314\u038b\7{\2\2\u0315\u0316\7u\2\2\u0316\u0317\7v\2\2\u0317"+
"\u038b\7c\2\2\u0318\u0319\7u\2\2\u0319\u031a\7v\2\2\u031a\u038b\7z\2\2"+
"\u031b\u031c\7f\2\2\u031c\u031d\7g\2\2\u031d\u038b\7{\2\2\u031e\u031f"+
"\7v\2\2\u031f\u0320\7z\2\2\u0320\u038b\7c\2\2\u0321\u0322\7z\2\2\u0322"+
"\u0323\7c\2\2\u0323\u038b\7c\2\2\u0324\u0325\7d\2\2\u0325\u0326\7e\2\2"+
"\u0326\u038b\7e\2\2\u0327\u0328\7c\2\2\u0328\u0329\7j\2\2\u0329\u038b"+
"\7z\2\2\u032a\u032b\7v\2\2\u032b\u032c\7{\2\2\u032c\u038b\7c\2\2\u032d"+
"\u032e\7v\2\2\u032e\u032f\7z\2\2\u032f\u038b\7u\2\2\u0330\u0331\7v\2\2"+
"\u0331\u0332\7c\2\2\u0332\u038b\7u\2\2\u0333\u0334\7u\2\2\u0334\u0335"+
"\7j\2\2\u0335\u038b\7{\2\2\u0336\u0337\7u\2\2\u0337\u0338\7j\2\2\u0338"+
"\u038b\7z\2\2\u0339\u033a\7n\2\2\u033a\u033b\7f\2\2\u033b\u038b\7{\2\2"+
"\u033c\u033d\7n\2\2\u033d\u033e\7f\2\2\u033e\u038b\7c\2\2\u033f\u0340"+
"\7n\2\2\u0340\u0341\7f\2\2\u0341\u038b\7z\2\2\u0342\u0343\7n\2\2\u0343"+
"\u0344\7c\2\2\u0344\u038b\7z\2\2\u0345\u0346\7v\2\2\u0346\u0347\7c\2\2"+
"\u0347\u038b\7{\2\2\u0348\u0349\7v\2\2\u0349\u034a\7c\2\2\u034a\u038b"+
"\7z\2\2\u034b\u034c\7d\2\2\u034c\u034d\7e\2\2\u034d\u038b\7u\2\2\u034e"+
"\u034f\7e\2\2\u034f\u0350\7n\2\2\u0350\u038b\7x\2\2\u0351\u0352\7v\2\2"+
"\u0352\u0353\7u\2\2\u0353\u038b\7z\2\2\u0354\u0355\7n\2\2\u0355\u0356"+
"\7c\2\2\u0356\u038b\7u\2\2\u0357\u0358\7e\2\2\u0358\u0359\7r\2\2\u0359"+
"\u038b\7{\2\2\u035a\u035b\7e\2\2\u035b\u035c\7o\2\2\u035c\u038b\7r\2\2"+
"\u035d\u035e\7e\2\2\u035e\u035f\7r\2\2\u035f\u038b\7z\2\2\u0360\u0361"+
"\7f\2\2\u0361\u0362\7e\2\2\u0362\u038b\7r\2\2\u0363\u0364\7f\2\2\u0364"+
"\u0365\7g\2\2\u0365\u038b\7e\2\2\u0366\u0367\7k\2\2\u0367\u0368\7p\2\2"+
"\u0368\u038b\7e\2\2\u0369\u036a\7c\2\2\u036a\u036b\7z\2\2\u036b\u038b"+
"\7u\2\2\u036c\u036d\7d\2\2\u036d\u036e\7p\2\2\u036e\u038b\7g\2\2\u036f"+
"\u0370\7e\2\2\u0370\u0371\7n\2\2\u0371\u038b\7f\2\2\u0372\u0373\7u\2\2"+
"\u0373\u0374\7d\2\2\u0374\u038b\7e\2\2\u0375\u0376\7k\2\2\u0376\u0377"+
"\7u\2\2\u0377\u038b\7e\2\2\u0378\u0379\7k\2\2\u0379\u037a\7p\2\2\u037a"+
"\u038b\7z\2\2\u037b\u037c\7d\2\2\u037c\u037d\7g\2\2\u037d\u038b\7s\2\2"+
"\u037e\u037f\7u\2\2\u037f\u0380\7g\2\2\u0380\u038b\7f\2\2\u0381\u0382"+
"\7f\2\2\u0382\u0383\7g\2\2\u0383\u038b\7z\2\2\u0384\u0385\7k\2\2\u0385"+
"\u0386\7p\2\2\u0386\u038b\7{\2\2\u0387\u0388\7t\2\2\u0388\u0389\7q\2\2"+
"\u0389\u038b\7t\2\2\u038a\u02ac\3\2\2\2\u038a\u02af\3\2\2\2\u038a\u02b2"+
"\3\2\2\2\u038a\u02b5\3\2\2\2\u038a\u02b8\3\2\2\2\u038a\u02bb\3\2\2\2\u038a"+
"\u02be\3\2\2\2\u038a\u02c1\3\2\2\2\u038a\u02c4\3\2\2\2\u038a\u02c7\3\2"+
"\2\2\u038a\u02ca\3\2\2\2\u038a\u02cd\3\2\2\2\u038a\u02d0\3\2\2\2\u038a"+
"\u02d3\3\2\2\2\u038a\u02d6\3\2\2\2\u038a\u02d9\3\2\2\2\u038a\u02dc\3\2"+
"\2\2\u038a\u02df\3\2\2\2\u038a\u02e2\3\2\2\2\u038a\u02e5\3\2\2\2\u038a"+
"\u02e8\3\2\2\2\u038a\u02eb\3\2\2\2\u038a\u02ee\3\2\2\2\u038a\u02f1\3\2"+
"\2\2\u038a\u02f4\3\2\2\2\u038a\u02f7\3\2\2\2\u038a\u02fa\3\2\2\2\u038a"+
"\u02fd\3\2\2\2\u038a\u0300\3\2\2\2\u038a\u0303\3\2\2\2\u038a\u0306\3\2"+
"\2\2\u038a\u0309\3\2\2\2\u038a\u030c\3\2\2\2\u038a\u030f\3\2\2\2\u038a"+
"\u0312\3\2\2\2\u038a\u0315\3\2\2\2\u038a\u0318\3\2\2\2\u038a\u031b\3\2"+
"\2\2\u038a\u031e\3\2\2\2\u038a\u0321\3\2\2\2\u038a\u0324\3\2\2\2\u038a"+
"\u0327\3\2\2\2\u038a\u032a\3\2\2\2\u038a\u032d\3\2\2\2\u038a\u0330\3\2"+
"\2\2\u038a\u0333\3\2\2\2\u038a\u0336\3\2\2\2\u038a\u0339\3\2\2\2\u038a"+
"\u033c\3\2\2\2\u038a\u033f\3\2\2\2\u038a\u0342\3\2\2\2\u038a\u0345\3\2"+
"\2\2\u038a\u0348\3\2\2\2\u038a\u034b\3\2\2\2\u038a\u034e\3\2\2\2\u038a"+
"\u0351\3\2\2\2\u038a\u0354\3\2\2\2\u038a\u0357\3\2\2\2\u038a\u035a\3\2"+
"\2\2\u038a\u035d\3\2\2\2\u038a\u0360\3\2\2\2\u038a\u0363\3\2\2\2\u038a"+
"\u0366\3\2\2\2\u038a\u0369\3\2\2\2\u038a\u036c\3\2\2\2\u038a\u036f\3\2"+
"\2\2\u038a\u0372\3\2\2\2\u038a\u0375\3\2\2\2\u038a\u0378\3\2\2\2\u038a"+
"\u037b\3\2\2\2\u038a\u037e\3\2\2\2\u038a\u0381\3\2\2\2\u038a\u0384\3\2"+
"\2\2\u038a\u0387\3\2\2\2\u038b\u00c0\3\2\2\2\u038c\u038d\7}\2\2\u038d"+
"\u038e\7}\2\2\u038e\u0392\3\2\2\2\u038f\u0391\13\2\2\2\u0390\u038f\3\2"+
"\2\2\u0391\u0394\3\2\2\2\u0392\u0393\3\2\2\2\u0392\u0390\3\2\2\2\u0393"+
"\u0395\3\2\2\2\u0394\u0392\3\2\2\2\u0395\u0396\7\177\2\2\u0396\u0397\7"+
"\177\2\2\u0397\u00c2\3\2\2\2\u0398\u0399\7d\2\2\u0399\u039a\7{\2\2\u039a"+
"\u039b\7v\2\2\u039b\u03be\7g\2\2\u039c\u039d\7y\2\2\u039d\u039e\7q\2\2"+
"\u039e\u039f\7t\2\2\u039f\u03be\7f\2\2\u03a0\u03a1\7f\2\2\u03a1\u03a2"+
"\7y\2\2\u03a2\u03a3\7q\2\2\u03a3\u03a4\7t\2\2\u03a4\u03be\7f\2\2\u03a5"+
"\u03a6\7d\2\2\u03a6\u03a7\7q\2\2\u03a7\u03a8\7q\2\2\u03a8\u03be\7n\2\2"+
"\u03a9\u03aa\7e\2\2\u03aa\u03ab\7j\2\2\u03ab\u03ac\7c\2\2\u03ac\u03be"+
"\7t\2\2\u03ad\u03ae\7u\2\2\u03ae\u03af\7j\2\2\u03af\u03b0\7q\2\2\u03b0"+
"\u03b1\7t\2\2\u03b1\u03be\7v\2\2\u03b2\u03b3\7k\2\2\u03b3\u03b4\7p\2\2"+
"\u03b4\u03be\7v\2\2\u03b5\u03b6\7n\2\2\u03b6\u03b7\7q\2\2\u03b7\u03b8"+
"\7p\2\2\u03b8\u03be\7i\2\2\u03b9\u03ba\7x\2\2\u03ba\u03bb\7q\2\2\u03bb"+
"\u03bc\7k\2\2\u03bc\u03be\7f\2\2\u03bd\u0398\3\2\2\2\u03bd\u039c\3\2\2"+
"\2\u03bd\u03a0\3\2\2\2\u03bd\u03a5\3\2\2\2\u03bd\u03a9\3\2\2\2\u03bd\u03ad"+
"\3\2\2\2\u03bd\u03b2\3\2\2\2\u03bd\u03b5\3\2\2\2\u03bd\u03b9\3\2\2\2\u03be"+
"\u00c4\3\2\2\2\u03bf\u03c5\7$\2\2\u03c0\u03c1\7^\2\2\u03c1\u03c4\7$\2"+
"\2\u03c2\u03c4\n\2\2\2\u03c3\u03c0\3\2\2\2\u03c3\u03c2\3\2\2\2\u03c4\u03c7"+
"\3\2\2\2\u03c5\u03c3\3\2\2\2\u03c5\u03c6\3\2\2\2\u03c6\u03c8\3\2\2\2\u03c7"+
"\u03c5\3\2\2\2\u03c8\u03ca\7$\2\2\u03c9\u03cb\t\3\2\2\u03ca\u03c9\3\2"+
"\2\2\u03ca\u03cb\3\2\2\2\u03cb\u03d0\3\2\2\2\u03cc\u03ce\t\4\2\2\u03cd"+
"\u03cf\t\5\2\2\u03ce\u03cd\3\2\2\2\u03ce\u03cf\3\2\2\2\u03cf\u03d1\3\2"+
"\2\2\u03d0\u03cc\3\2\2\2\u03d0\u03d1\3\2\2\2\u03d1\u03d3\3\2\2\2\u03d2"+
"\u03d4\t\3\2\2\u03d3\u03d2\3\2\2\2\u03d3\u03d4\3\2\2\2\u03d4\u00c6\3\2"+
"\2\2\u03d5\u03d9\7)\2\2\u03d6\u03d7\7^\2\2\u03d7\u03da\t\6\2\2\u03d8\u03da"+
"\n\7\2\2\u03d9\u03d6\3\2\2\2\u03d9\u03d8\3\2\2\2\u03da\u03db\3\2\2\2\u03db"+
"\u03dc\7)\2\2\u03dc\u00c8\3\2\2\2\u03dd\u03de\7v\2\2\u03de\u03df\7t\2"+
"\2\u03df\u03e0\7w\2\2\u03e0\u03e7\7g\2\2\u03e1\u03e2\7h\2\2\u03e2\u03e3"+
"\7c\2\2\u03e3\u03e4\7n\2\2\u03e4\u03e5\7u\2\2\u03e5\u03e7\7g\2\2\u03e6"+
"\u03dd\3\2\2\2\u03e6\u03e1\3\2\2\2\u03e7\u00ca\3\2\2\2\u03e8\u03eb\5\u00cd"+
"g\2\u03e9\u03eb\5\u00d5k\2\u03ea\u03e8\3\2\2\2\u03ea\u03e9\3\2\2\2\u03eb"+
"\u00cc\3\2\2\2\u03ec\u03f0\5\u00cfh\2\u03ed\u03f0\5\u00d1i\2\u03ee\u03f0"+
"\5\u00d3j\2\u03ef\u03ec\3\2\2\2\u03ef\u03ed\3\2\2\2\u03ef\u03ee\3\2\2"+
"\2\u03f0\u00ce\3\2\2\2\u03f1\u03f7\7\'\2\2\u03f2\u03f3\7\62\2\2\u03f3"+
"\u03f7\7d\2\2\u03f4\u03f5\7\62\2\2\u03f5\u03f7\7D\2\2\u03f6\u03f1\3\2"+
"\2\2\u03f6\u03f2\3\2\2\2\u03f6\u03f4\3\2\2\2\u03f7\u03fb\3\2\2\2\u03f8"+
"\u03fa\5\u00ddo\2\u03f9\u03f8\3\2\2\2\u03fa\u03fd\3\2\2\2\u03fb\u03f9"+
"\3\2\2\2\u03fb\u03fc\3\2\2\2\u03fc\u03fe\3\2\2\2\u03fd\u03fb\3\2\2\2\u03fe"+
"\u0400\7\60\2\2\u03ff\u0401\5\u00ddo\2\u0400\u03ff\3\2\2\2\u0401\u0402"+
"\3\2\2\2\u0402\u0400\3\2\2\2\u0402\u0403\3\2\2\2\u0403\u00d0\3\2\2\2\u0404"+
"\u0406\5\u00dfp\2\u0405\u0404\3\2\2\2\u0406\u0409\3\2\2\2\u0407\u0405"+
"\3\2\2\2\u0407\u0408\3\2\2\2\u0408\u040a\3\2\2\2\u0409\u0407\3\2\2\2\u040a"+
"\u040c\7\60\2\2\u040b\u040d\5\u00dfp\2\u040c\u040b\3\2\2\2\u040d\u040e"+
"\3\2\2\2\u040e\u040c\3\2\2\2\u040e\u040f\3\2\2\2\u040f\u00d2\3\2\2\2\u0410"+
"\u0416\7&\2\2\u0411\u0412\7\62\2\2\u0412\u0416\7z\2\2\u0413\u0414\7\62"+
"\2\2\u0414\u0416\7Z\2\2\u0415\u0410\3\2\2\2\u0415\u0411\3\2\2\2\u0415"+
"\u0413\3\2\2\2\u0416\u041a\3\2\2\2\u0417\u0419\5\u00e1q\2\u0418\u0417"+
"\3\2\2\2\u0419\u041c\3\2\2\2\u041a\u0418\3\2\2\2\u041a\u041b\3\2\2\2\u041b"+
"\u041d\3\2\2\2\u041c\u041a\3\2\2\2\u041d\u041f\7\60\2\2\u041e\u0420\5"+
"\u00e1q\2\u041f\u041e\3\2\2\2\u0420\u0421\3\2\2\2\u0421\u041f\3\2\2\2"+
"\u0421\u0422\3\2\2\2\u0422\u00d4\3\2\2\2\u0423\u0427\5\u00d9m\2\u0424"+
"\u0427\5\u00dbn\2\u0425\u0427\5\u00d7l\2\u0426\u0423\3\2\2\2\u0426\u0424"+
"\3\2\2\2\u0426\u0425\3\2\2\2\u0427\u042b\3\2\2\2\u0428\u0429\t\b\2\2\u0429"+
"\u042c\t\t\2\2\u042a\u042c\7n\2\2\u042b\u0428\3\2\2\2\u042b\u042a\3\2"+
"\2\2\u042b\u042c\3\2\2\2\u042c\u00d6\3\2\2\2\u042d\u042e\7\62\2\2\u042e"+
"\u0430\t\n\2\2\u042f\u0431\5\u00ddo\2\u0430\u042f\3\2\2\2\u0431\u0432"+
"\3\2\2\2\u0432\u0430\3\2\2\2\u0432\u0433\3\2\2\2\u0433\u043b\3\2\2\2\u0434"+
"\u0436\7\'\2\2\u0435\u0437\5\u00ddo\2\u0436\u0435\3\2\2\2\u0437\u0438"+
"\3\2\2\2\u0438\u0436\3\2\2\2\u0438\u0439\3\2\2\2\u0439\u043b\3\2\2\2\u043a"+
"\u042d\3\2\2\2\u043a\u0434\3\2\2\2\u043b\u00d8\3\2\2\2\u043c\u043e\5\u00df"+
"p\2\u043d\u043c\3\2\2\2\u043e\u043f\3\2\2\2\u043f\u043d\3\2\2\2\u043f"+
"\u0440\3\2\2\2\u0440\u00da\3\2\2\2\u0441\u0447\7&\2\2\u0442\u0443\7\62"+
"\2\2\u0443\u0447\7z\2\2\u0444\u0445\7\62\2\2\u0445\u0447\7Z\2\2\u0446"+
"\u0441\3\2\2\2\u0446\u0442\3\2\2\2\u0446\u0444\3\2\2\2\u0447\u0449\3\2"+
"\2\2\u0448\u044a\5\u00e1q\2\u0449\u0448\3\2\2\2\u044a\u044b\3\2\2\2\u044b"+
"\u0449\3\2\2\2\u044b\u044c\3\2\2\2\u044c\u00dc\3\2\2\2\u044d\u044e\t\13"+
"\2\2\u044e\u00de\3\2\2\2\u044f\u0450\t\f\2\2\u0450\u00e0\3\2\2\2\u0451"+
"\u0452\t\r\2\2\u0452\u00e2\3\2\2\2\u0453\u0457\5\u00e5s\2\u0454\u0456"+
"\5\u00e7t\2\u0455\u0454\3\2\2\2\u0456\u0459\3\2\2\2\u0457\u0455\3\2\2"+
"\2\u0457\u0458\3\2\2\2\u0458\u00e4\3\2\2\2\u0459\u0457\3\2\2\2\u045a\u045b"+
"\t\16\2\2\u045b\u00e6\3\2\2\2\u045c\u045d\t\17\2\2\u045d\u00e8\3\2\2\2"+
"\u045e\u0462\7#\2\2\u045f\u0461\5\u00e7t\2\u0460\u045f\3\2\2\2\u0461\u0464"+
"\3\2\2\2\u0462\u0460\3\2\2\2\u0462\u0463\3\2\2\2\u0463\u0466\3\2\2\2\u0464"+
"\u0462\3\2\2\2\u0465\u0467\t\20\2\2\u0466\u0465\3\2\2\2\u0467\u0468\3"+
"\2\2\2\u0468\u0466\3\2\2\2\u0468\u0469\3\2\2\2\u0469\u00ea\3\2\2\2\u046a"+
"\u046c\t\21\2\2\u046b\u046a\3\2\2\2\u046c\u046d\3\2\2\2\u046d\u046b\3"+
"\2\2\2\u046d\u046e\3\2\2\2\u046e\u046f\3\2\2\2\u046f\u0470\bv\2\2\u0470"+
"\u00ec\3\2\2\2\u0471\u0472\7\61\2\2\u0472\u0473\7\61\2\2\u0473\u0477\3"+
"\2\2\2\u0474\u0476\n\22\2\2\u0475\u0474\3\2\2\2\u0476\u0479\3\2\2\2\u0477"+
"\u0475\3\2\2\2\u0477\u0478\3\2\2\2\u0478\u047a\3\2\2\2\u0479\u0477\3\2"+
"\2\2\u047a\u047b\bw\3\2\u047b\u00ee\3\2\2\2\u047c\u047d\7\61\2\2\u047d"+
"\u047e\7,\2\2\u047e\u0482\3\2\2\2\u047f\u0481\13\2\2\2\u0480\u047f\3\2"+
"\2\2\u0481\u0484\3\2\2\2\u0482\u0483\3\2\2\2\u0482\u0480\3\2\2\2\u0483"+
"\u0485\3\2\2\2\u0484\u0482\3\2\2\2\u0485\u0486\7,\2\2\u0486\u0487\7\61"+
"\2\2\u0487\u0488\3\2\2\2\u0488\u0489\bx\3\2\u0489\u00f0\3\2\2\2&\2\u038a"+
"\u0392\u03bd\u03c3\u03c5\u03ca\u03ce\u03d0\u03d3\u03d9\u03e6\u03ea\u03ef"+
"\u03f6\u03fb\u0402\u0407\u040e\u0415\u041a\u0421\u0426\u042b\u0432\u0438"+
"\u043a\u043f\u0446\u044b\u0457\u0462\u0468\u046d\u0477\u0482\4\2\3\2\2"+
"\4\2";
"\fu\16u\u0464\13u\3u\6u\u0467\nu\ru\16u\u0468\3u\3u\3v\6v\u046e\nv\rv"+
"\16v\u046f\3v\3v\3w\3w\3w\3w\7w\u0478\nw\fw\16w\u047b\13w\3w\3w\3x\3x"+
"\3x\3x\7x\u0483\nx\fx\16x\u0486\13x\3x\3x\3x\3x\3x\4\u0392\u0484\2y\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\66k\67m8o9"+
"q:s;u<w=y>{?}@\177A\u0081B\u0083C\u0085D\u0087E\u0089F\u008bG\u008dH\u008f"+
"I\u0091J\u0093K\u0095L\u0097M\u0099N\u009bO\u009dP\u009fQ\u00a1R\u00a3"+
"S\u00a5T\u00a7U\u00a9V\u00abW\u00adX\u00afY\u00b1Z\u00b3[\u00b5\\\u00b7"+
"]\u00b9^\u00bb_\u00bd`\u00bfa\u00c1b\u00c3c\u00c5d\u00c7e\u00c9f\u00cb"+
"g\u00cdh\u00cfi\u00d1j\u00d3k\u00d5l\u00d7m\u00d9n\u00dbo\u00dd\2\u00df"+
"\2\u00e1\2\u00e3p\u00e5\2\u00e7\2\u00e9q\u00ebr\u00eds\u00eft\3\2\23\3"+
"\2$$\3\2||\4\2rruu\4\2ooww\7\2$$))hhpptt\3\2))\4\2uuww\7\2dfkknnuuyy\4"+
"\2DDdd\3\2\62\63\3\2\62;\5\2\62;CHch\5\2C\\aac|\6\2\62;C\\aac|\4\2--/"+
"/\6\2\13\f\17\17\"\"\u00a2\u00a2\4\2\f\f\17\17\2\u04fe\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\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\177\3\2\2\2\2\u0081\3\2\2\2\2\u0083\3\2\2\2\2\u0085\3\2\2\2\2\u0087"+
"\3\2\2\2\2\u0089\3\2\2\2\2\u008b\3\2\2\2\2\u008d\3\2\2\2\2\u008f\3\2\2"+
"\2\2\u0091\3\2\2\2\2\u0093\3\2\2\2\2\u0095\3\2\2\2\2\u0097\3\2\2\2\2\u0099"+
"\3\2\2\2\2\u009b\3\2\2\2\2\u009d\3\2\2\2\2\u009f\3\2\2\2\2\u00a1\3\2\2"+
"\2\2\u00a3\3\2\2\2\2\u00a5\3\2\2\2\2\u00a7\3\2\2\2\2\u00a9\3\2\2\2\2\u00ab"+
"\3\2\2\2\2\u00ad\3\2\2\2\2\u00af\3\2\2\2\2\u00b1\3\2\2\2\2\u00b3\3\2\2"+
"\2\2\u00b5\3\2\2\2\2\u00b7\3\2\2\2\2\u00b9\3\2\2\2\2\u00bb\3\2\2\2\2\u00bd"+
"\3\2\2\2\2\u00bf\3\2\2\2\2\u00c1\3\2\2\2\2\u00c3\3\2\2\2\2\u00c5\3\2\2"+
"\2\2\u00c7\3\2\2\2\2\u00c9\3\2\2\2\2\u00cb\3\2\2\2\2\u00cd\3\2\2\2\2\u00cf"+
"\3\2\2\2\2\u00d1\3\2\2\2\2\u00d3\3\2\2\2\2\u00d5\3\2\2\2\2\u00d7\3\2\2"+
"\2\2\u00d9\3\2\2\2\2\u00db\3\2\2\2\2\u00e3\3\2\2\2\2\u00e9\3\2\2\2\2\u00eb"+
"\3\2\2\2\2\u00ed\3\2\2\2\2\u00ef\3\2\2\2\3\u00f1\3\2\2\2\5\u00f8\3\2\2"+
"\2\7\u00fa\3\2\2\2\t\u0102\3\2\2\2\13\u0104\3\2\2\2\r\u0106\3\2\2\2\17"+
"\u0108\3\2\2\2\21\u010a\3\2\2\2\23\u010c\3\2\2\2\25\u010e\3\2\2\2\27\u0116"+
"\3\2\2\2\31\u011e\3\2\2\2\33\u0127\3\2\2\2\35\u012a\3\2\2\2\37\u012e\3"+
"\2\2\2!\u0135\3\2\2\2#\u013d\3\2\2\2%\u0142\3\2\2\2\'\u014b\3\2\2\2)\u0154"+
"\3\2\2\2+\u015d\3\2\2\2-\u0167\3\2\2\2/\u016d\3\2\2\2\61\u0174\3\2\2\2"+
"\63\u017b\3\2\2\2\65\u0181\3\2\2\2\67\u018a\3\2\2\29\u0191\3\2\2\2;\u019a"+
"\3\2\2\2=\u01a4\3\2\2\2?\u01a7\3\2\2\2A\u01ac\3\2\2\2C\u01b2\3\2\2\2E"+
"\u01b5\3\2\2\2G\u01b9\3\2\2\2I\u01c0\3\2\2\2K\u01c7\3\2\2\2M\u01cd\3\2"+
"\2\2O\u01d6\3\2\2\2Q\u01da\3\2\2\2S\u01e3\3\2\2\2U\u01e8\3\2\2\2W\u01ea"+
"\3\2\2\2Y\u01ed\3\2\2\2[\u01f4\3\2\2\2]\u01fd\3\2\2\2_\u01ff\3\2\2\2a"+
"\u0201\3\2\2\2c\u0203\3\2\2\2e\u020a\3\2\2\2g\u020f\3\2\2\2i\u0211\3\2"+
"\2\2k\u0214\3\2\2\2m\u021b\3\2\2\2o\u0222\3\2\2\2q\u0225\3\2\2\2s\u0228"+
"\3\2\2\2u\u022a\3\2\2\2w\u022c\3\2\2\2y\u022e\3\2\2\2{\u0230\3\2\2\2}"+
"\u0232\3\2\2\2\177\u0235\3\2\2\2\u0081\u0238\3\2\2\2\u0083\u023a\3\2\2"+
"\2\u0085\u023c\3\2\2\2\u0087\u023e\3\2\2\2\u0089\u0240\3\2\2\2\u008b\u0243"+
"\3\2\2\2\u008d\u0246\3\2\2\2\u008f\u0249\3\2\2\2\u0091\u024c\3\2\2\2\u0093"+
"\u024e\3\2\2\2\u0095\u0250\3\2\2\2\u0097\u0253\3\2\2\2\u0099\u0256\3\2"+
"\2\2\u009b\u0258\3\2\2\2\u009d\u025b\3\2\2\2\u009f\u025e\3\2\2\2\u00a1"+
"\u0261\3\2\2\2\u00a3\u0264\3\2\2\2\u00a5\u0267\3\2\2\2\u00a7\u026b\3\2"+
"\2\2\u00a9\u026f\3\2\2\2\u00ab\u0272\3\2\2\2\u00ad\u0275\3\2\2\2\u00af"+
"\u0278\3\2\2\2\u00b1\u0280\3\2\2\2\u00b3\u0289\3\2\2\2\u00b5\u028e\3\2"+
"\2\2\u00b7\u0297\3\2\2\2\u00b9\u029d\3\2\2\2\u00bb\u02a4\3\2\2\2\u00bd"+
"\u02aa\3\2\2\2\u00bf\u038a\3\2\2\2\u00c1\u038c\3\2\2\2\u00c3\u03bd\3\2"+
"\2\2\u00c5\u03bf\3\2\2\2\u00c7\u03d5\3\2\2\2\u00c9\u03e6\3\2\2\2\u00cb"+
"\u03ea\3\2\2\2\u00cd\u03ef\3\2\2\2\u00cf\u03f6\3\2\2\2\u00d1\u0407\3\2"+
"\2\2\u00d3\u0415\3\2\2\2\u00d5\u0426\3\2\2\2\u00d7\u043a\3\2\2\2\u00d9"+
"\u043d\3\2\2\2\u00db\u0446\3\2\2\2\u00dd\u044d\3\2\2\2\u00df\u044f\3\2"+
"\2\2\u00e1\u0451\3\2\2\2\u00e3\u0453\3\2\2\2\u00e5\u045a\3\2\2\2\u00e7"+
"\u045c\3\2\2\2\u00e9\u045e\3\2\2\2\u00eb\u046d\3\2\2\2\u00ed\u0473\3\2"+
"\2\2\u00ef\u047e\3\2\2\2\u00f1\u00f2\7k\2\2\u00f2\u00f3\7o\2\2\u00f3\u00f4"+
"\7r\2\2\u00f4\u00f5\7q\2\2\u00f5\u00f6\7t\2\2\u00f6\u00f7\7v\2\2\u00f7"+
"\4\3\2\2\2\u00f8\u00f9\7=\2\2\u00f9\6\3\2\2\2\u00fa\u00fb\7v\2\2\u00fb"+
"\u00fc\7{\2\2\u00fc\u00fd\7r\2\2\u00fd\u00fe\7g\2\2\u00fe\u00ff\7f\2\2"+
"\u00ff\u0100\7g\2\2\u0100\u0101\7h\2\2\u0101\b\3\2\2\2\u0102\u0103\7."+
"\2\2\u0103\n\3\2\2\2\u0104\u0105\7?\2\2\u0105\f\3\2\2\2\u0106\u0107\7"+
"*\2\2\u0107\16\3\2\2\2\u0108\u0109\7+\2\2\u0109\20\3\2\2\2\u010a\u010b"+
"\7}\2\2\u010b\22\3\2\2\2\u010c\u010d\7\177\2\2\u010d\24\3\2\2\2\u010e"+
"\u010f\7%\2\2\u010f\u0110\7r\2\2\u0110\u0111\7t\2\2\u0111\u0112\7c\2\2"+
"\u0112\u0113\7i\2\2\u0113\u0114\7o\2\2\u0114\u0115\7c\2\2\u0115\26\3\2"+
"\2\2\u0116\u0117\7t\2\2\u0117\u0118\7g\2\2\u0118\u0119\7u\2\2\u0119\u011a"+
"\7g\2\2\u011a\u011b\7t\2\2\u011b\u011c\7x\2\2\u011c\u011d\7g\2\2\u011d"+
"\30\3\2\2\2\u011e\u011f\7%\2\2\u011f\u0120\7t\2\2\u0120\u0121\7g\2\2\u0121"+
"\u0122\7u\2\2\u0122\u0123\7g\2\2\u0123\u0124\7t\2\2\u0124\u0125\7x\2\2"+
"\u0125\u0126\7g\2\2\u0126\32\3\2\2\2\u0127\u0128\7r\2\2\u0128\u0129\7"+
"e\2\2\u0129\34\3\2\2\2\u012a\u012b\7%\2\2\u012b\u012c\7r\2\2\u012c\u012d"+
"\7e\2\2\u012d\36\3\2\2\2\u012e\u012f\7v\2\2\u012f\u0130\7c\2\2\u0130\u0131"+
"\7t\2\2\u0131\u0132\7i\2\2\u0132\u0133\7g\2\2\u0133\u0134\7v\2\2\u0134"+
" \3\2\2\2\u0135\u0136\7%\2\2\u0136\u0137\7v\2\2\u0137\u0138\7c\2\2\u0138"+
"\u0139\7t\2\2\u0139\u013a\7i\2\2\u013a\u013b\7g\2\2\u013b\u013c\7v\2\2"+
"\u013c\"\3\2\2\2\u013d\u013e\7n\2\2\u013e\u013f\7k\2\2\u013f\u0140\7p"+
"\2\2\u0140\u0141\7m\2\2\u0141$\3\2\2\2\u0142\u0143\7e\2\2\u0143\u0144"+
"\7q\2\2\u0144\u0145\7f\2\2\u0145\u0146\7g\2\2\u0146\u0147\7a\2\2\u0147"+
"\u0148\7u\2\2\u0148\u0149\7g\2\2\u0149\u014a\7i\2\2\u014a&\3\2\2\2\u014b"+
"\u014c\7f\2\2\u014c\u014d\7c\2\2\u014d\u014e\7v\2\2\u014e\u014f\7c\2\2"+
"\u014f\u0150\7a\2\2\u0150\u0151\7u\2\2\u0151\u0152\7g\2\2\u0152\u0153"+
"\7i\2\2\u0153(\3\2\2\2\u0154\u0155\7g\2\2\u0155\u0156\7p\2\2\u0156\u0157"+
"\7e\2\2\u0157\u0158\7q\2\2\u0158\u0159\7f\2\2\u0159\u015a\7k\2\2\u015a"+
"\u015b\7p\2\2\u015b\u015c\7i\2\2\u015c*\3\2\2\2\u015d\u015e\7%\2\2\u015e"+
"\u015f\7g\2\2\u015f\u0160\7p\2\2\u0160\u0161\7e\2\2\u0161\u0162\7q\2\2"+
"\u0162\u0163\7f\2\2\u0163\u0164\7k\2\2\u0164\u0165\7p\2\2\u0165\u0166"+
"\7i\2\2\u0166,\3\2\2\2\u0167\u0168\7e\2\2\u0168\u0169\7q\2\2\u0169\u016a"+
"\7p\2\2\u016a\u016b\7u\2\2\u016b\u016c\7v\2\2\u016c.\3\2\2\2\u016d\u016e"+
"\7g\2\2\u016e\u016f\7z\2\2\u016f\u0170\7v\2\2\u0170\u0171\7g\2\2\u0171"+
"\u0172\7t\2\2\u0172\u0173\7p\2\2\u0173\60\3\2\2\2\u0174\u0175\7g\2\2\u0175"+
"\u0176\7z\2\2\u0176\u0177\7r\2\2\u0177\u0178\7q\2\2\u0178\u0179\7t\2\2"+
"\u0179\u017a\7v\2\2\u017a\62\3\2\2\2\u017b\u017c\7c\2\2\u017c\u017d\7"+
"n\2\2\u017d\u017e\7k\2\2\u017e\u017f\7i\2\2\u017f\u0180\7p\2\2\u0180\64"+
"\3\2\2\2\u0181\u0182\7t\2\2\u0182\u0183\7g\2\2\u0183\u0184\7i\2\2\u0184"+
"\u0185\7k\2\2\u0185\u0186\7u\2\2\u0186\u0187\7v\2\2\u0187\u0188\7g\2\2"+
"\u0188\u0189\7t\2\2\u0189\66\3\2\2\2\u018a\u018b\7k\2\2\u018b\u018c\7"+
"p\2\2\u018c\u018d\7n\2\2\u018d\u018e\7k\2\2\u018e\u018f\7p\2\2\u018f\u0190"+
"\7g\2\2\u01908\3\2\2\2\u0191\u0192\7x\2\2\u0192\u0193\7q\2\2\u0193\u0194"+
"\7n\2\2\u0194\u0195\7c\2\2\u0195\u0196\7v\2\2\u0196\u0197\7k\2\2\u0197"+
"\u0198\7n\2\2\u0198\u0199\7g\2\2\u0199:\3\2\2\2\u019a\u019b\7k\2\2\u019b"+
"\u019c\7p\2\2\u019c\u019d\7v\2\2\u019d\u019e\7g\2\2\u019e\u019f\7t\2\2"+
"\u019f\u01a0\7t\2\2\u01a0\u01a1\7w\2\2\u01a1\u01a2\7r\2\2\u01a2\u01a3"+
"\7v\2\2\u01a3<\3\2\2\2\u01a4\u01a5\7k\2\2\u01a5\u01a6\7h\2\2\u01a6>\3"+
"\2\2\2\u01a7\u01a8\7g\2\2\u01a8\u01a9\7n\2\2\u01a9\u01aa\7u\2\2\u01aa"+
"\u01ab\7g\2\2\u01ab@\3\2\2\2\u01ac\u01ad\7y\2\2\u01ad\u01ae\7j\2\2\u01ae"+
"\u01af\7k\2\2\u01af\u01b0\7n\2\2\u01b0\u01b1\7g\2\2\u01b1B\3\2\2\2\u01b2"+
"\u01b3\7f\2\2\u01b3\u01b4\7q\2\2\u01b4D\3\2\2\2\u01b5\u01b6\7h\2\2\u01b6"+
"\u01b7\7q\2\2\u01b7\u01b8\7t\2\2\u01b8F\3\2\2\2\u01b9\u01ba\7u\2\2\u01ba"+
"\u01bb\7y\2\2\u01bb\u01bc\7k\2\2\u01bc\u01bd\7v\2\2\u01bd\u01be\7e\2\2"+
"\u01be\u01bf\7j\2\2\u01bfH\3\2\2\2\u01c0\u01c1\7t\2\2\u01c1\u01c2\7g\2"+
"\2\u01c2\u01c3\7v\2\2\u01c3\u01c4\7w\2\2\u01c4\u01c5\7t\2\2\u01c5\u01c6"+
"\7p\2\2\u01c6J\3\2\2\2\u01c7\u01c8\7d\2\2\u01c8\u01c9\7t\2\2\u01c9\u01ca"+
"\7g\2\2\u01ca\u01cb\7c\2\2\u01cb\u01cc\7m\2\2\u01ccL\3\2\2\2\u01cd\u01ce"+
"\7e\2\2\u01ce\u01cf\7q\2\2\u01cf\u01d0\7p\2\2\u01d0\u01d1\7v\2\2\u01d1"+
"\u01d2\7k\2\2\u01d2\u01d3\7p\2\2\u01d3\u01d4\7w\2\2\u01d4\u01d5\7g\2\2"+
"\u01d5N\3\2\2\2\u01d6\u01d7\7c\2\2\u01d7\u01d8\7u\2\2\u01d8\u01d9\7o\2"+
"\2\u01d9P\3\2\2\2\u01da\u01db\7f\2\2\u01db\u01dc\7g\2\2\u01dc\u01dd\7"+
"h\2\2\u01dd\u01de\7c\2\2\u01de\u01df\7w\2\2\u01df\u01e0\7n\2\2\u01e0\u01e1"+
"\7v\2\2\u01e1\u01e2\7<\2\2\u01e2R\3\2\2\2\u01e3\u01e4\7e\2\2\u01e4\u01e5"+
"\7c\2\2\u01e5\u01e6\7u\2\2\u01e6\u01e7\7g\2\2\u01e7T\3\2\2\2\u01e8\u01e9"+
"\7<\2\2\u01e9V\3\2\2\2\u01ea\u01eb\7\60\2\2\u01eb\u01ec\7\60\2\2\u01ec"+
"X\3\2\2\2\u01ed\u01ee\7u\2\2\u01ee\u01ef\7k\2\2\u01ef\u01f0\7i\2\2\u01f0"+
"\u01f1\7p\2\2\u01f1\u01f2\7g\2\2\u01f2\u01f3\7f\2\2\u01f3Z\3\2\2\2\u01f4"+
"\u01f5\7w\2\2\u01f5\u01f6\7p\2\2\u01f6\u01f7\7u\2\2\u01f7\u01f8\7k\2\2"+
"\u01f8\u01f9\7i\2\2\u01f9\u01fa\7p\2\2\u01fa\u01fb\7g\2\2\u01fb\u01fc"+
"\7f\2\2\u01fc\\\3\2\2\2\u01fd\u01fe\7,\2\2\u01fe^\3\2\2\2\u01ff\u0200"+
"\7]\2\2\u0200`\3\2\2\2\u0201\u0202\7_\2\2\u0202b\3\2\2\2\u0203\u0204\7"+
"u\2\2\u0204\u0205\7v\2\2\u0205\u0206\7t\2\2\u0206\u0207\7w\2\2\u0207\u0208"+
"\7e\2\2\u0208\u0209\7v\2\2\u0209d\3\2\2\2\u020a\u020b\7g\2\2\u020b\u020c"+
"\7p\2\2\u020c\u020d\7w\2\2\u020d\u020e\7o\2\2\u020ef\3\2\2\2\u020f\u0210"+
"\7\60\2\2\u0210h\3\2\2\2\u0211\u0212\7/\2\2\u0212\u0213\7@\2\2\u0213j"+
"\3\2\2\2\u0214\u0215\7u\2\2\u0215\u0216\7k\2\2\u0216\u0217\7|\2\2\u0217"+
"\u0218\7g\2\2\u0218\u0219\7q\2\2\u0219\u021a\7h\2\2\u021al\3\2\2\2\u021b"+
"\u021c\7v\2\2\u021c\u021d\7{\2\2\u021d\u021e\7r\2\2\u021e\u021f\7g\2\2"+
"\u021f\u0220\7k\2\2\u0220\u0221\7f\2\2\u0221n\3\2\2\2\u0222\u0223\7/\2"+
"\2\u0223\u0224\7/\2\2\u0224p\3\2\2\2\u0225\u0226\7-\2\2\u0226\u0227\7"+
"-\2\2\u0227r\3\2\2\2\u0228\u0229\7-\2\2\u0229t\3\2\2\2\u022a\u022b\7/"+
"\2\2\u022bv\3\2\2\2\u022c\u022d\7#\2\2\u022dx\3\2\2\2\u022e\u022f\7(\2"+
"\2\u022fz\3\2\2\2\u0230\u0231\7\u0080\2\2\u0231|\3\2\2\2\u0232\u0233\7"+
"@\2\2\u0233\u0234\7@\2\2\u0234~\3\2\2\2\u0235\u0236\7>\2\2\u0236\u0237"+
"\7>\2\2\u0237\u0080\3\2\2\2\u0238\u0239\7\61\2\2\u0239\u0082\3\2\2\2\u023a"+
"\u023b\7\'\2\2\u023b\u0084\3\2\2\2\u023c\u023d\7>\2\2\u023d\u0086\3\2"+
"\2\2\u023e\u023f\7@\2\2\u023f\u0088\3\2\2\2\u0240\u0241\7?\2\2\u0241\u0242"+
"\7?\2\2\u0242\u008a\3\2\2\2\u0243\u0244\7#\2\2\u0244\u0245\7?\2\2\u0245"+
"\u008c\3\2\2\2\u0246\u0247\7>\2\2\u0247\u0248\7?\2\2\u0248\u008e\3\2\2"+
"\2\u0249\u024a\7@\2\2\u024a\u024b\7?\2\2\u024b\u0090\3\2\2\2\u024c\u024d"+
"\7`\2\2\u024d\u0092\3\2\2\2\u024e\u024f\7~\2\2\u024f\u0094\3\2\2\2\u0250"+
"\u0251\7(\2\2\u0251\u0252\7(\2\2\u0252\u0096\3\2\2\2\u0253\u0254\7~\2"+
"\2\u0254\u0255\7~\2\2\u0255\u0098\3\2\2\2\u0256\u0257\7A\2\2\u0257\u009a"+
"\3\2\2\2\u0258\u0259\7-\2\2\u0259\u025a\7?\2\2\u025a\u009c\3\2\2\2\u025b"+
"\u025c\7/\2\2\u025c\u025d\7?\2\2\u025d\u009e\3\2\2\2\u025e\u025f\7,\2"+
"\2\u025f\u0260\7?\2\2\u0260\u00a0\3\2\2\2\u0261\u0262\7\61\2\2\u0262\u0263"+
"\7?\2\2\u0263\u00a2\3\2\2\2\u0264\u0265\7\'\2\2\u0265\u0266\7?\2\2\u0266"+
"\u00a4\3\2\2\2\u0267\u0268\7>\2\2\u0268\u0269\7>\2\2\u0269\u026a\7?\2"+
"\2\u026a\u00a6\3\2\2\2\u026b\u026c\7@\2\2\u026c\u026d\7@\2\2\u026d\u026e"+
"\7?\2\2\u026e\u00a8\3\2\2\2\u026f\u0270\7(\2\2\u0270\u0271\7?\2\2\u0271"+
"\u00aa\3\2\2\2\u0272\u0273\7~\2\2\u0273\u0274\7?\2\2\u0274\u00ac\3\2\2"+
"\2\u0275\u0276\7`\2\2\u0276\u0277\7?\2\2\u0277\u00ae\3\2\2\2\u0278\u0279"+
"\7m\2\2\u0279\u027a\7k\2\2\u027a\u027b\7e\2\2\u027b\u027c\7m\2\2\u027c"+
"\u027d\7c\2\2\u027d\u027e\7u\2\2\u027e\u027f\7o\2\2\u027f\u00b0\3\2\2"+
"\2\u0280\u0281\7t\2\2\u0281\u0282\7g\2\2\u0282\u0283\7u\2\2\u0283\u0284"+
"\7q\2\2\u0284\u0285\7w\2\2\u0285\u0286\7t\2\2\u0286\u0287\7e\2\2\u0287"+
"\u0288\7g\2\2\u0288\u00b2\3\2\2\2\u0289\u028a\7w\2\2\u028a\u028b\7u\2"+
"\2\u028b\u028c\7g\2\2\u028c\u028d\7u\2\2\u028d\u00b4\3\2\2\2\u028e\u028f"+
"\7e\2\2\u028f\u0290\7n\2\2\u0290\u0291\7q\2\2\u0291\u0292\7d\2\2\u0292"+
"\u0293\7d\2\2\u0293\u0294\7g\2\2\u0294\u0295\7t\2\2\u0295\u0296\7u\2\2"+
"\u0296\u00b6\3\2\2\2\u0297\u0298\7d\2\2\u0298\u0299\7{\2\2\u0299\u029a"+
"\7v\2\2\u029a\u029b\7g\2\2\u029b\u029c\7u\2\2\u029c\u00b8\3\2\2\2\u029d"+
"\u029e\7e\2\2\u029e\u029f\7{\2\2\u029f\u02a0\7e\2\2\u02a0\u02a1\7n\2\2"+
"\u02a1\u02a2\7g\2\2\u02a2\u02a3\7u\2\2\u02a3\u00ba\3\2\2\2\u02a4\u02a5"+
"\7\60\2\2\u02a5\u02a6\7d\2\2\u02a6\u02a7\7{\2\2\u02a7\u02a8\7v\2\2\u02a8"+
"\u02a9\7g\2\2\u02a9\u00bc\3\2\2\2\u02aa\u02ab\7%\2\2\u02ab\u00be\3\2\2"+
"\2\u02ac\u02ad\7d\2\2\u02ad\u02ae\7t\2\2\u02ae\u038b\7m\2\2\u02af\u02b0"+
"\7q\2\2\u02b0\u02b1\7t\2\2\u02b1\u038b\7c\2\2\u02b2\u02b3\7m\2\2\u02b3"+
"\u02b4\7k\2\2\u02b4\u038b\7n\2\2\u02b5\u02b6\7u\2\2\u02b6\u02b7\7n\2\2"+
"\u02b7\u038b\7q\2\2\u02b8\u02b9\7p\2\2\u02b9\u02ba\7q\2\2\u02ba\u038b"+
"\7r\2\2\u02bb\u02bc\7c\2\2\u02bc\u02bd\7u\2\2\u02bd\u038b\7n\2\2\u02be"+
"\u02bf\7r\2\2\u02bf\u02c0\7j\2\2\u02c0\u038b\7r\2\2\u02c1\u02c2\7c\2\2"+
"\u02c2\u02c3\7p\2\2\u02c3\u038b\7e\2\2\u02c4\u02c5\7d\2\2\u02c5\u02c6"+
"\7r\2\2\u02c6\u038b\7n\2\2\u02c7\u02c8\7e\2\2\u02c8\u02c9\7n\2\2\u02c9"+
"\u038b\7e\2\2\u02ca\u02cb\7l\2\2\u02cb\u02cc\7u\2\2\u02cc\u038b\7t\2\2"+
"\u02cd\u02ce\7c\2\2\u02ce\u02cf\7p\2\2\u02cf\u038b\7f\2\2\u02d0\u02d1"+
"\7t\2\2\u02d1\u02d2\7n\2\2\u02d2\u038b\7c\2\2\u02d3\u02d4\7d\2\2\u02d4"+
"\u02d5\7k\2\2\u02d5\u038b\7v\2\2\u02d6\u02d7\7t\2\2\u02d7\u02d8\7q\2\2"+
"\u02d8\u038b\7n\2\2\u02d9\u02da\7r\2\2\u02da\u02db\7n\2\2\u02db\u038b"+
"\7c\2\2\u02dc\u02dd\7r\2\2\u02dd\u02de\7n\2\2\u02de\u038b\7r\2\2\u02df"+
"\u02e0\7d\2\2\u02e0\u02e1\7o\2\2\u02e1\u038b\7k\2\2\u02e2\u02e3\7u\2\2"+
"\u02e3\u02e4\7g\2\2\u02e4\u038b\7e\2\2\u02e5\u02e6\7t\2\2\u02e6\u02e7"+
"\7v\2\2\u02e7\u038b\7k\2\2\u02e8\u02e9\7g\2\2\u02e9\u02ea\7q\2\2\u02ea"+
"\u038b\7t\2\2\u02eb\u02ec\7u\2\2\u02ec\u02ed\7t\2\2\u02ed\u038b\7g\2\2"+
"\u02ee\u02ef\7n\2\2\u02ef\u02f0\7u\2\2\u02f0\u038b\7t\2\2\u02f1\u02f2"+
"\7r\2\2\u02f2\u02f3\7j\2\2\u02f3\u038b\7c\2\2\u02f4\u02f5\7c\2\2\u02f5"+
"\u02f6\7n\2\2\u02f6\u038b\7t\2\2\u02f7\u02f8\7l\2\2\u02f8\u02f9\7o\2\2"+
"\u02f9\u038b\7r\2\2\u02fa\u02fb\7d\2\2\u02fb\u02fc\7x\2\2\u02fc\u038b"+
"\7e\2\2\u02fd\u02fe\7e\2\2\u02fe\u02ff\7n\2\2\u02ff\u038b\7k\2\2\u0300"+
"\u0301\7t\2\2\u0301\u0302\7v\2\2\u0302\u038b\7u\2\2\u0303\u0304\7c\2\2"+
"\u0304\u0305\7f\2\2\u0305\u038b\7e\2\2\u0306\u0307\7t\2\2\u0307\u0308"+
"\7t\2\2\u0308\u038b\7c\2\2\u0309\u030a\7d\2\2\u030a\u030b\7x\2\2\u030b"+
"\u038b\7u\2\2\u030c\u030d\7u\2\2\u030d\u030e\7g\2\2\u030e\u038b\7k\2\2"+
"\u030f\u0310\7u\2\2\u0310\u0311\7c\2\2\u0311\u038b\7z\2\2\u0312\u0313"+
"\7u\2\2\u0313\u0314\7v\2\2\u0314\u038b\7{\2\2\u0315\u0316\7u\2\2\u0316"+
"\u0317\7v\2\2\u0317\u038b\7c\2\2\u0318\u0319\7u\2\2\u0319\u031a\7v\2\2"+
"\u031a\u038b\7z\2\2\u031b\u031c\7f\2\2\u031c\u031d\7g\2\2\u031d\u038b"+
"\7{\2\2\u031e\u031f\7v\2\2\u031f\u0320\7z\2\2\u0320\u038b\7c\2\2\u0321"+
"\u0322\7z\2\2\u0322\u0323\7c\2\2\u0323\u038b\7c\2\2\u0324\u0325\7d\2\2"+
"\u0325\u0326\7e\2\2\u0326\u038b\7e\2\2\u0327\u0328\7c\2\2\u0328\u0329"+
"\7j\2\2\u0329\u038b\7z\2\2\u032a\u032b\7v\2\2\u032b\u032c\7{\2\2\u032c"+
"\u038b\7c\2\2\u032d\u032e\7v\2\2\u032e\u032f\7z\2\2\u032f\u038b\7u\2\2"+
"\u0330\u0331\7v\2\2\u0331\u0332\7c\2\2\u0332\u038b\7u\2\2\u0333\u0334"+
"\7u\2\2\u0334\u0335\7j\2\2\u0335\u038b\7{\2\2\u0336\u0337\7u\2\2\u0337"+
"\u0338\7j\2\2\u0338\u038b\7z\2\2\u0339\u033a\7n\2\2\u033a\u033b\7f\2\2"+
"\u033b\u038b\7{\2\2\u033c\u033d\7n\2\2\u033d\u033e\7f\2\2\u033e\u038b"+
"\7c\2\2\u033f\u0340\7n\2\2\u0340\u0341\7f\2\2\u0341\u038b\7z\2\2\u0342"+
"\u0343\7n\2\2\u0343\u0344\7c\2\2\u0344\u038b\7z\2\2\u0345\u0346\7v\2\2"+
"\u0346\u0347\7c\2\2\u0347\u038b\7{\2\2\u0348\u0349\7v\2\2\u0349\u034a"+
"\7c\2\2\u034a\u038b\7z\2\2\u034b\u034c\7d\2\2\u034c\u034d\7e\2\2\u034d"+
"\u038b\7u\2\2\u034e\u034f\7e\2\2\u034f\u0350\7n\2\2\u0350\u038b\7x\2\2"+
"\u0351\u0352\7v\2\2\u0352\u0353\7u\2\2\u0353\u038b\7z\2\2\u0354\u0355"+
"\7n\2\2\u0355\u0356\7c\2\2\u0356\u038b\7u\2\2\u0357\u0358\7e\2\2\u0358"+
"\u0359\7r\2\2\u0359\u038b\7{\2\2\u035a\u035b\7e\2\2\u035b\u035c\7o\2\2"+
"\u035c\u038b\7r\2\2\u035d\u035e\7e\2\2\u035e\u035f\7r\2\2\u035f\u038b"+
"\7z\2\2\u0360\u0361\7f\2\2\u0361\u0362\7e\2\2\u0362\u038b\7r\2\2\u0363"+
"\u0364\7f\2\2\u0364\u0365\7g\2\2\u0365\u038b\7e\2\2\u0366\u0367\7k\2\2"+
"\u0367\u0368\7p\2\2\u0368\u038b\7e\2\2\u0369\u036a\7c\2\2\u036a\u036b"+
"\7z\2\2\u036b\u038b\7u\2\2\u036c\u036d\7d\2\2\u036d\u036e\7p\2\2\u036e"+
"\u038b\7g\2\2\u036f\u0370\7e\2\2\u0370\u0371\7n\2\2\u0371\u038b\7f\2\2"+
"\u0372\u0373\7u\2\2\u0373\u0374\7d\2\2\u0374\u038b\7e\2\2\u0375\u0376"+
"\7k\2\2\u0376\u0377\7u\2\2\u0377\u038b\7e\2\2\u0378\u0379\7k\2\2\u0379"+
"\u037a\7p\2\2\u037a\u038b\7z\2\2\u037b\u037c\7d\2\2\u037c\u037d\7g\2\2"+
"\u037d\u038b\7s\2\2\u037e\u037f\7u\2\2\u037f\u0380\7g\2\2\u0380\u038b"+
"\7f\2\2\u0381\u0382\7f\2\2\u0382\u0383\7g\2\2\u0383\u038b\7z\2\2\u0384"+
"\u0385\7k\2\2\u0385\u0386\7p\2\2\u0386\u038b\7{\2\2\u0387\u0388\7t\2\2"+
"\u0388\u0389\7q\2\2\u0389\u038b\7t\2\2\u038a\u02ac\3\2\2\2\u038a\u02af"+
"\3\2\2\2\u038a\u02b2\3\2\2\2\u038a\u02b5\3\2\2\2\u038a\u02b8\3\2\2\2\u038a"+
"\u02bb\3\2\2\2\u038a\u02be\3\2\2\2\u038a\u02c1\3\2\2\2\u038a\u02c4\3\2"+
"\2\2\u038a\u02c7\3\2\2\2\u038a\u02ca\3\2\2\2\u038a\u02cd\3\2\2\2\u038a"+
"\u02d0\3\2\2\2\u038a\u02d3\3\2\2\2\u038a\u02d6\3\2\2\2\u038a\u02d9\3\2"+
"\2\2\u038a\u02dc\3\2\2\2\u038a\u02df\3\2\2\2\u038a\u02e2\3\2\2\2\u038a"+
"\u02e5\3\2\2\2\u038a\u02e8\3\2\2\2\u038a\u02eb\3\2\2\2\u038a\u02ee\3\2"+
"\2\2\u038a\u02f1\3\2\2\2\u038a\u02f4\3\2\2\2\u038a\u02f7\3\2\2\2\u038a"+
"\u02fa\3\2\2\2\u038a\u02fd\3\2\2\2\u038a\u0300\3\2\2\2\u038a\u0303\3\2"+
"\2\2\u038a\u0306\3\2\2\2\u038a\u0309\3\2\2\2\u038a\u030c\3\2\2\2\u038a"+
"\u030f\3\2\2\2\u038a\u0312\3\2\2\2\u038a\u0315\3\2\2\2\u038a\u0318\3\2"+
"\2\2\u038a\u031b\3\2\2\2\u038a\u031e\3\2\2\2\u038a\u0321\3\2\2\2\u038a"+
"\u0324\3\2\2\2\u038a\u0327\3\2\2\2\u038a\u032a\3\2\2\2\u038a\u032d\3\2"+
"\2\2\u038a\u0330\3\2\2\2\u038a\u0333\3\2\2\2\u038a\u0336\3\2\2\2\u038a"+
"\u0339\3\2\2\2\u038a\u033c\3\2\2\2\u038a\u033f\3\2\2\2\u038a\u0342\3\2"+
"\2\2\u038a\u0345\3\2\2\2\u038a\u0348\3\2\2\2\u038a\u034b\3\2\2\2\u038a"+
"\u034e\3\2\2\2\u038a\u0351\3\2\2\2\u038a\u0354\3\2\2\2\u038a\u0357\3\2"+
"\2\2\u038a\u035a\3\2\2\2\u038a\u035d\3\2\2\2\u038a\u0360\3\2\2\2\u038a"+
"\u0363\3\2\2\2\u038a\u0366\3\2\2\2\u038a\u0369\3\2\2\2\u038a\u036c\3\2"+
"\2\2\u038a\u036f\3\2\2\2\u038a\u0372\3\2\2\2\u038a\u0375\3\2\2\2\u038a"+
"\u0378\3\2\2\2\u038a\u037b\3\2\2\2\u038a\u037e\3\2\2\2\u038a\u0381\3\2"+
"\2\2\u038a\u0384\3\2\2\2\u038a\u0387\3\2\2\2\u038b\u00c0\3\2\2\2\u038c"+
"\u038d\7}\2\2\u038d\u038e\7}\2\2\u038e\u0392\3\2\2\2\u038f\u0391\13\2"+
"\2\2\u0390\u038f\3\2\2\2\u0391\u0394\3\2\2\2\u0392\u0393\3\2\2\2\u0392"+
"\u0390\3\2\2\2\u0393\u0395\3\2\2\2\u0394\u0392\3\2\2\2\u0395\u0396\7\177"+
"\2\2\u0396\u0397\7\177\2\2\u0397\u00c2\3\2\2\2\u0398\u0399\7d\2\2\u0399"+
"\u039a\7{\2\2\u039a\u039b\7v\2\2\u039b\u03be\7g\2\2\u039c\u039d\7y\2\2"+
"\u039d\u039e\7q\2\2\u039e\u039f\7t\2\2\u039f\u03be\7f\2\2\u03a0\u03a1"+
"\7f\2\2\u03a1\u03a2\7y\2\2\u03a2\u03a3\7q\2\2\u03a3\u03a4\7t\2\2\u03a4"+
"\u03be\7f\2\2\u03a5\u03a6\7d\2\2\u03a6\u03a7\7q\2\2\u03a7\u03a8\7q\2\2"+
"\u03a8\u03be\7n\2\2\u03a9\u03aa\7e\2\2\u03aa\u03ab\7j\2\2\u03ab\u03ac"+
"\7c\2\2\u03ac\u03be\7t\2\2\u03ad\u03ae\7u\2\2\u03ae\u03af\7j\2\2\u03af"+
"\u03b0\7q\2\2\u03b0\u03b1\7t\2\2\u03b1\u03be\7v\2\2\u03b2\u03b3\7k\2\2"+
"\u03b3\u03b4\7p\2\2\u03b4\u03be\7v\2\2\u03b5\u03b6\7n\2\2\u03b6\u03b7"+
"\7q\2\2\u03b7\u03b8\7p\2\2\u03b8\u03be\7i\2\2\u03b9\u03ba\7x\2\2\u03ba"+
"\u03bb\7q\2\2\u03bb\u03bc\7k\2\2\u03bc\u03be\7f\2\2\u03bd\u0398\3\2\2"+
"\2\u03bd\u039c\3\2\2\2\u03bd\u03a0\3\2\2\2\u03bd\u03a5\3\2\2\2\u03bd\u03a9"+
"\3\2\2\2\u03bd\u03ad\3\2\2\2\u03bd\u03b2\3\2\2\2\u03bd\u03b5\3\2\2\2\u03bd"+
"\u03b9\3\2\2\2\u03be\u00c4\3\2\2\2\u03bf\u03c5\7$\2\2\u03c0\u03c1\7^\2"+
"\2\u03c1\u03c4\7$\2\2\u03c2\u03c4\n\2\2\2\u03c3\u03c0\3\2\2\2\u03c3\u03c2"+
"\3\2\2\2\u03c4\u03c7\3\2\2\2\u03c5\u03c3\3\2\2\2\u03c5\u03c6\3\2\2\2\u03c6"+
"\u03c8\3\2\2\2\u03c7\u03c5\3\2\2\2\u03c8\u03ca\7$\2\2\u03c9\u03cb\t\3"+
"\2\2\u03ca\u03c9\3\2\2\2\u03ca\u03cb\3\2\2\2\u03cb\u03d0\3\2\2\2\u03cc"+
"\u03ce\t\4\2\2\u03cd\u03cf\t\5\2\2\u03ce\u03cd\3\2\2\2\u03ce\u03cf\3\2"+
"\2\2\u03cf\u03d1\3\2\2\2\u03d0\u03cc\3\2\2\2\u03d0\u03d1\3\2\2\2\u03d1"+
"\u03d3\3\2\2\2\u03d2\u03d4\t\3\2\2\u03d3\u03d2\3\2\2\2\u03d3\u03d4\3\2"+
"\2\2\u03d4\u00c6\3\2\2\2\u03d5\u03d9\7)\2\2\u03d6\u03d7\7^\2\2\u03d7\u03da"+
"\t\6\2\2\u03d8\u03da\n\7\2\2\u03d9\u03d6\3\2\2\2\u03d9\u03d8\3\2\2\2\u03da"+
"\u03db\3\2\2\2\u03db\u03dc\7)\2\2\u03dc\u00c8\3\2\2\2\u03dd\u03de\7v\2"+
"\2\u03de\u03df\7t\2\2\u03df\u03e0\7w\2\2\u03e0\u03e7\7g\2\2\u03e1\u03e2"+
"\7h\2\2\u03e2\u03e3\7c\2\2\u03e3\u03e4\7n\2\2\u03e4\u03e5\7u\2\2\u03e5"+
"\u03e7\7g\2\2\u03e6\u03dd\3\2\2\2\u03e6\u03e1\3\2\2\2\u03e7\u00ca\3\2"+
"\2\2\u03e8\u03eb\5\u00cdg\2\u03e9\u03eb\5\u00d5k\2\u03ea\u03e8\3\2\2\2"+
"\u03ea\u03e9\3\2\2\2\u03eb\u00cc\3\2\2\2\u03ec\u03f0\5\u00cfh\2\u03ed"+
"\u03f0\5\u00d1i\2\u03ee\u03f0\5\u00d3j\2\u03ef\u03ec\3\2\2\2\u03ef\u03ed"+
"\3\2\2\2\u03ef\u03ee\3\2\2\2\u03f0\u00ce\3\2\2\2\u03f1\u03f7\7\'\2\2\u03f2"+
"\u03f3\7\62\2\2\u03f3\u03f7\7d\2\2\u03f4\u03f5\7\62\2\2\u03f5\u03f7\7"+
"D\2\2\u03f6\u03f1\3\2\2\2\u03f6\u03f2\3\2\2\2\u03f6\u03f4\3\2\2\2\u03f7"+
"\u03fb\3\2\2\2\u03f8\u03fa\5\u00ddo\2\u03f9\u03f8\3\2\2\2\u03fa\u03fd"+
"\3\2\2\2\u03fb\u03f9\3\2\2\2\u03fb\u03fc\3\2\2\2\u03fc\u03fe\3\2\2\2\u03fd"+
"\u03fb\3\2\2\2\u03fe\u0400\7\60\2\2\u03ff\u0401\5\u00ddo\2\u0400\u03ff"+
"\3\2\2\2\u0401\u0402\3\2\2\2\u0402\u0400\3\2\2\2\u0402\u0403\3\2\2\2\u0403"+
"\u00d0\3\2\2\2\u0404\u0406\5\u00dfp\2\u0405\u0404\3\2\2\2\u0406\u0409"+
"\3\2\2\2\u0407\u0405\3\2\2\2\u0407\u0408\3\2\2\2\u0408\u040a\3\2\2\2\u0409"+
"\u0407\3\2\2\2\u040a\u040c\7\60\2\2\u040b\u040d\5\u00dfp\2\u040c\u040b"+
"\3\2\2\2\u040d\u040e\3\2\2\2\u040e\u040c\3\2\2\2\u040e\u040f\3\2\2\2\u040f"+
"\u00d2\3\2\2\2\u0410\u0416\7&\2\2\u0411\u0412\7\62\2\2\u0412\u0416\7z"+
"\2\2\u0413\u0414\7\62\2\2\u0414\u0416\7Z\2\2\u0415\u0410\3\2\2\2\u0415"+
"\u0411\3\2\2\2\u0415\u0413\3\2\2\2\u0416\u041a\3\2\2\2\u0417\u0419\5\u00e1"+
"q\2\u0418\u0417\3\2\2\2\u0419\u041c\3\2\2\2\u041a\u0418\3\2\2\2\u041a"+
"\u041b\3\2\2\2\u041b\u041d\3\2\2\2\u041c\u041a\3\2\2\2\u041d\u041f\7\60"+
"\2\2\u041e\u0420\5\u00e1q\2\u041f\u041e\3\2\2\2\u0420\u0421\3\2\2\2\u0421"+
"\u041f\3\2\2\2\u0421\u0422\3\2\2\2\u0422\u00d4\3\2\2\2\u0423\u0427\5\u00d9"+
"m\2\u0424\u0427\5\u00dbn\2\u0425\u0427\5\u00d7l\2\u0426\u0423\3\2\2\2"+
"\u0426\u0424\3\2\2\2\u0426\u0425\3\2\2\2\u0427\u042b\3\2\2\2\u0428\u0429"+
"\t\b\2\2\u0429\u042c\t\t\2\2\u042a\u042c\7n\2\2\u042b\u0428\3\2\2\2\u042b"+
"\u042a\3\2\2\2\u042b\u042c\3\2\2\2\u042c\u00d6\3\2\2\2\u042d\u042e\7\62"+
"\2\2\u042e\u0430\t\n\2\2\u042f\u0431\5\u00ddo\2\u0430\u042f\3\2\2\2\u0431"+
"\u0432\3\2\2\2\u0432\u0430\3\2\2\2\u0432\u0433\3\2\2\2\u0433\u043b\3\2"+
"\2\2\u0434\u0436\7\'\2\2\u0435\u0437\5\u00ddo\2\u0436\u0435\3\2\2\2\u0437"+
"\u0438\3\2\2\2\u0438\u0436\3\2\2\2\u0438\u0439\3\2\2\2\u0439\u043b\3\2"+
"\2\2\u043a\u042d\3\2\2\2\u043a\u0434\3\2\2\2\u043b\u00d8\3\2\2\2\u043c"+
"\u043e\5\u00dfp\2\u043d\u043c\3\2\2\2\u043e\u043f\3\2\2\2\u043f\u043d"+
"\3\2\2\2\u043f\u0440\3\2\2\2\u0440\u00da\3\2\2\2\u0441\u0447\7&\2\2\u0442"+
"\u0443\7\62\2\2\u0443\u0447\7z\2\2\u0444\u0445\7\62\2\2\u0445\u0447\7"+
"Z\2\2\u0446\u0441\3\2\2\2\u0446\u0442\3\2\2\2\u0446\u0444\3\2\2\2\u0447"+
"\u0449\3\2\2\2\u0448\u044a\5\u00e1q\2\u0449\u0448\3\2\2\2\u044a\u044b"+
"\3\2\2\2\u044b\u0449\3\2\2\2\u044b\u044c\3\2\2\2\u044c\u00dc\3\2\2\2\u044d"+
"\u044e\t\13\2\2\u044e\u00de\3\2\2\2\u044f\u0450\t\f\2\2\u0450\u00e0\3"+
"\2\2\2\u0451\u0452\t\r\2\2\u0452\u00e2\3\2\2\2\u0453\u0457\5\u00e5s\2"+
"\u0454\u0456\5\u00e7t\2\u0455\u0454\3\2\2\2\u0456\u0459\3\2\2\2\u0457"+
"\u0455\3\2\2\2\u0457\u0458\3\2\2\2\u0458\u00e4\3\2\2\2\u0459\u0457\3\2"+
"\2\2\u045a\u045b\t\16\2\2\u045b\u00e6\3\2\2\2\u045c\u045d\t\17\2\2\u045d"+
"\u00e8\3\2\2\2\u045e\u0462\7#\2\2\u045f\u0461\5\u00e7t\2\u0460\u045f\3"+
"\2\2\2\u0461\u0464\3\2\2\2\u0462\u0460\3\2\2\2\u0462\u0463\3\2\2\2\u0463"+
"\u0466\3\2\2\2\u0464\u0462\3\2\2\2\u0465\u0467\t\20\2\2\u0466\u0465\3"+
"\2\2\2\u0467\u0468\3\2\2\2\u0468\u0466\3\2\2\2\u0468\u0469\3\2\2\2\u0469"+
"\u046a\3\2\2\2\u046a\u046b\6u\2\2\u046b\u00ea\3\2\2\2\u046c\u046e\t\21"+
"\2\2\u046d\u046c\3\2\2\2\u046e\u046f\3\2\2\2\u046f\u046d\3\2\2\2\u046f"+
"\u0470\3\2\2\2\u0470\u0471\3\2\2\2\u0471\u0472\bv\2\2\u0472\u00ec\3\2"+
"\2\2\u0473\u0474\7\61\2\2\u0474\u0475\7\61\2\2\u0475\u0479\3\2\2\2\u0476"+
"\u0478\n\22\2\2\u0477\u0476\3\2\2\2\u0478\u047b\3\2\2\2\u0479\u0477\3"+
"\2\2\2\u0479\u047a\3\2\2\2\u047a\u047c\3\2\2\2\u047b\u0479\3\2\2\2\u047c"+
"\u047d\bw\3\2\u047d\u00ee\3\2\2\2\u047e\u047f\7\61\2\2\u047f\u0480\7,"+
"\2\2\u0480\u0484\3\2\2\2\u0481\u0483\13\2\2\2\u0482\u0481\3\2\2\2\u0483"+
"\u0486\3\2\2\2\u0484\u0485\3\2\2\2\u0484\u0482\3\2\2\2\u0485\u0487\3\2"+
"\2\2\u0486\u0484\3\2\2\2\u0487\u0488\7,\2\2\u0488\u0489\7\61\2\2\u0489"+
"\u048a\3\2\2\2\u048a\u048b\bx\3\2\u048b\u00f0\3\2\2\2&\2\u038a\u0392\u03bd"+
"\u03c3\u03c5\u03ca\u03ce\u03d0\u03d3\u03d9\u03e6\u03ea\u03ef\u03f6\u03fb"+
"\u0402\u0407\u040e\u0415\u041a\u0421\u0426\u042b\u0432\u0438\u043a\u043f"+
"\u0446\u044b\u0457\u0462\u0468\u046f\u0479\u0484\4\2\3\2\2\4\2";
public static final ATN _ATN =
new ATNDeserializer().deserialize(_serializedATN.toCharArray());
static {

View File

@ -1,5 +1,7 @@
// Generated from /Users/jespergravgaard/c64/kickc/src/main/java/dk/camelot64/kickc/parser/KickC.g4 by ANTLR 4.7
package dk.camelot64.kickc.parser;
import org.antlr.v4.runtime.tree.ParseTreeListener;
/**

View File

@ -1,5 +1,7 @@
// Generated from /Users/jespergravgaard/c64/kickc/src/main/java/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;
import org.antlr.v4.runtime.*;
@ -131,6 +133,15 @@ public class KickCParser extends Parser {
@Override
public ATN getATN() { return _ATN; }
ParserState state;
public KickCParser(TokenStream input, KickCLexer lexer) {
this(input);
this.state = lexer.state;
}
public KickCParser(TokenStream input) {
super(input);
_interp = new ParserATNSimulator(this,_ATN,_decisionToDFA,_sharedContextCache);
@ -5205,20 +5216,22 @@ public class KickCParser extends Parser {
try {
enterOuterAlt(_localctx, 1);
{
setState(669);
state.setAsm(true);
setState(670);
_errHandler.sync(this);
_la = _input.LA(1);
while (((((_la - 59)) & ~0x3f) == 0 && ((1L << (_la - 59)) & ((1L << (T__58 - 59)) | (1L << (T__92 - 59)) | (1L << (MNEMONIC - 59)) | (1L << (NAME - 59)))) != 0)) {
{
{
setState(666);
setState(667);
asmLine();
}
}
setState(671);
setState(672);
_errHandler.sync(this);
_la = _input.LA(1);
}
state.setAsm(false);
}
}
catch (RecognitionException re) {
@ -5265,28 +5278,28 @@ public class KickCParser extends Parser {
AsmLineContext _localctx = new AsmLineContext(_ctx, getState());
enterRule(_localctx, 74, RULE_asmLine);
try {
setState(675);
setState(678);
_errHandler.sync(this);
switch (_input.LA(1)) {
case T__58:
case NAME:
enterOuterAlt(_localctx, 1);
{
setState(672);
setState(675);
asmLabel();
}
break;
case MNEMONIC:
enterOuterAlt(_localctx, 2);
{
setState(673);
setState(676);
asmInstruction();
}
break;
case T__92:
enterOuterAlt(_localctx, 3);
{
setState(674);
setState(677);
asmBytes();
}
break;
@ -5356,16 +5369,16 @@ public class KickCParser extends Parser {
enterRule(_localctx, 76, RULE_asmLabel);
int _la;
try {
setState(684);
setState(687);
_errHandler.sync(this);
switch (_input.LA(1)) {
case NAME:
_localctx = new AsmLabelNameContext(_localctx);
enterOuterAlt(_localctx, 1);
{
setState(677);
setState(680);
match(NAME);
setState(678);
setState(681);
match(T__41);
}
break;
@ -5373,19 +5386,19 @@ public class KickCParser extends Parser {
_localctx = new AsmLabelMultiContext(_localctx);
enterOuterAlt(_localctx, 2);
{
setState(679);
setState(682);
match(T__58);
setState(681);
setState(684);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==NAME) {
{
setState(680);
setState(683);
match(NAME);
}
}
setState(683);
setState(686);
match(T__41);
}
break;
@ -5434,14 +5447,14 @@ public class KickCParser extends Parser {
try {
enterOuterAlt(_localctx, 1);
{
setState(686);
setState(689);
match(MNEMONIC);
setState(688);
setState(691);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,68,_ctx) ) {
case 1:
{
setState(687);
setState(690);
asmParamMode();
}
break;
@ -5492,23 +5505,23 @@ public class KickCParser extends Parser {
try {
enterOuterAlt(_localctx, 1);
{
setState(690);
setState(693);
match(T__92);
setState(691);
setState(694);
asmExpr(0);
setState(696);
setState(699);
_errHandler.sync(this);
_la = _input.LA(1);
while (_la==T__3) {
{
{
setState(692);
setState(695);
match(T__3);
setState(693);
setState(696);
asmExpr(0);
}
}
setState(698);
setState(701);
_errHandler.sync(this);
_la = _input.LA(1);
}
@ -5658,14 +5671,14 @@ public class KickCParser extends Parser {
AsmParamModeContext _localctx = new AsmParamModeContext(_ctx, getState());
enterRule(_localctx, 82, RULE_asmParamMode);
try {
setState(722);
setState(725);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,70,_ctx) ) {
case 1:
_localctx = new AsmModeAbsContext(_localctx);
enterOuterAlt(_localctx, 1);
{
setState(699);
setState(702);
asmExpr(0);
}
break;
@ -5673,9 +5686,9 @@ public class KickCParser extends Parser {
_localctx = new AsmModeImmContext(_localctx);
enterOuterAlt(_localctx, 2);
{
setState(700);
setState(703);
match(T__93);
setState(701);
setState(704);
asmExpr(0);
}
break;
@ -5683,11 +5696,11 @@ public class KickCParser extends Parser {
_localctx = new AsmModeAbsXYContext(_localctx);
enterOuterAlt(_localctx, 3);
{
setState(702);
setState(705);
asmExpr(0);
setState(703);
setState(706);
match(T__3);
setState(704);
setState(707);
match(NAME);
}
break;
@ -5695,15 +5708,15 @@ public class KickCParser extends Parser {
_localctx = new AsmModeIndIdxXYContext(_localctx);
enterOuterAlt(_localctx, 4);
{
setState(706);
match(T__5);
setState(707);
asmExpr(0);
setState(708);
match(T__6);
setState(709);
match(T__3);
match(T__5);
setState(710);
asmExpr(0);
setState(711);
match(T__6);
setState(712);
match(T__3);
setState(713);
match(NAME);
}
break;
@ -5711,15 +5724,15 @@ public class KickCParser extends Parser {
_localctx = new AsmModeIdxIndXYContext(_localctx);
enterOuterAlt(_localctx, 5);
{
setState(712);
match(T__5);
setState(713);
asmExpr(0);
setState(714);
match(T__3);
setState(715);
match(NAME);
match(T__5);
setState(716);
asmExpr(0);
setState(717);
match(T__3);
setState(718);
match(NAME);
setState(719);
match(T__6);
}
break;
@ -5727,11 +5740,11 @@ public class KickCParser extends Parser {
_localctx = new AsmModeIndContext(_localctx);
enterOuterAlt(_localctx, 6);
{
setState(718);
setState(721);
match(T__5);
setState(719);
setState(722);
asmExpr(0);
setState(720);
setState(723);
match(T__6);
}
break;
@ -5921,7 +5934,7 @@ public class KickCParser extends Parser {
int _alt;
enterOuterAlt(_localctx, 1);
{
setState(738);
setState(741);
_errHandler.sync(this);
switch (_input.LA(1)) {
case T__46:
@ -5930,11 +5943,11 @@ public class KickCParser extends Parser {
_ctx = _localctx;
_prevctx = _localctx;
setState(725);
setState(728);
match(T__46);
setState(726);
setState(729);
asmExpr(0);
setState(727);
setState(730);
match(T__47);
}
break;
@ -5946,7 +5959,7 @@ public class KickCParser extends Parser {
_localctx = new AsmExprUnaryContext(_localctx);
_ctx = _localctx;
_prevctx = _localctx;
setState(729);
setState(732);
_la = _input.LA(1);
if ( !(((((_la - 57)) & ~0x3f) == 0 && ((1L << (_la - 57)) & ((1L << (T__56 - 57)) | (1L << (T__57 - 57)) | (1L << (T__65 - 57)) | (1L << (T__66 - 57)))) != 0)) ) {
_errHandler.recoverInline(this);
@ -5956,7 +5969,7 @@ public class KickCParser extends Parser {
_errHandler.reportMatch(this);
consume();
}
setState(730);
setState(733);
asmExpr(8);
}
break;
@ -5965,7 +5978,7 @@ public class KickCParser extends Parser {
_localctx = new AsmExprLabelContext(_localctx);
_ctx = _localctx;
_prevctx = _localctx;
setState(731);
setState(734);
match(NAME);
}
break;
@ -5974,7 +5987,7 @@ public class KickCParser extends Parser {
_localctx = new AsmExprLabelRelContext(_localctx);
_ctx = _localctx;
_prevctx = _localctx;
setState(732);
setState(735);
match(ASMREL);
}
break;
@ -5983,11 +5996,11 @@ public class KickCParser extends Parser {
_localctx = new AsmExprReplaceContext(_localctx);
_ctx = _localctx;
_prevctx = _localctx;
setState(733);
setState(736);
match(T__7);
setState(734);
setState(737);
match(NAME);
setState(735);
setState(738);
match(T__8);
}
break;
@ -5996,7 +6009,7 @@ public class KickCParser extends Parser {
_localctx = new AsmExprIntContext(_localctx);
_ctx = _localctx;
_prevctx = _localctx;
setState(736);
setState(739);
match(NUMBER);
}
break;
@ -6005,7 +6018,7 @@ public class KickCParser extends Parser {
_localctx = new AsmExprCharContext(_localctx);
_ctx = _localctx;
_prevctx = _localctx;
setState(737);
setState(740);
match(CHAR);
}
break;
@ -6013,7 +6026,7 @@ public class KickCParser extends Parser {
throw new NoViableAltException(this);
}
_ctx.stop = _input.LT(-1);
setState(754);
setState(757);
_errHandler.sync(this);
_alt = getInterpreter().adaptivePredict(_input,73,_ctx);
while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) {
@ -6021,20 +6034,20 @@ public class KickCParser extends Parser {
if ( _parseListeners!=null ) triggerExitRuleEvent();
_prevctx = _localctx;
{
setState(752);
setState(755);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,72,_ctx) ) {
case 1:
{
_localctx = new AsmExprBinaryContext(new AsmExprContext(_parentctx, _parentState));
pushNewRecursionContext(_localctx, _startState, RULE_asmExpr);
setState(740);
setState(743);
if (!(precpred(_ctx, 10))) throw new FailedPredicateException(this, "precpred(_ctx, 10)");
{
setState(741);
setState(744);
match(T__50);
}
setState(742);
setState(745);
asmExpr(11);
}
break;
@ -6042,9 +6055,9 @@ public class KickCParser extends Parser {
{
_localctx = new AsmExprBinaryContext(new AsmExprContext(_parentctx, _parentState));
pushNewRecursionContext(_localctx, _startState, RULE_asmExpr);
setState(743);
setState(746);
if (!(precpred(_ctx, 9))) throw new FailedPredicateException(this, "precpred(_ctx, 9)");
setState(744);
setState(747);
_la = _input.LA(1);
if ( !(_la==T__61 || _la==T__62) ) {
_errHandler.recoverInline(this);
@ -6054,7 +6067,7 @@ public class KickCParser extends Parser {
_errHandler.reportMatch(this);
consume();
}
setState(745);
setState(748);
asmExpr(10);
}
break;
@ -6062,9 +6075,9 @@ public class KickCParser extends Parser {
{
_localctx = new AsmExprBinaryContext(new AsmExprContext(_parentctx, _parentState));
pushNewRecursionContext(_localctx, _startState, RULE_asmExpr);
setState(746);
setState(749);
if (!(precpred(_ctx, 7))) throw new FailedPredicateException(this, "precpred(_ctx, 7)");
setState(747);
setState(750);
_la = _input.LA(1);
if ( !(_la==T__45 || _la==T__63) ) {
_errHandler.recoverInline(this);
@ -6074,7 +6087,7 @@ public class KickCParser extends Parser {
_errHandler.reportMatch(this);
consume();
}
setState(748);
setState(751);
asmExpr(8);
}
break;
@ -6082,9 +6095,9 @@ public class KickCParser extends Parser {
{
_localctx = new AsmExprBinaryContext(new AsmExprContext(_parentctx, _parentState));
pushNewRecursionContext(_localctx, _startState, RULE_asmExpr);
setState(749);
setState(752);
if (!(precpred(_ctx, 6))) throw new FailedPredicateException(this, "precpred(_ctx, 6)");
setState(750);
setState(753);
_la = _input.LA(1);
if ( !(_la==T__56 || _la==T__57) ) {
_errHandler.recoverInline(this);
@ -6094,14 +6107,14 @@ public class KickCParser extends Parser {
_errHandler.reportMatch(this);
consume();
}
setState(751);
setState(754);
asmExpr(7);
}
break;
}
}
}
setState(756);
setState(759);
_errHandler.sync(this);
_alt = getInterpreter().adaptivePredict(_input,73,_ctx);
}
@ -6221,7 +6234,7 @@ public class KickCParser extends Parser {
}
public static final String _serializedATN =
"\3\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964\3t\u02f8\4\2\t\2\4"+
"\3\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964\3t\u02fb\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"+
@ -6270,56 +6283,56 @@ public class KickCParser extends Parser {
"!\3!\3!\7!\u026e\n!\f!\16!\u0271\13!\3\"\3\"\3\"\7\"\u0276\n\"\f\"\16"+
"\"\u0279\13\"\3#\3#\5#\u027d\n#\3#\3#\3$\3$\3$\3$\7$\u0285\n$\f$\16$\u0288"+
"\13$\3$\3$\3%\3%\3%\3%\3%\3%\3%\3%\3%\3%\3%\3%\3%\5%\u0299\n%\5%\u029b"+
"\n%\3&\7&\u029e\n&\f&\16&\u02a1\13&\3\'\3\'\3\'\5\'\u02a6\n\'\3(\3(\3"+
"(\3(\5(\u02ac\n(\3(\5(\u02af\n(\3)\3)\5)\u02b3\n)\3*\3*\3*\3*\7*\u02b9"+
"\n*\f*\16*\u02bc\13*\3+\3+\3+\3+\3+\3+\3+\3+\3+\3+\3+\3+\3+\3+\3+\3+\3"+
"+\3+\3+\3+\3+\3+\3+\5+\u02d5\n+\3,\3,\3,\3,\3,\3,\3,\3,\3,\3,\3,\3,\3"+
",\3,\5,\u02e5\n,\3,\3,\3,\3,\3,\3,\3,\3,\3,\3,\3,\3,\7,\u02f3\n,\f,\16"+
",\u02f6\13,\3,\2\b\24.:>@V-\2\4\6\b\n\f\16\20\22\24\26\30\32\34\36 \""+
"$&(*,.\60\62\64\668:<>@BDFHJLNPRTV\2\r\3\2./\3\29:\3\2;?\3\2DE\3\2@A\4"+
"\2\60\60BC\3\2;<\3\2DI\3\2OX\4\2;<DE\4\2\60\60BB\2\u0364\2X\3\2\2\2\4"+
"\\\3\2\2\2\6b\3\2\2\2\be\3\2\2\2\ni\3\2\2\2\f|\3\2\2\2\16~\3\2\2\2\20"+
"\u0084\3\2\2\2\22\u008e\3\2\2\2\24\u0091\3\2\2\2\26\u00a4\3\2\2\2\30\u00a6"+
"\3\2\2\2\32\u00b3\3\2\2\2\34\u00bf\3\2\2\2\36\u00fa\3\2\2\2 \u011c\3\2"+
"\2\2\"\u011f\3\2\2\2$\u0177\3\2\2\2&\u017a\3\2\2\2(\u0184\3\2\2\2*\u019a"+
"\3\2\2\2,\u01a0\3\2\2\2.\u01b1\3\2\2\2\60\u01c3\3\2\2\2\62\u01c6\3\2\2"+
"\2\64\u01d2\3\2\2\2\66\u01d5\3\2\2\28\u01d8\3\2\2\2:\u01e0\3\2\2\2<\u01eb"+
"\3\2\2\2>\u01f0\3\2\2\2@\u0231\3\2\2\2B\u0272\3\2\2\2D\u027a\3\2\2\2F"+
"\u0280\3\2\2\2H\u029a\3\2\2\2J\u029f\3\2\2\2L\u02a5\3\2\2\2N\u02ae\3\2"+
"\2\2P\u02b0\3\2\2\2R\u02b4\3\2\2\2T\u02d4\3\2\2\2V\u02e4\3\2\2\2XY\5\6"+
"\4\2YZ\5\n\6\2Z[\7\2\2\3[\3\3\2\2\2\\]\5J&\2]^\7\2\2\3^\5\3\2\2\2_a\5"+
"\b\5\2`_\3\2\2\2ad\3\2\2\2b`\3\2\2\2bc\3\2\2\2c\7\3\2\2\2db\3\2\2\2ef"+
"\7\3\2\2fg\7d\2\2g\t\3\2\2\2hj\5\f\7\2ih\3\2\2\2jk\3\2\2\2ki\3\2\2\2k"+
"l\3\2\2\2l\13\3\2\2\2mn\5\22\n\2no\7\4\2\2o}\3\2\2\2pq\5\62\32\2qr\7\4"+
"\2\2r}\3\2\2\2st\58\35\2tu\7\4\2\2u}\3\2\2\2v}\5\30\r\2w}\5D#\2x}\5\36"+
"\20\2yz\5\16\b\2z{\7\4\2\2{}\3\2\2\2|m\3\2\2\2|p\3\2\2\2|s\3\2\2\2|v\3"+
"\2\2\2|w\3\2\2\2|x\3\2\2\2|y\3\2\2\2}\r\3\2\2\2~\177\7\5\2\2\177\u0080"+
"\5\22\n\2\u0080\17\3\2\2\2\u0081\u0083\5 \21\2\u0082\u0081\3\2\2\2\u0083"+
"\u0086\3\2\2\2\u0084\u0082\3\2\2\2\u0084\u0085\3\2\2\2\u0085\u0087\3\2"+
"\2\2\u0086\u0084\3\2\2\2\u0087\u008b\5.\30\2\u0088\u008a\5 \21\2\u0089"+
"\u0088\3\2\2\2\u008a\u008d\3\2\2\2\u008b\u0089\3\2\2\2\u008b\u008c\3\2"+
"\2\2\u008c\21\3\2\2\2\u008d\u008b\3\2\2\2\u008e\u008f\5\20\t\2\u008f\u0090"+
"\5\24\13\2\u0090\23\3\2\2\2\u0091\u0092\b\13\1\2\u0092\u0093\5\26\f\2"+
"\u0093\u0099\3\2\2\2\u0094\u0095\f\3\2\2\u0095\u0096\7\6\2\2\u0096\u0098"+
"\5\26\f\2\u0097\u0094\3\2\2\2\u0098\u009b\3\2\2\2\u0099\u0097\3\2\2\2"+
"\u0099\u009a\3\2\2\2\u009a\25\3\2\2\2\u009b\u0099\3\2\2\2\u009c\u009f"+
"\7p\2\2\u009d\u009e\7\7\2\2\u009e\u00a0\5@!\2\u009f\u009d\3\2\2\2\u009f"+
"\u00a0\3\2\2\2\u00a0\u00a5\3\2\2\2\u00a1\u00a2\7p\2\2\u00a2\u00a3\7\7"+
"\2\2\u00a3\u00a5\5D#\2\u00a4\u009c\3\2\2\2\u00a4\u00a1\3\2\2\2\u00a5\27"+
"\3\2\2\2\u00a6\u00a7\5\20\t\2\u00a7\u00a8\7p\2\2\u00a8\u00aa\7\b\2\2\u00a9"+
"\u00ab\5\32\16\2\u00aa\u00a9\3\2\2\2\u00aa\u00ab\3\2\2\2\u00ab\u00ac\3"+
"\2\2\2\u00ac\u00ad\7\t\2\2\u00ad\u00af\7\n\2\2\u00ae\u00b0\5\"\22\2\u00af"+
"\u00ae\3\2\2\2\u00af\u00b0\3\2\2\2\u00b0\u00b1\3\2\2\2\u00b1\u00b2\7\13"+
"\2\2\u00b2\31\3\2\2\2\u00b3\u00b8\5\34\17\2\u00b4\u00b5\7\6\2\2\u00b5"+
"\u00b7\5\34\17\2\u00b6\u00b4\3\2\2\2\u00b7\u00ba\3\2\2\2\u00b8\u00b6\3"+
"\2\2\2\u00b8\u00b9\3\2\2\2\u00b9\33\3\2\2\2\u00ba\u00b8\3\2\2\2\u00bb"+
"\u00bc\5\20\t\2\u00bc\u00bd\7p\2\2\u00bd\u00c0\3\2\2\2\u00be\u00c0\7c"+
"\2\2\u00bf\u00bb\3\2\2\2\u00bf\u00be\3\2\2\2\u00c0\35\3\2\2\2\u00c1\u00c2"+
"\7\f\2\2\u00c2\u00c5\7\r\2\2\u00c3\u00c5\7\16\2\2\u00c4\u00c1\3\2\2\2"+
"\u00c4\u00c3\3\2\2\2\u00c5\u00c6\3\2\2\2\u00c6\u00c7\7\b\2\2\u00c7\u00cc"+
"\7g\2\2\u00c8\u00c9\7\6\2\2\u00c9\u00cb\7g\2\2\u00ca\u00c8\3\2\2\2\u00cb"+
"\u00ce\3\2\2\2\u00cc\u00ca\3\2\2\2\u00cc\u00cd\3\2\2\2\u00cd\u00cf\3\2"+
"\2\2\u00ce\u00cc\3\2\2\2\u00cf\u00fb\7\t\2\2\u00d0\u00d1\7\f\2\2\u00d1"+
"\n%\3&\3&\7&\u029f\n&\f&\16&\u02a2\13&\3&\3&\3\'\3\'\3\'\5\'\u02a9\n\'"+
"\3(\3(\3(\3(\5(\u02af\n(\3(\5(\u02b2\n(\3)\3)\5)\u02b6\n)\3*\3*\3*\3*"+
"\7*\u02bc\n*\f*\16*\u02bf\13*\3+\3+\3+\3+\3+\3+\3+\3+\3+\3+\3+\3+\3+\3"+
"+\3+\3+\3+\3+\3+\3+\3+\3+\3+\5+\u02d8\n+\3,\3,\3,\3,\3,\3,\3,\3,\3,\3"+
",\3,\3,\3,\3,\5,\u02e8\n,\3,\3,\3,\3,\3,\3,\3,\3,\3,\3,\3,\3,\7,\u02f6"+
"\n,\f,\16,\u02f9\13,\3,\2\b\24.:>@V-\2\4\6\b\n\f\16\20\22\24\26\30\32"+
"\34\36 \"$&(*,.\60\62\64\668:<>@BDFHJLNPRTV\2\r\3\2./\3\29:\3\2;?\3\2"+
"DE\3\2@A\4\2\60\60BC\3\2;<\3\2DI\3\2OX\4\2;<DE\4\2\60\60BB\2\u0367\2X"+
"\3\2\2\2\4\\\3\2\2\2\6b\3\2\2\2\be\3\2\2\2\ni\3\2\2\2\f|\3\2\2\2\16~\3"+
"\2\2\2\20\u0084\3\2\2\2\22\u008e\3\2\2\2\24\u0091\3\2\2\2\26\u00a4\3\2"+
"\2\2\30\u00a6\3\2\2\2\32\u00b3\3\2\2\2\34\u00bf\3\2\2\2\36\u00fa\3\2\2"+
"\2 \u011c\3\2\2\2\"\u011f\3\2\2\2$\u0177\3\2\2\2&\u017a\3\2\2\2(\u0184"+
"\3\2\2\2*\u019a\3\2\2\2,\u01a0\3\2\2\2.\u01b1\3\2\2\2\60\u01c3\3\2\2\2"+
"\62\u01c6\3\2\2\2\64\u01d2\3\2\2\2\66\u01d5\3\2\2\28\u01d8\3\2\2\2:\u01e0"+
"\3\2\2\2<\u01eb\3\2\2\2>\u01f0\3\2\2\2@\u0231\3\2\2\2B\u0272\3\2\2\2D"+
"\u027a\3\2\2\2F\u0280\3\2\2\2H\u029a\3\2\2\2J\u029c\3\2\2\2L\u02a8\3\2"+
"\2\2N\u02b1\3\2\2\2P\u02b3\3\2\2\2R\u02b7\3\2\2\2T\u02d7\3\2\2\2V\u02e7"+
"\3\2\2\2XY\5\6\4\2YZ\5\n\6\2Z[\7\2\2\3[\3\3\2\2\2\\]\5J&\2]^\7\2\2\3^"+
"\5\3\2\2\2_a\5\b\5\2`_\3\2\2\2ad\3\2\2\2b`\3\2\2\2bc\3\2\2\2c\7\3\2\2"+
"\2db\3\2\2\2ef\7\3\2\2fg\7d\2\2g\t\3\2\2\2hj\5\f\7\2ih\3\2\2\2jk\3\2\2"+
"\2ki\3\2\2\2kl\3\2\2\2l\13\3\2\2\2mn\5\22\n\2no\7\4\2\2o}\3\2\2\2pq\5"+
"\62\32\2qr\7\4\2\2r}\3\2\2\2st\58\35\2tu\7\4\2\2u}\3\2\2\2v}\5\30\r\2"+
"w}\5D#\2x}\5\36\20\2yz\5\16\b\2z{\7\4\2\2{}\3\2\2\2|m\3\2\2\2|p\3\2\2"+
"\2|s\3\2\2\2|v\3\2\2\2|w\3\2\2\2|x\3\2\2\2|y\3\2\2\2}\r\3\2\2\2~\177\7"+
"\5\2\2\177\u0080\5\22\n\2\u0080\17\3\2\2\2\u0081\u0083\5 \21\2\u0082\u0081"+
"\3\2\2\2\u0083\u0086\3\2\2\2\u0084\u0082\3\2\2\2\u0084\u0085\3\2\2\2\u0085"+
"\u0087\3\2\2\2\u0086\u0084\3\2\2\2\u0087\u008b\5.\30\2\u0088\u008a\5 "+
"\21\2\u0089\u0088\3\2\2\2\u008a\u008d\3\2\2\2\u008b\u0089\3\2\2\2\u008b"+
"\u008c\3\2\2\2\u008c\21\3\2\2\2\u008d\u008b\3\2\2\2\u008e\u008f\5\20\t"+
"\2\u008f\u0090\5\24\13\2\u0090\23\3\2\2\2\u0091\u0092\b\13\1\2\u0092\u0093"+
"\5\26\f\2\u0093\u0099\3\2\2\2\u0094\u0095\f\3\2\2\u0095\u0096\7\6\2\2"+
"\u0096\u0098\5\26\f\2\u0097\u0094\3\2\2\2\u0098\u009b\3\2\2\2\u0099\u0097"+
"\3\2\2\2\u0099\u009a\3\2\2\2\u009a\25\3\2\2\2\u009b\u0099\3\2\2\2\u009c"+
"\u009f\7p\2\2\u009d\u009e\7\7\2\2\u009e\u00a0\5@!\2\u009f\u009d\3\2\2"+
"\2\u009f\u00a0\3\2\2\2\u00a0\u00a5\3\2\2\2\u00a1\u00a2\7p\2\2\u00a2\u00a3"+
"\7\7\2\2\u00a3\u00a5\5D#\2\u00a4\u009c\3\2\2\2\u00a4\u00a1\3\2\2\2\u00a5"+
"\27\3\2\2\2\u00a6\u00a7\5\20\t\2\u00a7\u00a8\7p\2\2\u00a8\u00aa\7\b\2"+
"\2\u00a9\u00ab\5\32\16\2\u00aa\u00a9\3\2\2\2\u00aa\u00ab\3\2\2\2\u00ab"+
"\u00ac\3\2\2\2\u00ac\u00ad\7\t\2\2\u00ad\u00af\7\n\2\2\u00ae\u00b0\5\""+
"\22\2\u00af\u00ae\3\2\2\2\u00af\u00b0\3\2\2\2\u00b0\u00b1\3\2\2\2\u00b1"+
"\u00b2\7\13\2\2\u00b2\31\3\2\2\2\u00b3\u00b8\5\34\17\2\u00b4\u00b5\7\6"+
"\2\2\u00b5\u00b7\5\34\17\2\u00b6\u00b4\3\2\2\2\u00b7\u00ba\3\2\2\2\u00b8"+
"\u00b6\3\2\2\2\u00b8\u00b9\3\2\2\2\u00b9\33\3\2\2\2\u00ba\u00b8\3\2\2"+
"\2\u00bb\u00bc\5\20\t\2\u00bc\u00bd\7p\2\2\u00bd\u00c0\3\2\2\2\u00be\u00c0"+
"\7c\2\2\u00bf\u00bb\3\2\2\2\u00bf\u00be\3\2\2\2\u00c0\35\3\2\2\2\u00c1"+
"\u00c2\7\f\2\2\u00c2\u00c5\7\r\2\2\u00c3\u00c5\7\16\2\2\u00c4\u00c1\3"+
"\2\2\2\u00c4\u00c3\3\2\2\2\u00c5\u00c6\3\2\2\2\u00c6\u00c7\7\b\2\2\u00c7"+
"\u00cc\7g\2\2\u00c8\u00c9\7\6\2\2\u00c9\u00cb\7g\2\2\u00ca\u00c8\3\2\2"+
"\2\u00cb\u00ce\3\2\2\2\u00cc\u00ca\3\2\2\2\u00cc\u00cd\3\2\2\2\u00cd\u00cf"+
"\3\2\2\2\u00ce\u00cc\3\2\2\2\u00cf\u00fb\7\t\2\2\u00d0\u00d1\7\f\2\2\u00d1"+
"\u00d4\7\17\2\2\u00d2\u00d4\7\20\2\2\u00d3\u00d0\3\2\2\2\u00d3\u00d2\3"+
"\2\2\2\u00d4\u00d5\3\2\2\2\u00d5\u00d6\7\b\2\2\u00d6\u00d7\7g\2\2\u00d7"+
"\u00fb\7\t\2\2\u00d8\u00d9\7\f\2\2\u00d9\u00dc\7\21\2\2\u00da\u00dc\7"+
@ -6478,44 +6491,44 @@ public class KickCParser extends Parser {
"\7\17\2\2\u0296\u0299\7\35\2\2\u0297\u0299\5@!\2\u0298\u0296\3\2\2\2\u0298"+
"\u0297\3\2\2\2\u0299\u029b\3\2\2\2\u029a\u028b\3\2\2\2\u029a\u028d\3\2"+
"\2\2\u029a\u028f\3\2\2\2\u029a\u0291\3\2\2\2\u029a\u0293\3\2\2\2\u029a"+
"\u0295\3\2\2\2\u029bI\3\2\2\2\u029c\u029e\5L\'\2\u029d\u029c\3\2\2\2\u029e"+
"\u02a1\3\2\2\2\u029f\u029d\3\2\2\2\u029f\u02a0\3\2\2\2\u02a0K\3\2\2\2"+
"\u02a1\u029f\3\2\2\2\u02a2\u02a6\5N(\2\u02a3\u02a6\5P)\2\u02a4\u02a6\5"+
"R*\2\u02a5\u02a2\3\2\2\2\u02a5\u02a3\3\2\2\2\u02a5\u02a4\3\2\2\2\u02a6"+
"M\3\2\2\2\u02a7\u02a8\7p\2\2\u02a8\u02af\7,\2\2\u02a9\u02ab\7=\2\2\u02aa"+
"\u02ac\7p\2\2\u02ab\u02aa\3\2\2\2\u02ab\u02ac\3\2\2\2\u02ac\u02ad\3\2"+
"\2\2\u02ad\u02af\7,\2\2\u02ae\u02a7\3\2\2\2\u02ae\u02a9\3\2\2\2\u02af"+
"O\3\2\2\2\u02b0\u02b2\7a\2\2\u02b1\u02b3\5T+\2\u02b2\u02b1\3\2\2\2\u02b2"+
"\u02b3\3\2\2\2\u02b3Q\3\2\2\2\u02b4\u02b5\7_\2\2\u02b5\u02ba\5V,\2\u02b6"+
"\u02b7\7\6\2\2\u02b7\u02b9\5V,\2\u02b8\u02b6\3\2\2\2\u02b9\u02bc\3\2\2"+
"\2\u02ba\u02b8\3\2\2\2\u02ba\u02bb\3\2\2\2\u02bbS\3\2\2\2\u02bc\u02ba"+
"\3\2\2\2\u02bd\u02d5\5V,\2\u02be\u02bf\7`\2\2\u02bf\u02d5\5V,\2\u02c0"+
"\u02c1\5V,\2\u02c1\u02c2\7\6\2\2\u02c2\u02c3\7p\2\2\u02c3\u02d5\3\2\2"+
"\2\u02c4\u02c5\7\b\2\2\u02c5\u02c6\5V,\2\u02c6\u02c7\7\t\2\2\u02c7\u02c8"+
"\7\6\2\2\u02c8\u02c9\7p\2\2\u02c9\u02d5\3\2\2\2\u02ca\u02cb\7\b\2\2\u02cb"+
"\u02cc\5V,\2\u02cc\u02cd\7\6\2\2\u02cd\u02ce\7p\2\2\u02ce\u02cf\7\t\2"+
"\2\u02cf\u02d5\3\2\2\2\u02d0\u02d1\7\b\2\2\u02d1\u02d2\5V,\2\u02d2\u02d3"+
"\7\t\2\2\u02d3\u02d5\3\2\2\2\u02d4\u02bd\3\2\2\2\u02d4\u02be\3\2\2\2\u02d4"+
"\u02c0\3\2\2\2\u02d4\u02c4\3\2\2\2\u02d4\u02ca\3\2\2\2\u02d4\u02d0\3\2"+
"\2\2\u02d5U\3\2\2\2\u02d6\u02d7\b,\1\2\u02d7\u02d8\7\61\2\2\u02d8\u02d9"+
"\5V,\2\u02d9\u02da\7\62\2\2\u02da\u02e5\3\2\2\2\u02db\u02dc\t\13\2\2\u02dc"+
"\u02e5\5V,\n\u02dd\u02e5\7p\2\2\u02de\u02e5\7q\2\2\u02df\u02e0\7\n\2\2"+
"\u02e0\u02e1\7p\2\2\u02e1\u02e5\7\13\2\2\u02e2\u02e5\7g\2\2\u02e3\u02e5"+
"\7e\2\2\u02e4\u02d6\3\2\2\2\u02e4\u02db\3\2\2\2\u02e4\u02dd\3\2\2\2\u02e4"+
"\u02de\3\2\2\2\u02e4\u02df\3\2\2\2\u02e4\u02e2\3\2\2\2\u02e4\u02e3\3\2"+
"\2\2\u02e5\u02f4\3\2\2\2\u02e6\u02e7\f\f\2\2\u02e7\u02e8\7\65\2\2\u02e8"+
"\u02f3\5V,\r\u02e9\u02ea\f\13\2\2\u02ea\u02eb\t\6\2\2\u02eb\u02f3\5V,"+
"\f\u02ec\u02ed\f\t\2\2\u02ed\u02ee\t\f\2\2\u02ee\u02f3\5V,\n\u02ef\u02f0"+
"\f\b\2\2\u02f0\u02f1\t\b\2\2\u02f1\u02f3\5V,\t\u02f2\u02e6\3\2\2\2\u02f2"+
"\u02e9\3\2\2\2\u02f2\u02ec\3\2\2\2\u02f2\u02ef\3\2\2\2\u02f3\u02f6\3\2"+
"\2\2\u02f4\u02f2\3\2\2\2\u02f4\u02f5\3\2\2\2\u02f5W\3\2\2\2\u02f6\u02f4"+
"\3\2\2\2Lbk|\u0084\u008b\u0099\u009f\u00a4\u00aa\u00af\u00b8\u00bf\u00c4"+
"\u00cc\u00d3\u00db\u00f5\u00fa\u0107\u010f\u0118\u011c\u0121\u0128\u0135"+
"\u013a\u0146\u0154\u0167\u0170\u0177\u017c\u0180\u0182\u0188\u018f\u0192"+
"\u019a\u019d\u01a0\u01aa\u01b1\u01b8\u01be\u01c0\u01c8\u01ce\u01da\u01e8"+
"\u01ee\u01f8\u0204\u020c\u0223\u022d\u0231\u0263\u026d\u026f\u0277\u027c"+
"\u0286\u0298\u029a\u029f\u02a5\u02ab\u02ae\u02b2\u02ba\u02d4\u02e4\u02f2"+
"\u02f4";
"\u0295\3\2\2\2\u029bI\3\2\2\2\u029c\u02a0\b&\1\2\u029d\u029f\5L\'\2\u029e"+
"\u029d\3\2\2\2\u029f\u02a2\3\2\2\2\u02a0\u029e\3\2\2\2\u02a0\u02a1\3\2"+
"\2\2\u02a1\u02a3\3\2\2\2\u02a2\u02a0\3\2\2\2\u02a3\u02a4\b&\1\2\u02a4"+
"K\3\2\2\2\u02a5\u02a9\5N(\2\u02a6\u02a9\5P)\2\u02a7\u02a9\5R*\2\u02a8"+
"\u02a5\3\2\2\2\u02a8\u02a6\3\2\2\2\u02a8\u02a7\3\2\2\2\u02a9M\3\2\2\2"+
"\u02aa\u02ab\7p\2\2\u02ab\u02b2\7,\2\2\u02ac\u02ae\7=\2\2\u02ad\u02af"+
"\7p\2\2\u02ae\u02ad\3\2\2\2\u02ae\u02af\3\2\2\2\u02af\u02b0\3\2\2\2\u02b0"+
"\u02b2\7,\2\2\u02b1\u02aa\3\2\2\2\u02b1\u02ac\3\2\2\2\u02b2O\3\2\2\2\u02b3"+
"\u02b5\7a\2\2\u02b4\u02b6\5T+\2\u02b5\u02b4\3\2\2\2\u02b5\u02b6\3\2\2"+
"\2\u02b6Q\3\2\2\2\u02b7\u02b8\7_\2\2\u02b8\u02bd\5V,\2\u02b9\u02ba\7\6"+
"\2\2\u02ba\u02bc\5V,\2\u02bb\u02b9\3\2\2\2\u02bc\u02bf\3\2\2\2\u02bd\u02bb"+
"\3\2\2\2\u02bd\u02be\3\2\2\2\u02beS\3\2\2\2\u02bf\u02bd\3\2\2\2\u02c0"+
"\u02d8\5V,\2\u02c1\u02c2\7`\2\2\u02c2\u02d8\5V,\2\u02c3\u02c4\5V,\2\u02c4"+
"\u02c5\7\6\2\2\u02c5\u02c6\7p\2\2\u02c6\u02d8\3\2\2\2\u02c7\u02c8\7\b"+
"\2\2\u02c8\u02c9\5V,\2\u02c9\u02ca\7\t\2\2\u02ca\u02cb\7\6\2\2\u02cb\u02cc"+
"\7p\2\2\u02cc\u02d8\3\2\2\2\u02cd\u02ce\7\b\2\2\u02ce\u02cf\5V,\2\u02cf"+
"\u02d0\7\6\2\2\u02d0\u02d1\7p\2\2\u02d1\u02d2\7\t\2\2\u02d2\u02d8\3\2"+
"\2\2\u02d3\u02d4\7\b\2\2\u02d4\u02d5\5V,\2\u02d5\u02d6\7\t\2\2\u02d6\u02d8"+
"\3\2\2\2\u02d7\u02c0\3\2\2\2\u02d7\u02c1\3\2\2\2\u02d7\u02c3\3\2\2\2\u02d7"+
"\u02c7\3\2\2\2\u02d7\u02cd\3\2\2\2\u02d7\u02d3\3\2\2\2\u02d8U\3\2\2\2"+
"\u02d9\u02da\b,\1\2\u02da\u02db\7\61\2\2\u02db\u02dc\5V,\2\u02dc\u02dd"+
"\7\62\2\2\u02dd\u02e8\3\2\2\2\u02de\u02df\t\13\2\2\u02df\u02e8\5V,\n\u02e0"+
"\u02e8\7p\2\2\u02e1\u02e8\7q\2\2\u02e2\u02e3\7\n\2\2\u02e3\u02e4\7p\2"+
"\2\u02e4\u02e8\7\13\2\2\u02e5\u02e8\7g\2\2\u02e6\u02e8\7e\2\2\u02e7\u02d9"+
"\3\2\2\2\u02e7\u02de\3\2\2\2\u02e7\u02e0\3\2\2\2\u02e7\u02e1\3\2\2\2\u02e7"+
"\u02e2\3\2\2\2\u02e7\u02e5\3\2\2\2\u02e7\u02e6\3\2\2\2\u02e8\u02f7\3\2"+
"\2\2\u02e9\u02ea\f\f\2\2\u02ea\u02eb\7\65\2\2\u02eb\u02f6\5V,\r\u02ec"+
"\u02ed\f\13\2\2\u02ed\u02ee\t\6\2\2\u02ee\u02f6\5V,\f\u02ef\u02f0\f\t"+
"\2\2\u02f0\u02f1\t\f\2\2\u02f1\u02f6\5V,\n\u02f2\u02f3\f\b\2\2\u02f3\u02f4"+
"\t\b\2\2\u02f4\u02f6\5V,\t\u02f5\u02e9\3\2\2\2\u02f5\u02ec\3\2\2\2\u02f5"+
"\u02ef\3\2\2\2\u02f5\u02f2\3\2\2\2\u02f6\u02f9\3\2\2\2\u02f7\u02f5\3\2"+
"\2\2\u02f7\u02f8\3\2\2\2\u02f8W\3\2\2\2\u02f9\u02f7\3\2\2\2Lbk|\u0084"+
"\u008b\u0099\u009f\u00a4\u00aa\u00af\u00b8\u00bf\u00c4\u00cc\u00d3\u00db"+
"\u00f5\u00fa\u0107\u010f\u0118\u011c\u0121\u0128\u0135\u013a\u0146\u0154"+
"\u0167\u0170\u0177\u017c\u0180\u0182\u0188\u018f\u0192\u019a\u019d\u01a0"+
"\u01aa\u01b1\u01b8\u01be\u01c0\u01c8\u01ce\u01da\u01e8\u01ee\u01f8\u0204"+
"\u020c\u0223\u022d\u0231\u0263\u026d\u026f\u0277\u027c\u0286\u0298\u029a"+
"\u02a0\u02a8\u02ae\u02b1\u02b5\u02bd\u02d7\u02e7\u02f5\u02f7";
public static final ATN _ATN =
new ATNDeserializer().deserialize(_serializedATN.toCharArray());
static {

View File

@ -1,5 +1,7 @@
// Generated from /Users/jespergravgaard/c64/kickc/src/main/java/dk/camelot64/kickc/parser/KickC.g4 by ANTLR 4.7
package dk.camelot64.kickc.parser;
import org.antlr.v4.runtime.tree.ParseTreeVisitor;
/**

View File

@ -0,0 +1,34 @@
package dk.camelot64.kickc.parser;
import java.util.List;
/**
* State used to control lexing/parsing
*/
public class ParserState {
/** Names of typedefs. Used by lexer to know the difference between normal value IDENTIFIERS and TYPEIDENTIFIERS */
List<String> typedefs;
/** True whenever the lexer/parser is parsing ASM. Enables/disables a lexer rules that might interfere.*/
boolean isAsm;
public ParserState() {
}
public void addTypeDef(String identifier) {
typedefs.add(identifier);
}
public boolean isTypedef(String identifier) {
return typedefs.contains(identifier);
}
public boolean isAsm() {
return isAsm;
}
public void setAsm(boolean asm) {
isAsm = asm;
}
}

View File

@ -37,7 +37,9 @@ public class TestTypedefParser {
*/
private String parseExprTypedef(String expr) {
final CharStream fileStream = CharStreams.fromString(expr);
TypedefLexer lexer = new TypedefLexer(fileStream);
// typedefs shared between lexer and parser
List<String> typedefs = new ArrayList<>();
TypedefLexer lexer = new TypedefLexer(fileStream, typedefs);
lexer.addErrorListener(new BaseErrorListener() {
@Override
public void syntaxError(
@ -51,7 +53,7 @@ public class TestTypedefParser {
}
});
CommonTokenStream tokenStream = new CommonTokenStream(lexer);
TypedefParser parser = new TypedefParser(tokenStream);
TypedefParser parser = new TypedefParser(tokenStream, typedefs);
parser.setBuildParseTree(true);
parser.addErrorListener(new BaseErrorListener() {
@Override

View File

@ -11,17 +11,33 @@
grammar Typedef;
@parser::header {
@header {
import java.util.ArrayList;
import java.util.List;
}
@parser::members {
static List<String> typedefs = new ArrayList<>(); ;
List<String> typedefs;
public TypedefParser(TokenStream input, List<String> typedefs) {
this(input);
this.typedefs = typedefs;
}
}
@lexer::members {
List<String> typedefs;
public TypedefLexer(CharStream input, List<String> typedefs) {
this(input);
this.typedefs = typedefs;
}
}
stmtSeq
: { typedefs.clear(); } stmt*
: stmt*
;
stmt
@ -43,8 +59,8 @@ typeName
;
SIMPLETYPE: 'char' | 'int';
IDENTIFIER: [a-zA-Z_]+ {!TypedefParser.typedefs.contains(getText())}?;
TYPEIDENTIFIER: [a-zA-Z_]+ {TypedefParser.typedefs.contains(getText())}?;
IDENTIFIER: [a-zA-Z_]+ {!typedefs.contains(getText())}?;
TYPEIDENTIFIER: [a-zA-Z_]+ {typedefs.contains(getText())}?;
WHITESPACE
: [ \t\r\n]+
-> skip

View File

@ -1,5 +1,9 @@
// Generated from /Users/jespergravgaard/c64/kickc/src/test/java/dk/camelot64/kickc/parsing/typedef/Typedef.g4 by ANTLR 4.7
package dk.camelot64.kickc.parsing.typedef;
import java.util.ArrayList;
import java.util.List;
import org.antlr.v4.runtime.Lexer;
import org.antlr.v4.runtime.CharStream;
import org.antlr.v4.runtime.Token;
@ -73,6 +77,15 @@ public class TypedefLexer extends Lexer {
}
List<String> typedefs;
public TypedefLexer(CharStream input, List<String> typedefs) {
this(input);
this.typedefs = typedefs;
}
public TypedefLexer(CharStream input) {
super(input);
_interp = new LexerATNSimulator(this,_ATN,_decisionToDFA,_sharedContextCache);
@ -109,14 +122,14 @@ public class TypedefLexer extends Lexer {
private boolean IDENTIFIER_sempred(RuleContext _localctx, int predIndex) {
switch (predIndex) {
case 0:
return !TypedefParser.typedefs.contains(getText());
return !typedefs.contains(getText());
}
return true;
}
private boolean TYPEIDENTIFIER_sempred(RuleContext _localctx, int predIndex) {
switch (predIndex) {
case 1:
return TypedefParser.typedefs.contains(getText());
return typedefs.contains(getText());
}
return true;
}

View File

@ -82,7 +82,13 @@ public class TypedefParser extends Parser {
public ATN getATN() { return _ATN; }
static List<String> typedefs = new ArrayList<>(); ;
List<String> typedefs;
public TypedefParser(TokenStream input, List<String> typedefs) {
this(input);
this.typedefs = typedefs;
}
public TypedefParser(TokenStream input) {
super(input);
@ -121,18 +127,17 @@ public class TypedefParser extends Parser {
try {
enterOuterAlt(_localctx, 1);
{
typedefs.clear();
setState(12);
setState(11);
_errHandler.sync(this);
_la = _input.LA(1);
while ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << T__0) | (1L << T__2) | (1L << T__4) | (1L << IDENTIFIER))) != 0)) {
{
{
setState(9);
setState(8);
stmt();
}
}
setState(14);
setState(13);
_errHandler.sync(this);
_la = _input.LA(1);
}
@ -205,20 +210,20 @@ public class TypedefParser extends Parser {
StmtContext _localctx = new StmtContext(_ctx, getState());
enterRule(_localctx, 2, RULE_stmt);
try {
setState(24);
setState(23);
_errHandler.sync(this);
switch (_input.LA(1)) {
case T__0:
_localctx = new StmtTypeDefContext(_localctx);
enterOuterAlt(_localctx, 1);
{
setState(15);
setState(14);
match(T__0);
setState(16);
setState(15);
typeName();
setState(17);
setState(16);
((StmtTypeDefContext)_localctx).IDENTIFIER = match(IDENTIFIER);
setState(18);
setState(17);
match(T__1);
typedefs.add((((StmtTypeDefContext)_localctx).IDENTIFIER!=null?((StmtTypeDefContext)_localctx).IDENTIFIER.getText():null));
}
@ -229,9 +234,9 @@ public class TypedefParser extends Parser {
_localctx = new StmtExprContext(_localctx);
enterOuterAlt(_localctx, 2);
{
setState(21);
setState(20);
expr(0);
setState(22);
setState(21);
match(T__1);
}
break;
@ -376,7 +381,7 @@ public class TypedefParser extends Parser {
int _alt;
enterOuterAlt(_localctx, 1);
{
setState(39);
setState(38);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,2,_ctx) ) {
case 1:
@ -385,13 +390,13 @@ public class TypedefParser extends Parser {
_ctx = _localctx;
_prevctx = _localctx;
setState(27);
setState(26);
match(T__2);
setState(28);
setState(27);
typeName();
setState(29);
setState(28);
match(T__3);
setState(30);
setState(29);
expr(5);
}
break;
@ -400,7 +405,7 @@ public class TypedefParser extends Parser {
_localctx = new ExprValueNameContext(_localctx);
_ctx = _localctx;
_prevctx = _localctx;
setState(32);
setState(31);
match(IDENTIFIER);
}
break;
@ -409,11 +414,11 @@ public class TypedefParser extends Parser {
_localctx = new ExprParenthesisContext(_localctx);
_ctx = _localctx;
_prevctx = _localctx;
setState(33);
setState(32);
match(T__2);
setState(34);
setState(33);
expr(0);
setState(35);
setState(34);
match(T__3);
}
break;
@ -422,15 +427,15 @@ public class TypedefParser extends Parser {
_localctx = new ExprAddressOfContext(_localctx);
_ctx = _localctx;
_prevctx = _localctx;
setState(37);
setState(36);
match(T__4);
setState(38);
setState(37);
expr(2);
}
break;
}
_ctx.stop = _input.LT(-1);
setState(46);
setState(45);
_errHandler.sync(this);
_alt = getInterpreter().adaptivePredict(_input,3,_ctx);
while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) {
@ -441,16 +446,16 @@ public class TypedefParser extends Parser {
{
_localctx = new ExprAndContext(new ExprContext(_parentctx, _parentState));
pushNewRecursionContext(_localctx, _startState, RULE_expr);
setState(41);
setState(40);
if (!(precpred(_ctx, 1))) throw new FailedPredicateException(this, "precpred(_ctx, 1)");
setState(42);
setState(41);
match(T__4);
setState(43);
setState(42);
expr(2);
}
}
}
setState(48);
setState(47);
_errHandler.sync(this);
_alt = getInterpreter().adaptivePredict(_input,3,_ctx);
}
@ -517,14 +522,14 @@ public class TypedefParser extends Parser {
TypeNameContext _localctx = new TypeNameContext(_ctx, getState());
enterRule(_localctx, 6, RULE_typeName);
try {
setState(51);
setState(50);
_errHandler.sync(this);
switch (_input.LA(1)) {
case SIMPLETYPE:
_localctx = new TypeNameSimpleContext(_localctx);
enterOuterAlt(_localctx, 1);
{
setState(49);
setState(48);
match(SIMPLETYPE);
}
break;
@ -532,7 +537,7 @@ public class TypedefParser extends Parser {
_localctx = new TypeNameTypedefContext(_localctx);
enterOuterAlt(_localctx, 2);
{
setState(50);
setState(49);
match(TYPEIDENTIFIER);
}
break;
@ -567,21 +572,21 @@ public class TypedefParser extends Parser {
}
public static final String _serializedATN =
"\3\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964\3\138\4\2\t\2\4\3\t"+
"\3\4\4\t\4\4\5\t\5\3\2\3\2\7\2\r\n\2\f\2\16\2\20\13\2\3\3\3\3\3\3\3\3"+
"\3\3\3\3\3\3\3\3\3\3\5\3\33\n\3\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\3\4\3\4\7\4/\n\4\f\4\16\4\62\13\4\3\5\3\5"+
"\5\5\66\n\5\3\5\2\3\6\6\2\4\6\b\2\2\2:\2\n\3\2\2\2\4\32\3\2\2\2\6)\3\2"+
"\2\2\b\65\3\2\2\2\n\16\b\2\1\2\13\r\5\4\3\2\f\13\3\2\2\2\r\20\3\2\2\2"+
"\16\f\3\2\2\2\16\17\3\2\2\2\17\3\3\2\2\2\20\16\3\2\2\2\21\22\7\3\2\2\22"+
"\23\5\b\5\2\23\24\7\t\2\2\24\25\7\4\2\2\25\26\b\3\1\2\26\33\3\2\2\2\27"+
"\30\5\6\4\2\30\31\7\4\2\2\31\33\3\2\2\2\32\21\3\2\2\2\32\27\3\2\2\2\33"+
"\5\3\2\2\2\34\35\b\4\1\2\35\36\7\5\2\2\36\37\5\b\5\2\37 \7\6\2\2 !\5\6"+
"\4\7!*\3\2\2\2\"*\7\t\2\2#$\7\5\2\2$%\5\6\4\2%&\7\6\2\2&*\3\2\2\2\'(\7"+
"\7\2\2(*\5\6\4\4)\34\3\2\2\2)\"\3\2\2\2)#\3\2\2\2)\'\3\2\2\2*\60\3\2\2"+
"\2+,\f\3\2\2,-\7\7\2\2-/\5\6\4\4.+\3\2\2\2/\62\3\2\2\2\60.\3\2\2\2\60"+
"\61\3\2\2\2\61\7\3\2\2\2\62\60\3\2\2\2\63\66\7\b\2\2\64\66\7\n\2\2\65"+
"\63\3\2\2\2\65\64\3\2\2\2\66\t\3\2\2\2\7\16\32)\60\65";
"\3\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964\3\13\67\4\2\t\2\4\3"+
"\t\3\4\4\t\4\4\5\t\5\3\2\7\2\f\n\2\f\2\16\2\17\13\2\3\3\3\3\3\3\3\3\3"+
"\3\3\3\3\3\3\3\3\3\5\3\32\n\3\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\3\4\3\4\7\4.\n\4\f\4\16\4\61\13\4\3\5\3\5\5"+
"\5\65\n\5\3\5\2\3\6\6\2\4\6\b\2\2\29\2\r\3\2\2\2\4\31\3\2\2\2\6(\3\2\2"+
"\2\b\64\3\2\2\2\n\f\5\4\3\2\13\n\3\2\2\2\f\17\3\2\2\2\r\13\3\2\2\2\r\16"+
"\3\2\2\2\16\3\3\2\2\2\17\r\3\2\2\2\20\21\7\3\2\2\21\22\5\b\5\2\22\23\7"+
"\t\2\2\23\24\7\4\2\2\24\25\b\3\1\2\25\32\3\2\2\2\26\27\5\6\4\2\27\30\7"+
"\4\2\2\30\32\3\2\2\2\31\20\3\2\2\2\31\26\3\2\2\2\32\5\3\2\2\2\33\34\b"+
"\4\1\2\34\35\7\5\2\2\35\36\5\b\5\2\36\37\7\6\2\2\37 \5\6\4\7 )\3\2\2\2"+
"!)\7\t\2\2\"#\7\5\2\2#$\5\6\4\2$%\7\6\2\2%)\3\2\2\2&\'\7\7\2\2\')\5\6"+
"\4\4(\33\3\2\2\2(!\3\2\2\2(\"\3\2\2\2(&\3\2\2\2)/\3\2\2\2*+\f\3\2\2+,"+
"\7\7\2\2,.\5\6\4\4-*\3\2\2\2.\61\3\2\2\2/-\3\2\2\2/\60\3\2\2\2\60\7\3"+
"\2\2\2\61/\3\2\2\2\62\65\7\b\2\2\63\65\7\n\2\2\64\62\3\2\2\2\64\63\3\2"+
"\2\2\65\t\3\2\2\2\7\r\31(/\64";
public static final ATN _ATN =
new ATNDeserializer().deserialize(_serializedATN.toCharArray());
static {

View File

@ -37,6 +37,12 @@ public class TestPrograms {
}
@Test
public void testParseNegatedStructRef() throws IOException, URISyntaxException {
compileAndCompare("parse-negated-struct-ref");
}
// TODO: Fix cast of constant pointer https://gitlab.com/camelot/kickc/issues/288
/*
@Test
@ -47,7 +53,7 @@ public class TestPrograms {
@Test
public void testLongPointer0() throws IOException, URISyntaxException {
compileAndCompare("pointer-anding.kc");
compileAndCompare("pointer-anding");
}
@Test

View File

@ -0,0 +1,23 @@
// Test parsing a negated struct reference - which causes problems with the ASMREL labels !a++
// https://gitlab.com/camelot/kickc/issues/266
struct A {
char b;
};
struct A aa = { 1 };
void main() {
const char* SCREEN = 0x0400;
struct A* a = &aa;
// A negated struct reference!
if(!a->b) {
*SCREEN = 'a';
}
// ASMREL labels
asm {
jmp !a+
!a:
}
}

View File

@ -0,0 +1,24 @@
// Test parsing a negated struct reference - which causes problems with the ASMREL labels !a++
// https://gitlab.com/camelot/kickc/issues/266
.pc = $801 "Basic"
:BasicUpstart(bbegin)
.pc = $80d "Program"
.label aa_b = 2
bbegin:
lda #1
sta.z aa_b
jsr main
rts
main: {
.label SCREEN = $400
.label a = aa_b
lda #0
cmp a
bne !a+
lda #'a'
sta SCREEN
// ASMREL labels
jmp !a+
!a:
rts
}

View File

@ -0,0 +1,21 @@
@begin: scope:[] from
[0] (byte) aa_b#0 ← (byte) 1
to:@1
@1: scope:[] from @begin
[1] phi()
[2] call main
to:@end
@end: scope:[] from @1
[3] phi()
main: scope:[main] from @1
[4] if((byte) 0!=*((byte*)(const struct A*) main::a#0)) goto main::@1
to:main::@2
main::@2: scope:[main] from main
[5] *((const byte*) main::SCREEN#0) ← (byte) 'a'
to:main::@1
main::@1: scope:[main] from main main::@2
asm { jmp!a+ !a: }
to:main::@return
main::@return: scope:[main] from main::@1
[7] return
to:@return

View File

@ -0,0 +1,383 @@
Setting inferred volatile on symbol affected by address-of (struct A*~) main::$0 ← & (struct A) aa
Created struct value member variable (byte) aa_b
Converted struct value to member variables (struct A) aa
Adding struct value list initializer (byte) aa_b ← (number) 1
Rewriting struct pointer member access *((struct A*) main::a).b
Warning! Adding boolean cast to non-boolean sub-expression *((byte*) main::$3)
Adding versioned struct unwinding for (struct A) aa#0
CONTROL FLOW GRAPH SSA
@begin: scope:[] from
(byte) aa_b#0 ← (number) 1
(struct A) aa#0 ← struct-unwound {(byte) aa_b#0}
to:@1
main: scope:[main] from @1
(struct A) aa#1 ← phi( @1/(struct A) aa#2 )
(byte*) main::SCREEN#0 ← ((byte*)) (number) $400
(struct A*~) main::$0 ← & (struct A) aa#1
(struct A*) main::a#0 ← (struct A*~) main::$0
(byte*) main::$3 ← (byte*)(struct A*) main::a#0 + (const byte) OFFSET_STRUCT_A_B
(bool~) main::$4 ← (number) 0 != *((byte*) main::$3)
(bool~) main::$1 ← ! (bool~) main::$4
(bool~) main::$2 ← ! (bool~) main::$1
if((bool~) main::$2) goto main::@1
to:main::@2
main::@1: scope:[main] from main main::@2
asm { jmp!a+ !a: }
to:main::@return
main::@2: scope:[main] from main
*((byte*) main::SCREEN#0) ← (byte) 'a'
to:main::@1
main::@return: scope:[main] from main::@1
return
to:@return
@1: scope:[] from @begin
(struct A) aa#2 ← phi( @begin/(struct A) aa#0 )
call main
to:@2
@2: scope:[] from @1
to:@end
@end: scope:[] from @2
SYMBOL TABLE SSA
(label) @1
(label) @2
(label) @begin
(label) @end
(byte) A::b
(const byte) OFFSET_STRUCT_A_B = (byte) 0
(struct A) aa
(struct A) aa#0
(struct A) aa#1
(struct A) aa#2
(byte) aa_b
(byte) aa_b#0
(void()) main()
(struct A*~) main::$0
(bool~) main::$1
(bool~) main::$2
(byte*) main::$3
(bool~) main::$4
(label) main::@1
(label) main::@2
(label) main::@return
(byte*) main::SCREEN
(byte*) main::SCREEN#0
(struct A*) main::a
(struct A*) main::a#0
Adding number conversion cast (unumber) 1 in (byte) aa_b#0 ← (number) 1
Adding number conversion cast (unumber) 0 in (bool~) main::$4 ← (number) 0 != *((byte*) main::$3)
Successful SSA optimization PassNAddNumberTypeConversions
Inlining cast (byte) aa_b#0 ← (unumber)(number) 1
Inlining cast (byte*) main::SCREEN#0 ← (byte*)(number) $400
Successful SSA optimization Pass2InlineCast
Simplifying constant integer cast 1
Simplifying constant pointer cast (byte*) 1024
Simplifying constant integer cast 0
Successful SSA optimization PassNCastSimplification
Finalized unsigned number type (byte) 1
Finalized unsigned number type (byte) 0
Successful SSA optimization PassNFinalizeNumberTypeConversions
Inversing boolean not [8] (bool~) main::$1 ← (byte) 0 == *((byte*) main::$3) from [7] (bool~) main::$4 ← (byte) 0 != *((byte*) main::$3)
Inversing boolean not [9] (bool~) main::$2 ← (byte) 0 != *((byte*) main::$3) from [8] (bool~) main::$1 ← (byte) 0 == *((byte*) main::$3)
Successful SSA optimization Pass2UnaryNotSimplification
Alias (struct A*) main::a#0 = (struct A*~) main::$0
Alias (struct A) aa#0 = (struct A) aa#2
Successful SSA optimization Pass2AliasElimination
Identical Phi Values (struct A) aa#1 (struct A) aa#0
Successful SSA optimization Pass2IdenticalPhiElimination
Simple Condition (bool~) main::$2 [10] if((byte) 0!=*((byte*) main::$3)) goto main::@1
Successful SSA optimization Pass2ConditionalJumpSimplification
Rewriting struct address-of to first member [4] (struct A*) main::a#0 ← (struct A*)&(byte) aa_b#0
Successful SSA optimization PassNStructAddressOfRewriting
Constant right-side identified [4] (struct A*) main::a#0 ← (struct A*)&(byte) aa_b#0
Successful SSA optimization Pass2ConstantRValueConsolidation
Constant (const byte*) main::SCREEN#0 = (byte*) 1024
Constant (const struct A*) main::a#0 = (struct A*)&aa_b#0
Successful SSA optimization Pass2ConstantIdentification
Constant value identified (byte*)main::a#0 in [6] (byte*) main::$3 ← (byte*)(const struct A*) main::a#0 + (const byte) OFFSET_STRUCT_A_B
Successful SSA optimization Pass2ConstantValues
Converting *(pointer+n) to pointer[n] [10] if((byte) 0!=*((byte*) main::$3)) goto main::@1 -- *((byte*)main::a#0 + OFFSET_STRUCT_A_B)
Successful SSA optimization Pass2InlineDerefIdx
Simplifying expression containing zero (byte*)main::a#0 in [6] (byte*) main::$3 ← (byte*)(const struct A*) main::a#0 + (const byte) OFFSET_STRUCT_A_B
Simplifying expression containing zero (byte*)main::a#0 in [10] if((byte) 0!=*((byte*)(const struct A*) main::a#0 + (const byte) OFFSET_STRUCT_A_B)) goto main::@1
Successful SSA optimization PassNSimplifyExpressionWithZero
Eliminating unused variable (struct A) aa#0 and assignment [1] (struct A) aa#0 ← struct-unwound {(byte) aa_b#0}
Eliminating unused variable (byte*) main::$3 and assignment [2] (byte*) main::$3 ← (byte*)(const struct A*) main::a#0
Eliminating unused constant (const byte) OFFSET_STRUCT_A_B
Successful SSA optimization PassNEliminateUnusedVars
Adding NOP phi() at start of @1
Adding NOP phi() at start of @2
Adding NOP phi() at start of @end
CALL GRAPH
Calls in [] to main:2
Created 0 initial phi equivalence classes
Coalesced down to 0 phi equivalence classes
Culled Empty Block (label) @2
Adding NOP phi() at start of @1
Adding NOP phi() at start of @end
FINAL CONTROL FLOW GRAPH
@begin: scope:[] from
[0] (byte) aa_b#0 ← (byte) 1
to:@1
@1: scope:[] from @begin
[1] phi()
[2] call main
to:@end
@end: scope:[] from @1
[3] phi()
main: scope:[main] from @1
[4] if((byte) 0!=*((byte*)(const struct A*) main::a#0)) goto main::@1
to:main::@2
main::@2: scope:[main] from main
[5] *((const byte*) main::SCREEN#0) ← (byte) 'a'
to:main::@1
main::@1: scope:[main] from main main::@2
asm { jmp!a+ !a: }
to:main::@return
main::@return: scope:[main] from main::@1
[7] return
to:@return
VARIABLE REGISTER WEIGHTS
(byte) A::b
(struct A) aa
(byte) aa_b
(byte) aa_b#0 20.0
(void()) main()
(byte*) main::SCREEN
(struct A*) main::a
Initial phi equivalence classes
Complete equivalence classes
[ aa_b#0 ]
Allocated zp ZP_BYTE:2 [ aa_b#0 ]
INITIAL ASM
Target platform is c64basic
// File Comments
// Test parsing a negated struct reference - which causes problems with the ASMREL labels !a++
// https://gitlab.com/camelot/kickc/issues/266
// Upstart
.pc = $801 "Basic"
:BasicUpstart(bbegin)
.pc = $80d "Program"
// Global Constants & labels
.label aa_b = 2
// @begin
bbegin:
// [0] (byte) aa_b#0 ← (byte) 1 -- vbuz1=vbuc1
lda #1
sta.z aa_b
// [1] phi from @begin to @1 [phi:@begin->@1]
b1_from_bbegin:
jmp b1
// @1
b1:
// [2] call main
jsr main
// [3] phi from @1 to @end [phi:@1->@end]
bend_from_b1:
jmp bend
// @end
bend:
// main
main: {
.label SCREEN = $400
.label a = aa_b
// [4] if((byte) 0!=*((byte*)(const struct A*) main::a#0)) goto main::@1 -- vbuc1_neq__deref_pbuc2_then_la1
lda #0
cmp a
bne b1
jmp b2
// main::@2
b2:
// [5] *((const byte*) main::SCREEN#0) ← (byte) 'a' -- _deref_pbuc1=vbuc2
lda #'a'
sta SCREEN
jmp b1
// main::@1
b1:
// asm { jmp!a+ !a: }
// ASMREL labels
jmp !a+
!a:
jmp breturn
// main::@return
breturn:
// [7] return
rts
}
// File Data
REGISTER UPLIFT POTENTIAL REGISTERS
Statement [0] (byte) aa_b#0 ← (byte) 1 [ ] ( [ ] ) always clobbers reg byte a
Statement [4] if((byte) 0!=*((byte*)(const struct A*) main::a#0)) goto main::@1 [ ] ( main:2 [ ] ) always clobbers reg byte a
Statement [5] *((const byte*) main::SCREEN#0) ← (byte) 'a' [ ] ( main:2 [ ] ) always clobbers reg byte a
Potential registers zp ZP_BYTE:2 [ aa_b#0 ] : zp ZP_BYTE:2 ,
REGISTER UPLIFT SCOPES
Uplift Scope [] 20: zp ZP_BYTE:2 [ aa_b#0 ]
Uplift Scope [A]
Uplift Scope [main]
Uplifting [] best 49 combination zp ZP_BYTE:2 [ aa_b#0 ]
Uplifting [A] best 49 combination
Uplifting [main] best 49 combination
Attempting to uplift remaining variables inzp ZP_BYTE:2 [ aa_b#0 ]
Uplifting [] best 49 combination zp ZP_BYTE:2 [ aa_b#0 ]
ASSEMBLER BEFORE OPTIMIZATION
// File Comments
// Test parsing a negated struct reference - which causes problems with the ASMREL labels !a++
// https://gitlab.com/camelot/kickc/issues/266
// Upstart
.pc = $801 "Basic"
:BasicUpstart(bbegin)
.pc = $80d "Program"
// Global Constants & labels
.label aa_b = 2
// @begin
bbegin:
// [0] (byte) aa_b#0 ← (byte) 1 -- vbuz1=vbuc1
lda #1
sta.z aa_b
// [1] phi from @begin to @1 [phi:@begin->@1]
b1_from_bbegin:
jmp b1
// @1
b1:
// [2] call main
jsr main
// [3] phi from @1 to @end [phi:@1->@end]
bend_from_b1:
jmp bend
// @end
bend:
// main
main: {
.label SCREEN = $400
.label a = aa_b
// [4] if((byte) 0!=*((byte*)(const struct A*) main::a#0)) goto main::@1 -- vbuc1_neq__deref_pbuc2_then_la1
lda #0
cmp a
bne b1
jmp b2
// main::@2
b2:
// [5] *((const byte*) main::SCREEN#0) ← (byte) 'a' -- _deref_pbuc1=vbuc2
lda #'a'
sta SCREEN
jmp b1
// main::@1
b1:
// asm { jmp!a+ !a: }
// ASMREL labels
jmp !a+
!a:
jmp breturn
// main::@return
breturn:
// [7] return
rts
}
// File Data
ASSEMBLER OPTIMIZATIONS
Removing instruction jmp b1
Removing instruction jmp bend
Removing instruction jmp b2
Removing instruction jmp b1
Removing instruction jmp breturn
Succesful ASM optimization Pass5NextJumpElimination
Removing instruction b1_from_bbegin:
Removing instruction bend_from_b1:
Succesful ASM optimization Pass5RedundantLabelElimination
Removing instruction b1:
Removing instruction bend:
Removing instruction b2:
Removing instruction breturn:
Succesful ASM optimization Pass5UnusedLabelElimination
Skipping double jump to !a+ in bne b1
Succesful ASM optimization Pass5DoubleJumpElimination
Adding RTS to root block
Succesful ASM optimization Pass5AddMainRts
Removing instruction b1:
Succesful ASM optimization Pass5UnusedLabelElimination
FINAL SYMBOL TABLE
(label) @1
(label) @begin
(label) @end
(byte) A::b
(struct A) aa
(byte) aa_b
(byte) aa_b#0 aa_b zp ZP_BYTE:2 20.0
(void()) main()
(label) main::@1
(label) main::@2
(label) main::@return
(byte*) main::SCREEN
(const byte*) main::SCREEN#0 SCREEN = (byte*) 1024
(struct A*) main::a
(const struct A*) main::a#0 a = (struct A*)&(byte) aa_b#0
zp ZP_BYTE:2 [ aa_b#0 ]
FINAL ASSEMBLER
Score: 40
// File Comments
// Test parsing a negated struct reference - which causes problems with the ASMREL labels !a++
// https://gitlab.com/camelot/kickc/issues/266
// Upstart
.pc = $801 "Basic"
:BasicUpstart(bbegin)
.pc = $80d "Program"
// Global Constants & labels
.label aa_b = 2
// @begin
bbegin:
// aa = { 1 }
// [0] (byte) aa_b#0 ← (byte) 1 -- vbuz1=vbuc1
lda #1
sta.z aa_b
// [1] phi from @begin to @1 [phi:@begin->@1]
// @1
// [2] call main
jsr main
rts
// [3] phi from @1 to @end [phi:@1->@end]
// @end
// main
main: {
.label SCREEN = $400
.label a = aa_b
// if(!a->b)
// [4] if((byte) 0!=*((byte*)(const struct A*) main::a#0)) goto main::@1 -- vbuc1_neq__deref_pbuc2_then_la1
lda #0
cmp a
bne !a+
// main::@2
// *SCREEN = 'a'
// [5] *((const byte*) main::SCREEN#0) ← (byte) 'a' -- _deref_pbuc1=vbuc2
lda #'a'
sta SCREEN
// main::@1
// asm
// asm { jmp!a+ !a: }
// ASMREL labels
jmp !a+
!a:
// main::@return
// }
// [7] return
rts
}
// File Data

View File

@ -0,0 +1,17 @@
(label) @1
(label) @begin
(label) @end
(byte) A::b
(struct A) aa
(byte) aa_b
(byte) aa_b#0 aa_b zp ZP_BYTE:2 20.0
(void()) main()
(label) main::@1
(label) main::@2
(label) main::@return
(byte*) main::SCREEN
(const byte*) main::SCREEN#0 SCREEN = (byte*) 1024
(struct A*) main::a
(const struct A*) main::a#0 a = (struct A*)&(byte) aa_b#0
zp ZP_BYTE:2 [ aa_b#0 ]

View File

@ -0,0 +1,61 @@
// Test binary ANDing pointers by Clay Cowgill
.pc = $801 "Basic"
:BasicUpstart(main)
.pc = $80d "Program"
.const SIZEOF_SIGNED_WORD = 2
main: {
.label _2 = 6
.label vram_ptr = 4
.label pos_ptr = 2
ldx #0
lda #<$428
sta.z vram_ptr
lda #>$428
sta.z vram_ptr+1
lda #<$400
sta.z pos_ptr
lda #>$400
sta.z pos_ptr+1
b1:
ldy #0
lda #<$55aa
sta (pos_ptr),y
iny
lda #>$55aa
sta (pos_ptr),y
ldy #0
lda (pos_ptr),y
and #<$aa55
sta.z _2
iny
lda (pos_ptr),y
and #>$aa55
sta.z _2+1
lda.z _2
ldy #0
sta (vram_ptr),y
inc.z vram_ptr
bne !+
inc.z vram_ptr+1
!:
ldy #1
lda (pos_ptr),y
// stores 0x00
ldy #0
sta (vram_ptr),y
inc.z vram_ptr
bne !+
inc.z vram_ptr+1
!:
lda #SIZEOF_SIGNED_WORD
clc
adc.z pos_ptr
sta.z pos_ptr
bcc !+
inc.z pos_ptr+1
!:
inx
cpx #3
bne b1
rts
}

View File

@ -0,0 +1,31 @@
@begin: scope:[] from
[0] phi()
to:@1
@1: scope:[] from @begin
[1] phi()
[2] call main
to:@end
@end: scope:[] from @1
[3] phi()
main: scope:[main] from @1
[4] phi()
to:main::@1
main::@1: scope:[main] from main main::@1
[5] (byte) main::i#2 ← phi( main/(byte) 0 main::@1/(byte) main::i#1 )
[5] (byte*) main::vram_ptr#3 ← phi( main/(byte*) 1064 main::@1/(byte*) main::vram_ptr#2 )
[5] (signed word*) main::pos_ptr#2 ← phi( main/(signed word*) 1024 main::@1/(signed word*) main::pos_ptr#1 )
[6] *((signed word*) main::pos_ptr#2) ← (signed word) $55aa
[7] (signed word~) main::$2 ← *((signed word*) main::pos_ptr#2) & (signed word) $aa55
[8] (byte~) main::$3 ← < (signed word~) main::$2
[9] *((byte*) main::vram_ptr#3) ← (byte~) main::$3
[10] (byte*) main::vram_ptr#1 ← ++ (byte*) main::vram_ptr#3
[11] (byte~) main::$4 ← > *((signed word*) main::pos_ptr#2)
[12] *((byte*) main::vram_ptr#1) ← (byte~) main::$4
[13] (byte*) main::vram_ptr#2 ← ++ (byte*) main::vram_ptr#1
[14] (signed word*) main::pos_ptr#1 ← (signed word*) main::pos_ptr#2 + (const byte) SIZEOF_SIGNED_WORD
[15] (byte) main::i#1 ← ++ (byte) main::i#2
[16] if((byte) main::i#1!=(byte) 3) goto main::@1
to:main::@return
main::@return: scope:[main] from main::@1
[17] return
to:@return

View File

@ -0,0 +1,644 @@
Fixing pointer increment (signed word*) main::pos_ptr ← ++ (signed word*) main::pos_ptr
Culled Empty Block (label) main::@2
CONTROL FLOW GRAPH SSA
@begin: scope:[] from
to:@1
main: scope:[main] from @1
(signed word*) main::pos_ptr#0 ← ((signed word*)) (number) $400
(byte*) main::vram_ptr#0 ← ((byte*)) (number) $428
(byte) main::i#0 ← (byte) 0
to:main::@1
main::@1: scope:[main] from main main::@1
(byte) main::i#2 ← phi( main/(byte) main::i#0 main::@1/(byte) main::i#1 )
(byte*) main::vram_ptr#3 ← phi( main/(byte*) main::vram_ptr#0 main::@1/(byte*) main::vram_ptr#2 )
(signed word*) main::pos_ptr#2 ← phi( main/(signed word*) main::pos_ptr#0 main::@1/(signed word*) main::pos_ptr#1 )
(signed word~) main::$0 ← ((signed word)) (number) $55aa
*((signed word*) main::pos_ptr#2) ← (signed word~) main::$0
(signed word~) main::$1 ← ((signed word)) (number) $aa55
(signed word~) main::$2 ← *((signed word*) main::pos_ptr#2) & (signed word~) main::$1
(byte~) main::$3 ← < (signed word~) main::$2
*((byte*) main::vram_ptr#3) ← (byte~) main::$3
(byte*) main::vram_ptr#1 ← ++ (byte*) main::vram_ptr#3
(byte~) main::$4 ← > *((signed word*) main::pos_ptr#2)
*((byte*) main::vram_ptr#1) ← (byte~) main::$4
(byte*) main::vram_ptr#2 ← ++ (byte*) main::vram_ptr#1
(signed word*) main::pos_ptr#1 ← (signed word*) main::pos_ptr#2 + (const byte) SIZEOF_SIGNED_WORD
(byte) main::i#1 ← (byte) main::i#2 + rangenext(0,2)
(bool~) main::$5 ← (byte) main::i#1 != rangelast(0,2)
if((bool~) main::$5) goto main::@1
to:main::@return
main::@return: scope:[main] from main::@1
return
to:@return
@1: scope:[] from @begin
call main
to:@2
@2: scope:[] from @1
to:@end
@end: scope:[] from @2
SYMBOL TABLE SSA
(label) @1
(label) @2
(label) @begin
(label) @end
(const byte) SIZEOF_SIGNED_WORD = (byte) 2
(void()) main()
(signed word~) main::$0
(signed word~) main::$1
(signed word~) main::$2
(byte~) main::$3
(byte~) main::$4
(bool~) main::$5
(label) main::@1
(label) main::@return
(byte) main::i
(byte) main::i#0
(byte) main::i#1
(byte) main::i#2
(signed word*) main::pos_ptr
(signed word*) main::pos_ptr#0
(signed word*) main::pos_ptr#1
(signed word*) main::pos_ptr#2
(byte*) main::vram_ptr
(byte*) main::vram_ptr#0
(byte*) main::vram_ptr#1
(byte*) main::vram_ptr#2
(byte*) main::vram_ptr#3
Inlining cast (signed word*) main::pos_ptr#0 ← (signed word*)(number) $400
Inlining cast (byte*) main::vram_ptr#0 ← (byte*)(number) $428
Inlining cast (signed word~) main::$0 ← (signed word)(number) $55aa
Inlining cast (signed word~) main::$1 ← (signed word)(number) $aa55
Successful SSA optimization Pass2InlineCast
Simplifying constant pointer cast (signed word*) 1024
Simplifying constant pointer cast (byte*) 1064
Simplifying constant integer cast $55aa
Simplifying constant integer cast $aa55
Successful SSA optimization PassNCastSimplification
Simple Condition (bool~) main::$5 [17] if((byte) main::i#1!=rangelast(0,2)) goto main::@1
Successful SSA optimization Pass2ConditionalJumpSimplification
Constant (const signed word*) main::pos_ptr#0 = (signed word*) 1024
Constant (const byte*) main::vram_ptr#0 = (byte*) 1064
Constant (const byte) main::i#0 = 0
Constant (const signed word) main::$0 = $55aa
Constant (const signed word) main::$1 = $aa55
Successful SSA optimization Pass2ConstantIdentification
Resolved ranged next value [15] main::i#1 ← ++ main::i#2 to ++
Resolved ranged comparison value [17] if(main::i#1!=rangelast(0,2)) goto main::@1 to (number) 3
Adding number conversion cast (unumber) 3 in if((byte) main::i#1!=(number) 3) goto main::@1
Successful SSA optimization PassNAddNumberTypeConversions
Simplifying constant integer cast 3
Successful SSA optimization PassNCastSimplification
Finalized unsigned number type (byte) 3
Successful SSA optimization PassNFinalizeNumberTypeConversions
Inlining constant with var siblings (const signed word*) main::pos_ptr#0
Inlining constant with var siblings (const byte*) main::vram_ptr#0
Inlining constant with var siblings (const byte) main::i#0
Constant inlined main::vram_ptr#0 = (byte*) 1064
Constant inlined main::i#0 = (byte) 0
Constant inlined main::$1 = (signed word) $aa55
Constant inlined main::pos_ptr#0 = (signed word*) 1024
Constant inlined main::$0 = (signed word) $55aa
Successful SSA optimization Pass2ConstantInlining
Added new block during phi lifting main::@3(between main::@1 and main::@1)
Adding NOP phi() at start of @begin
Adding NOP phi() at start of @1
Adding NOP phi() at start of @2
Adding NOP phi() at start of @end
Adding NOP phi() at start of main
CALL GRAPH
Calls in [] to main:2
Created 3 initial phi equivalence classes
Coalesced [19] main::pos_ptr#3 ← main::pos_ptr#1
Coalesced [20] main::vram_ptr#4 ← main::vram_ptr#2
Coalesced [21] main::i#3 ← main::i#1
Coalesced down to 3 phi equivalence classes
Culled Empty Block (label) @2
Culled Empty Block (label) main::@3
Adding NOP phi() at start of @begin
Adding NOP phi() at start of @1
Adding NOP phi() at start of @end
Adding NOP phi() at start of main
FINAL CONTROL FLOW GRAPH
@begin: scope:[] from
[0] phi()
to:@1
@1: scope:[] from @begin
[1] phi()
[2] call main
to:@end
@end: scope:[] from @1
[3] phi()
main: scope:[main] from @1
[4] phi()
to:main::@1
main::@1: scope:[main] from main main::@1
[5] (byte) main::i#2 ← phi( main/(byte) 0 main::@1/(byte) main::i#1 )
[5] (byte*) main::vram_ptr#3 ← phi( main/(byte*) 1064 main::@1/(byte*) main::vram_ptr#2 )
[5] (signed word*) main::pos_ptr#2 ← phi( main/(signed word*) 1024 main::@1/(signed word*) main::pos_ptr#1 )
[6] *((signed word*) main::pos_ptr#2) ← (signed word) $55aa
[7] (signed word~) main::$2 ← *((signed word*) main::pos_ptr#2) & (signed word) $aa55
[8] (byte~) main::$3 ← < (signed word~) main::$2
[9] *((byte*) main::vram_ptr#3) ← (byte~) main::$3
[10] (byte*) main::vram_ptr#1 ← ++ (byte*) main::vram_ptr#3
[11] (byte~) main::$4 ← > *((signed word*) main::pos_ptr#2)
[12] *((byte*) main::vram_ptr#1) ← (byte~) main::$4
[13] (byte*) main::vram_ptr#2 ← ++ (byte*) main::vram_ptr#1
[14] (signed word*) main::pos_ptr#1 ← (signed word*) main::pos_ptr#2 + (const byte) SIZEOF_SIGNED_WORD
[15] (byte) main::i#1 ← ++ (byte) main::i#2
[16] if((byte) main::i#1!=(byte) 3) goto main::@1
to:main::@return
main::@return: scope:[main] from main::@1
[17] return
to:@return
VARIABLE REGISTER WEIGHTS
(void()) main()
(signed word~) main::$2 22.0
(byte~) main::$3 22.0
(byte~) main::$4 22.0
(byte) main::i
(byte) main::i#1 16.5
(byte) main::i#2 2.2
(signed word*) main::pos_ptr
(signed word*) main::pos_ptr#1 7.333333333333333
(signed word*) main::pos_ptr#2 6.111111111111112
(byte*) main::vram_ptr
(byte*) main::vram_ptr#1 11.0
(byte*) main::vram_ptr#2 5.5
(byte*) main::vram_ptr#3 6.6000000000000005
Initial phi equivalence classes
[ main::pos_ptr#2 main::pos_ptr#1 ]
[ main::vram_ptr#3 main::vram_ptr#2 ]
[ main::i#2 main::i#1 ]
Added variable main::$2 to zero page equivalence class [ main::$2 ]
Added variable main::$3 to zero page equivalence class [ main::$3 ]
Added variable main::vram_ptr#1 to zero page equivalence class [ main::vram_ptr#1 ]
Added variable main::$4 to zero page equivalence class [ main::$4 ]
Complete equivalence classes
[ main::pos_ptr#2 main::pos_ptr#1 ]
[ main::vram_ptr#3 main::vram_ptr#2 ]
[ main::i#2 main::i#1 ]
[ main::$2 ]
[ main::$3 ]
[ main::vram_ptr#1 ]
[ main::$4 ]
Allocated zp ZP_WORD:2 [ main::pos_ptr#2 main::pos_ptr#1 ]
Allocated zp ZP_WORD:4 [ main::vram_ptr#3 main::vram_ptr#2 ]
Allocated zp ZP_BYTE:6 [ main::i#2 main::i#1 ]
Allocated zp ZP_WORD:7 [ main::$2 ]
Allocated zp ZP_BYTE:9 [ main::$3 ]
Allocated zp ZP_WORD:10 [ main::vram_ptr#1 ]
Allocated zp ZP_BYTE:12 [ main::$4 ]
INITIAL ASM
Target platform is c64basic
// File Comments
// Test binary ANDing pointers by Clay Cowgill
// Upstart
.pc = $801 "Basic"
:BasicUpstart(bbegin)
.pc = $80d "Program"
// Global Constants & labels
.const SIZEOF_SIGNED_WORD = 2
// @begin
bbegin:
// [1] phi from @begin to @1 [phi:@begin->@1]
b1_from_bbegin:
jmp b1
// @1
b1:
// [2] call main
// [4] phi from @1 to main [phi:@1->main]
main_from_b1:
jsr main
// [3] phi from @1 to @end [phi:@1->@end]
bend_from_b1:
jmp bend
// @end
bend:
// main
main: {
.label _2 = 7
.label _3 = 9
.label _4 = $c
.label vram_ptr = $a
.label vram_ptr_2 = 4
.label pos_ptr = 2
.label i = 6
.label vram_ptr_3 = 4
// [5] phi from main to main::@1 [phi:main->main::@1]
b1_from_main:
// [5] phi (byte) main::i#2 = (byte) 0 [phi:main->main::@1#0] -- vbuz1=vbuc1
lda #0
sta.z i
// [5] phi (byte*) main::vram_ptr#3 = (byte*) 1064 [phi:main->main::@1#1] -- pbuz1=pbuc1
lda #<$428
sta.z vram_ptr_3
lda #>$428
sta.z vram_ptr_3+1
// [5] phi (signed word*) main::pos_ptr#2 = (signed word*) 1024 [phi:main->main::@1#2] -- pwsz1=pwsc1
lda #<$400
sta.z pos_ptr
lda #>$400
sta.z pos_ptr+1
jmp b1
// [5] phi from main::@1 to main::@1 [phi:main::@1->main::@1]
b1_from_b1:
// [5] phi (byte) main::i#2 = (byte) main::i#1 [phi:main::@1->main::@1#0] -- register_copy
// [5] phi (byte*) main::vram_ptr#3 = (byte*) main::vram_ptr#2 [phi:main::@1->main::@1#1] -- register_copy
// [5] phi (signed word*) main::pos_ptr#2 = (signed word*) main::pos_ptr#1 [phi:main::@1->main::@1#2] -- register_copy
jmp b1
// main::@1
b1:
// [6] *((signed word*) main::pos_ptr#2) ← (signed word) $55aa -- _deref_pwsz1=vwsc1
ldy #0
lda #<$55aa
sta (pos_ptr),y
iny
lda #>$55aa
sta (pos_ptr),y
// [7] (signed word~) main::$2 ← *((signed word*) main::pos_ptr#2) & (signed word) $aa55 -- vwsz1=_deref_pwsz2_band_vwsc1
ldy #0
lda (pos_ptr),y
and #<$aa55
sta.z _2
iny
lda (pos_ptr),y
and #>$aa55
sta.z _2+1
// [8] (byte~) main::$3 ← < (signed word~) main::$2 -- vbuz1=_lo_vwsz2
lda.z _2
sta.z _3
// [9] *((byte*) main::vram_ptr#3) ← (byte~) main::$3 -- _deref_pbuz1=vbuz2
lda.z _3
ldy #0
sta (vram_ptr_3),y
// [10] (byte*) main::vram_ptr#1 ← ++ (byte*) main::vram_ptr#3 -- pbuz1=_inc_pbuz2
lda.z vram_ptr_3
clc
adc #1
sta.z vram_ptr
lda.z vram_ptr_3+1
adc #0
sta.z vram_ptr+1
// [11] (byte~) main::$4 ← > *((signed word*) main::pos_ptr#2) -- vbuz1=_hi__deref_pwsz2
ldy #1
lda (pos_ptr),y
sta.z _4
// [12] *((byte*) main::vram_ptr#1) ← (byte~) main::$4 -- _deref_pbuz1=vbuz2
// stores 0x00
lda.z _4
ldy #0
sta (vram_ptr),y
// [13] (byte*) main::vram_ptr#2 ← ++ (byte*) main::vram_ptr#1 -- pbuz1=_inc_pbuz2
lda.z vram_ptr
clc
adc #1
sta.z vram_ptr_2
lda.z vram_ptr+1
adc #0
sta.z vram_ptr_2+1
// [14] (signed word*) main::pos_ptr#1 ← (signed word*) main::pos_ptr#2 + (const byte) SIZEOF_SIGNED_WORD -- pwsz1=pwsz1_plus_vbuc1
lda #SIZEOF_SIGNED_WORD
clc
adc.z pos_ptr
sta.z pos_ptr
bcc !+
inc.z pos_ptr+1
!:
// [15] (byte) main::i#1 ← ++ (byte) main::i#2 -- vbuz1=_inc_vbuz1
inc.z i
// [16] if((byte) main::i#1!=(byte) 3) goto main::@1 -- vbuz1_neq_vbuc1_then_la1
lda #3
cmp.z i
bne b1_from_b1
jmp breturn
// main::@return
breturn:
// [17] return
rts
}
// File Data
REGISTER UPLIFT POTENTIAL REGISTERS
Statement [6] *((signed word*) main::pos_ptr#2) ← (signed word) $55aa [ main::pos_ptr#2 main::vram_ptr#3 main::i#2 ] ( main:2 [ main::pos_ptr#2 main::vram_ptr#3 main::i#2 ] ) always clobbers reg byte a reg byte y
Removing always clobbered register reg byte a as potential for zp ZP_BYTE:6 [ main::i#2 main::i#1 ]
Removing always clobbered register reg byte y as potential for zp ZP_BYTE:6 [ main::i#2 main::i#1 ]
Statement [7] (signed word~) main::$2 ← *((signed word*) main::pos_ptr#2) & (signed word) $aa55 [ main::pos_ptr#2 main::vram_ptr#3 main::i#2 main::$2 ] ( main:2 [ main::pos_ptr#2 main::vram_ptr#3 main::i#2 main::$2 ] ) always clobbers reg byte a reg byte y
Statement [8] (byte~) main::$3 ← < (signed word~) main::$2 [ main::pos_ptr#2 main::vram_ptr#3 main::i#2 main::$3 ] ( main:2 [ main::pos_ptr#2 main::vram_ptr#3 main::i#2 main::$3 ] ) always clobbers reg byte a
Statement [9] *((byte*) main::vram_ptr#3) ← (byte~) main::$3 [ main::pos_ptr#2 main::vram_ptr#3 main::i#2 ] ( main:2 [ main::pos_ptr#2 main::vram_ptr#3 main::i#2 ] ) always clobbers reg byte y
Statement [10] (byte*) main::vram_ptr#1 ← ++ (byte*) main::vram_ptr#3 [ main::pos_ptr#2 main::i#2 main::vram_ptr#1 ] ( main:2 [ main::pos_ptr#2 main::i#2 main::vram_ptr#1 ] ) always clobbers reg byte a
Statement [11] (byte~) main::$4 ← > *((signed word*) main::pos_ptr#2) [ main::pos_ptr#2 main::i#2 main::vram_ptr#1 main::$4 ] ( main:2 [ main::pos_ptr#2 main::i#2 main::vram_ptr#1 main::$4 ] ) always clobbers reg byte a reg byte y
Statement [12] *((byte*) main::vram_ptr#1) ← (byte~) main::$4 [ main::pos_ptr#2 main::i#2 main::vram_ptr#1 ] ( main:2 [ main::pos_ptr#2 main::i#2 main::vram_ptr#1 ] ) always clobbers reg byte y
Statement [13] (byte*) main::vram_ptr#2 ← ++ (byte*) main::vram_ptr#1 [ main::pos_ptr#2 main::i#2 main::vram_ptr#2 ] ( main:2 [ main::pos_ptr#2 main::i#2 main::vram_ptr#2 ] ) always clobbers reg byte a
Statement [14] (signed word*) main::pos_ptr#1 ← (signed word*) main::pos_ptr#2 + (const byte) SIZEOF_SIGNED_WORD [ main::i#2 main::pos_ptr#1 main::vram_ptr#2 ] ( main:2 [ main::i#2 main::pos_ptr#1 main::vram_ptr#2 ] ) always clobbers reg byte a
Statement [6] *((signed word*) main::pos_ptr#2) ← (signed word) $55aa [ main::pos_ptr#2 main::vram_ptr#3 main::i#2 ] ( main:2 [ main::pos_ptr#2 main::vram_ptr#3 main::i#2 ] ) always clobbers reg byte a reg byte y
Statement [7] (signed word~) main::$2 ← *((signed word*) main::pos_ptr#2) & (signed word) $aa55 [ main::pos_ptr#2 main::vram_ptr#3 main::i#2 main::$2 ] ( main:2 [ main::pos_ptr#2 main::vram_ptr#3 main::i#2 main::$2 ] ) always clobbers reg byte a reg byte y
Statement [8] (byte~) main::$3 ← < (signed word~) main::$2 [ main::pos_ptr#2 main::vram_ptr#3 main::i#2 main::$3 ] ( main:2 [ main::pos_ptr#2 main::vram_ptr#3 main::i#2 main::$3 ] ) always clobbers reg byte a
Statement [9] *((byte*) main::vram_ptr#3) ← (byte~) main::$3 [ main::pos_ptr#2 main::vram_ptr#3 main::i#2 ] ( main:2 [ main::pos_ptr#2 main::vram_ptr#3 main::i#2 ] ) always clobbers reg byte y
Statement [10] (byte*) main::vram_ptr#1 ← ++ (byte*) main::vram_ptr#3 [ main::pos_ptr#2 main::i#2 main::vram_ptr#1 ] ( main:2 [ main::pos_ptr#2 main::i#2 main::vram_ptr#1 ] ) always clobbers reg byte a
Statement [11] (byte~) main::$4 ← > *((signed word*) main::pos_ptr#2) [ main::pos_ptr#2 main::i#2 main::vram_ptr#1 main::$4 ] ( main:2 [ main::pos_ptr#2 main::i#2 main::vram_ptr#1 main::$4 ] ) always clobbers reg byte a reg byte y
Statement [12] *((byte*) main::vram_ptr#1) ← (byte~) main::$4 [ main::pos_ptr#2 main::i#2 main::vram_ptr#1 ] ( main:2 [ main::pos_ptr#2 main::i#2 main::vram_ptr#1 ] ) always clobbers reg byte y
Statement [13] (byte*) main::vram_ptr#2 ← ++ (byte*) main::vram_ptr#1 [ main::pos_ptr#2 main::i#2 main::vram_ptr#2 ] ( main:2 [ main::pos_ptr#2 main::i#2 main::vram_ptr#2 ] ) always clobbers reg byte a
Statement [14] (signed word*) main::pos_ptr#1 ← (signed word*) main::pos_ptr#2 + (const byte) SIZEOF_SIGNED_WORD [ main::i#2 main::pos_ptr#1 main::vram_ptr#2 ] ( main:2 [ main::i#2 main::pos_ptr#1 main::vram_ptr#2 ] ) always clobbers reg byte a
Potential registers zp ZP_WORD:2 [ main::pos_ptr#2 main::pos_ptr#1 ] : zp ZP_WORD:2 ,
Potential registers zp ZP_WORD:4 [ main::vram_ptr#3 main::vram_ptr#2 ] : zp ZP_WORD:4 ,
Potential registers zp ZP_BYTE:6 [ main::i#2 main::i#1 ] : zp ZP_BYTE:6 , reg byte x ,
Potential registers zp ZP_WORD:7 [ main::$2 ] : zp ZP_WORD:7 ,
Potential registers zp ZP_BYTE:9 [ main::$3 ] : zp ZP_BYTE:9 , reg byte a , reg byte x , reg byte y ,
Potential registers zp ZP_WORD:10 [ main::vram_ptr#1 ] : zp ZP_WORD:10 ,
Potential registers zp ZP_BYTE:12 [ main::$4 ] : zp ZP_BYTE:12 , reg byte a , reg byte x , reg byte y ,
REGISTER UPLIFT SCOPES
Uplift Scope [main] 22: zp ZP_WORD:7 [ main::$2 ] 22: zp ZP_BYTE:9 [ main::$3 ] 22: zp ZP_BYTE:12 [ main::$4 ] 18.7: zp ZP_BYTE:6 [ main::i#2 main::i#1 ] 13.44: zp ZP_WORD:2 [ main::pos_ptr#2 main::pos_ptr#1 ] 12.1: zp ZP_WORD:4 [ main::vram_ptr#3 main::vram_ptr#2 ] 11: zp ZP_WORD:10 [ main::vram_ptr#1 ]
Uplift Scope []
Uplifting [main] best 1643 combination zp ZP_WORD:7 [ main::$2 ] reg byte a [ main::$3 ] reg byte a [ main::$4 ] reg byte x [ main::i#2 main::i#1 ] zp ZP_WORD:2 [ main::pos_ptr#2 main::pos_ptr#1 ] zp ZP_WORD:4 [ main::vram_ptr#3 main::vram_ptr#2 ] zp ZP_WORD:10 [ main::vram_ptr#1 ]
Uplifting [] best 1643 combination
Coalescing zero page register [ zp ZP_WORD:4 [ main::vram_ptr#3 main::vram_ptr#2 ] ] with [ zp ZP_WORD:10 [ main::vram_ptr#1 ] ] - score: 2
Allocated (was zp ZP_WORD:7) zp ZP_WORD:6 [ main::$2 ]
ASSEMBLER BEFORE OPTIMIZATION
// File Comments
// Test binary ANDing pointers by Clay Cowgill
// Upstart
.pc = $801 "Basic"
:BasicUpstart(bbegin)
.pc = $80d "Program"
// Global Constants & labels
.const SIZEOF_SIGNED_WORD = 2
// @begin
bbegin:
// [1] phi from @begin to @1 [phi:@begin->@1]
b1_from_bbegin:
jmp b1
// @1
b1:
// [2] call main
// [4] phi from @1 to main [phi:@1->main]
main_from_b1:
jsr main
// [3] phi from @1 to @end [phi:@1->@end]
bend_from_b1:
jmp bend
// @end
bend:
// main
main: {
.label _2 = 6
.label vram_ptr = 4
.label pos_ptr = 2
// [5] phi from main to main::@1 [phi:main->main::@1]
b1_from_main:
// [5] phi (byte) main::i#2 = (byte) 0 [phi:main->main::@1#0] -- vbuxx=vbuc1
ldx #0
// [5] phi (byte*) main::vram_ptr#3 = (byte*) 1064 [phi:main->main::@1#1] -- pbuz1=pbuc1
lda #<$428
sta.z vram_ptr
lda #>$428
sta.z vram_ptr+1
// [5] phi (signed word*) main::pos_ptr#2 = (signed word*) 1024 [phi:main->main::@1#2] -- pwsz1=pwsc1
lda #<$400
sta.z pos_ptr
lda #>$400
sta.z pos_ptr+1
jmp b1
// [5] phi from main::@1 to main::@1 [phi:main::@1->main::@1]
b1_from_b1:
// [5] phi (byte) main::i#2 = (byte) main::i#1 [phi:main::@1->main::@1#0] -- register_copy
// [5] phi (byte*) main::vram_ptr#3 = (byte*) main::vram_ptr#2 [phi:main::@1->main::@1#1] -- register_copy
// [5] phi (signed word*) main::pos_ptr#2 = (signed word*) main::pos_ptr#1 [phi:main::@1->main::@1#2] -- register_copy
jmp b1
// main::@1
b1:
// [6] *((signed word*) main::pos_ptr#2) ← (signed word) $55aa -- _deref_pwsz1=vwsc1
ldy #0
lda #<$55aa
sta (pos_ptr),y
iny
lda #>$55aa
sta (pos_ptr),y
// [7] (signed word~) main::$2 ← *((signed word*) main::pos_ptr#2) & (signed word) $aa55 -- vwsz1=_deref_pwsz2_band_vwsc1
ldy #0
lda (pos_ptr),y
and #<$aa55
sta.z _2
iny
lda (pos_ptr),y
and #>$aa55
sta.z _2+1
// [8] (byte~) main::$3 ← < (signed word~) main::$2 -- vbuaa=_lo_vwsz1
lda.z _2
// [9] *((byte*) main::vram_ptr#3) ← (byte~) main::$3 -- _deref_pbuz1=vbuaa
ldy #0
sta (vram_ptr),y
// [10] (byte*) main::vram_ptr#1 ← ++ (byte*) main::vram_ptr#3 -- pbuz1=_inc_pbuz1
inc.z vram_ptr
bne !+
inc.z vram_ptr+1
!:
// [11] (byte~) main::$4 ← > *((signed word*) main::pos_ptr#2) -- vbuaa=_hi__deref_pwsz1
ldy #1
lda (pos_ptr),y
// [12] *((byte*) main::vram_ptr#1) ← (byte~) main::$4 -- _deref_pbuz1=vbuaa
// stores 0x00
ldy #0
sta (vram_ptr),y
// [13] (byte*) main::vram_ptr#2 ← ++ (byte*) main::vram_ptr#1 -- pbuz1=_inc_pbuz1
inc.z vram_ptr
bne !+
inc.z vram_ptr+1
!:
// [14] (signed word*) main::pos_ptr#1 ← (signed word*) main::pos_ptr#2 + (const byte) SIZEOF_SIGNED_WORD -- pwsz1=pwsz1_plus_vbuc1
lda #SIZEOF_SIGNED_WORD
clc
adc.z pos_ptr
sta.z pos_ptr
bcc !+
inc.z pos_ptr+1
!:
// [15] (byte) main::i#1 ← ++ (byte) main::i#2 -- vbuxx=_inc_vbuxx
inx
// [16] if((byte) main::i#1!=(byte) 3) goto main::@1 -- vbuxx_neq_vbuc1_then_la1
cpx #3
bne b1_from_b1
jmp breturn
// main::@return
breturn:
// [17] return
rts
}
// File Data
ASSEMBLER OPTIMIZATIONS
Removing instruction jmp b1
Removing instruction jmp bend
Removing instruction jmp b1
Removing instruction jmp breturn
Succesful ASM optimization Pass5NextJumpElimination
Replacing label b1_from_b1 with b1
Removing instruction b1_from_bbegin:
Removing instruction b1:
Removing instruction main_from_b1:
Removing instruction bend_from_b1:
Removing instruction b1_from_b1:
Succesful ASM optimization Pass5RedundantLabelElimination
Removing instruction bend:
Removing instruction b1_from_main:
Removing instruction breturn:
Succesful ASM optimization Pass5UnusedLabelElimination
Updating BasicUpstart to call main directly
Removing instruction jsr main
Succesful ASM optimization Pass5SkipBegin
Removing instruction jmp b1
Succesful ASM optimization Pass5NextJumpElimination
Removing instruction bbegin:
Succesful ASM optimization Pass5UnusedLabelElimination
FINAL SYMBOL TABLE
(label) @1
(label) @begin
(label) @end
(const byte) SIZEOF_SIGNED_WORD SIZEOF_SIGNED_WORD = (byte) 2
(void()) main()
(signed word~) main::$2 $2 zp ZP_WORD:6 22.0
(byte~) main::$3 reg byte a 22.0
(byte~) main::$4 reg byte a 22.0
(label) main::@1
(label) main::@return
(byte) main::i
(byte) main::i#1 reg byte x 16.5
(byte) main::i#2 reg byte x 2.2
(signed word*) main::pos_ptr
(signed word*) main::pos_ptr#1 pos_ptr zp ZP_WORD:2 7.333333333333333
(signed word*) main::pos_ptr#2 pos_ptr zp ZP_WORD:2 6.111111111111112
(byte*) main::vram_ptr
(byte*) main::vram_ptr#1 vram_ptr zp ZP_WORD:4 11.0
(byte*) main::vram_ptr#2 vram_ptr zp ZP_WORD:4 5.5
(byte*) main::vram_ptr#3 vram_ptr zp ZP_WORD:4 6.6000000000000005
zp ZP_WORD:2 [ main::pos_ptr#2 main::pos_ptr#1 ]
zp ZP_WORD:4 [ main::vram_ptr#3 main::vram_ptr#2 main::vram_ptr#1 ]
reg byte x [ main::i#2 main::i#1 ]
zp ZP_WORD:6 [ main::$2 ]
reg byte a [ main::$3 ]
reg byte a [ main::$4 ]
FINAL ASSEMBLER
Score: 1431
// File Comments
// Test binary ANDing pointers by Clay Cowgill
// Upstart
.pc = $801 "Basic"
:BasicUpstart(main)
.pc = $80d "Program"
// Global Constants & labels
.const SIZEOF_SIGNED_WORD = 2
// @begin
// [1] phi from @begin to @1 [phi:@begin->@1]
// @1
// [2] call main
// [4] phi from @1 to main [phi:@1->main]
// [3] phi from @1 to @end [phi:@1->@end]
// @end
// main
main: {
.label _2 = 6
.label vram_ptr = 4
.label pos_ptr = 2
// [5] phi from main to main::@1 [phi:main->main::@1]
// [5] phi (byte) main::i#2 = (byte) 0 [phi:main->main::@1#0] -- vbuxx=vbuc1
ldx #0
// [5] phi (byte*) main::vram_ptr#3 = (byte*) 1064 [phi:main->main::@1#1] -- pbuz1=pbuc1
lda #<$428
sta.z vram_ptr
lda #>$428
sta.z vram_ptr+1
// [5] phi (signed word*) main::pos_ptr#2 = (signed word*) 1024 [phi:main->main::@1#2] -- pwsz1=pwsc1
lda #<$400
sta.z pos_ptr
lda #>$400
sta.z pos_ptr+1
// [5] phi from main::@1 to main::@1 [phi:main::@1->main::@1]
// [5] phi (byte) main::i#2 = (byte) main::i#1 [phi:main::@1->main::@1#0] -- register_copy
// [5] phi (byte*) main::vram_ptr#3 = (byte*) main::vram_ptr#2 [phi:main::@1->main::@1#1] -- register_copy
// [5] phi (signed word*) main::pos_ptr#2 = (signed word*) main::pos_ptr#1 [phi:main::@1->main::@1#2] -- register_copy
// main::@1
b1:
// *pos_ptr=(int)0x55AA
// [6] *((signed word*) main::pos_ptr#2) ← (signed word) $55aa -- _deref_pwsz1=vwsc1
ldy #0
lda #<$55aa
sta (pos_ptr),y
iny
lda #>$55aa
sta (pos_ptr),y
// *pos_ptr&(int)0xAA55
// [7] (signed word~) main::$2 ← *((signed word*) main::pos_ptr#2) & (signed word) $aa55 -- vwsz1=_deref_pwsz2_band_vwsc1
ldy #0
lda (pos_ptr),y
and #<$aa55
sta.z _2
iny
lda (pos_ptr),y
and #>$aa55
sta.z _2+1
// <(*pos_ptr&(int)0xAA55)
// [8] (byte~) main::$3 ← < (signed word~) main::$2 -- vbuaa=_lo_vwsz1
lda.z _2
// *vram_ptr++=<(*pos_ptr&(int)0xAA55)
// [9] *((byte*) main::vram_ptr#3) ← (byte~) main::$3 -- _deref_pbuz1=vbuaa
ldy #0
sta (vram_ptr),y
// *vram_ptr++=<(*pos_ptr&(int)0xAA55);
// [10] (byte*) main::vram_ptr#1 ← ++ (byte*) main::vram_ptr#3 -- pbuz1=_inc_pbuz1
inc.z vram_ptr
bne !+
inc.z vram_ptr+1
!:
// >*pos_ptr
// [11] (byte~) main::$4 ← > *((signed word*) main::pos_ptr#2) -- vbuaa=_hi__deref_pwsz1
ldy #1
lda (pos_ptr),y
// *vram_ptr++=>*pos_ptr
// [12] *((byte*) main::vram_ptr#1) ← (byte~) main::$4 -- _deref_pbuz1=vbuaa
// stores 0x00
ldy #0
sta (vram_ptr),y
// *vram_ptr++=>*pos_ptr;
// [13] (byte*) main::vram_ptr#2 ← ++ (byte*) main::vram_ptr#1 -- pbuz1=_inc_pbuz1
inc.z vram_ptr
bne !+
inc.z vram_ptr+1
!:
// pos_ptr++;
// [14] (signed word*) main::pos_ptr#1 ← (signed word*) main::pos_ptr#2 + (const byte) SIZEOF_SIGNED_WORD -- pwsz1=pwsz1_plus_vbuc1
lda #SIZEOF_SIGNED_WORD
clc
adc.z pos_ptr
sta.z pos_ptr
bcc !+
inc.z pos_ptr+1
!:
// for( char i:0..2)
// [15] (byte) main::i#1 ← ++ (byte) main::i#2 -- vbuxx=_inc_vbuxx
inx
// [16] if((byte) main::i#1!=(byte) 3) goto main::@1 -- vbuxx_neq_vbuc1_then_la1
cpx #3
bne b1
// main::@return
// }
// [17] return
rts
}
// File Data

View File

@ -0,0 +1,27 @@
(label) @1
(label) @begin
(label) @end
(const byte) SIZEOF_SIGNED_WORD SIZEOF_SIGNED_WORD = (byte) 2
(void()) main()
(signed word~) main::$2 $2 zp ZP_WORD:6 22.0
(byte~) main::$3 reg byte a 22.0
(byte~) main::$4 reg byte a 22.0
(label) main::@1
(label) main::@return
(byte) main::i
(byte) main::i#1 reg byte x 16.5
(byte) main::i#2 reg byte x 2.2
(signed word*) main::pos_ptr
(signed word*) main::pos_ptr#1 pos_ptr zp ZP_WORD:2 7.333333333333333
(signed word*) main::pos_ptr#2 pos_ptr zp ZP_WORD:2 6.111111111111112
(byte*) main::vram_ptr
(byte*) main::vram_ptr#1 vram_ptr zp ZP_WORD:4 11.0
(byte*) main::vram_ptr#2 vram_ptr zp ZP_WORD:4 5.5
(byte*) main::vram_ptr#3 vram_ptr zp ZP_WORD:4 6.6000000000000005
zp ZP_WORD:2 [ main::pos_ptr#2 main::pos_ptr#1 ]
zp ZP_WORD:4 [ main::vram_ptr#3 main::vram_ptr#2 main::vram_ptr#1 ]
reg byte x [ main::i#2 main::i#1 ]
zp ZP_WORD:6 [ main::$2 ]
reg byte a [ main::$3 ]
reg byte a [ main::$4 ]