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

Added parenthesis to ASM expressions.

This commit is contained in:
jespergravgaard 2018-01-28 23:06:19 +01:00
parent 9b09aaab14
commit 546644b7d3
7 changed files with 229 additions and 150 deletions

View File

@ -272,6 +272,13 @@ public class AsmFragmentInstance {
return new AsmParameter(param, isZp);
}
@Override
public Object visitAsmExprPar(KickCParser.AsmExprParContext ctx) {
AsmParameter sub = (AsmParameter) this.visit(ctx.asmExpr());
String param = "(" + sub.getParam() + ")";
return new AsmParameter(param, sub.isZp());
}
@Override
public AsmParameter visitAsmExprInt(KickCParser.AsmExprIntContext ctx) {
Number number = NumberParser.parseLiteral(ctx.NUMBER().getText());

View File

@ -142,10 +142,11 @@ asmParamMode
;
asmExpr
: asmExpr ( '<<' | '>>' ) asmExpr #asmExprBinary
| ('+' | '-' | '<' | '>') asmExpr #asmExprUnary
| asmExpr ('*' | '/' | '<<' | '>>' ) asmExpr #asmExprBinary
| asmExpr ( '+' | '-') asmExpr #asmExprBinary
: '(' asmExpr ')' #asmExprPar
| asmExpr ( '<<' | '>>' ) asmExpr #asmExprBinary
| ('+' | '-' | '<' | '>' ) asmExpr #asmExprUnary
| asmExpr ('*' | '/' ) asmExpr #asmExprBinary
| asmExpr ( '+' | '-' ) asmExpr #asmExprBinary
| NAME #asmExprLabel
| ASMREL #asmExprLabelRel
| '{' NAME '}' #asmExprReplace

View File

@ -731,6 +731,18 @@ public class KickCBaseListener implements KickCListener {
* <p>The default implementation does nothing.</p>
*/
@Override public void exitAsmExprLabelRel(KickCParser.AsmExprLabelRelContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void enterAsmExprPar(KickCParser.AsmExprParContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void exitAsmExprPar(KickCParser.AsmExprParContext ctx) { }
/**
* {@inheritDoc}
*

View File

@ -431,6 +431,13 @@ public class KickCBaseVisitor<T> extends AbstractParseTreeVisitor<T> implements
* {@link #visitChildren} on {@code ctx}.</p>
*/
@Override public T visitAsmExprLabelRel(KickCParser.AsmExprLabelRelContext ctx) { return visitChildren(ctx); }
/**
* {@inheritDoc}
*
* <p>The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.</p>
*/
@Override public T visitAsmExprPar(KickCParser.AsmExprParContext ctx) { return visitChildren(ctx); }
/**
* {@inheritDoc}
*

View File

@ -695,6 +695,18 @@ public interface KickCListener extends ParseTreeListener {
* @param ctx the parse tree
*/
void exitAsmExprLabelRel(KickCParser.AsmExprLabelRelContext ctx);
/**
* Enter a parse tree produced by the {@code asmExprPar}
* labeled alternative in {@link KickCParser#asmExpr}.
* @param ctx the parse tree
*/
void enterAsmExprPar(KickCParser.AsmExprParContext ctx);
/**
* Exit a parse tree produced by the {@code asmExprPar}
* labeled alternative in {@link KickCParser#asmExpr}.
* @param ctx the parse tree
*/
void exitAsmExprPar(KickCParser.AsmExprParContext ctx);
/**
* Enter a parse tree produced by the {@code asmExprBinary}
* labeled alternative in {@link KickCParser#asmExpr}.

View File

@ -3082,6 +3082,25 @@ public class KickCParser extends Parser {
else return visitor.visitChildren(this);
}
}
public static class AsmExprParContext extends AsmExprContext {
public AsmExprContext asmExpr() {
return getRuleContext(AsmExprContext.class,0);
}
public AsmExprParContext(AsmExprContext ctx) { copyFrom(ctx); }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof KickCListener ) ((KickCListener)listener).enterAsmExprPar(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof KickCListener ) ((KickCListener)listener).exitAsmExprPar(this);
}
@Override
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
if ( visitor instanceof KickCVisitor ) return ((KickCVisitor<? extends T>)visitor).visitAsmExprPar(this);
else return visitor.visitChildren(this);
}
}
public static class AsmExprBinaryContext extends AsmExprContext {
public List<AsmExprContext> asmExpr() {
return getRuleContexts(AsmExprContext.class);
@ -3191,9 +3210,23 @@ public class KickCParser extends Parser {
int _alt;
enterOuterAlt(_localctx, 1);
{
setState(378);
setState(382);
_errHandler.sync(this);
switch (_input.LA(1)) {
case T__1:
{
_localctx = new AsmExprParContext(_localctx);
_ctx = _localctx;
_prevctx = _localctx;
setState(369);
match(T__1);
setState(370);
asmExpr(0);
setState(371);
match(T__2);
}
break;
case T__25:
case T__26:
case T__34:
@ -3202,8 +3235,7 @@ public class KickCParser extends Parser {
_localctx = new AsmExprUnaryContext(_localctx);
_ctx = _localctx;
_prevctx = _localctx;
setState(369);
setState(373);
_la = _input.LA(1);
if ( !((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << T__25) | (1L << T__26) | (1L << T__34) | (1L << T__35))) != 0)) ) {
_errHandler.recoverInline(this);
@ -3213,7 +3245,7 @@ public class KickCParser extends Parser {
_errHandler.reportMatch(this);
consume();
}
setState(370);
setState(374);
asmExpr(8);
}
break;
@ -3222,7 +3254,7 @@ public class KickCParser extends Parser {
_localctx = new AsmExprLabelContext(_localctx);
_ctx = _localctx;
_prevctx = _localctx;
setState(371);
setState(375);
match(NAME);
}
break;
@ -3231,7 +3263,7 @@ public class KickCParser extends Parser {
_localctx = new AsmExprLabelRelContext(_localctx);
_ctx = _localctx;
_prevctx = _localctx;
setState(372);
setState(376);
match(ASMREL);
}
break;
@ -3240,11 +3272,11 @@ public class KickCParser extends Parser {
_localctx = new AsmExprReplaceContext(_localctx);
_ctx = _localctx;
_prevctx = _localctx;
setState(373);
setState(377);
match(T__3);
setState(374);
setState(378);
match(NAME);
setState(375);
setState(379);
match(T__4);
}
break;
@ -3253,7 +3285,7 @@ public class KickCParser extends Parser {
_localctx = new AsmExprIntContext(_localctx);
_ctx = _localctx;
_prevctx = _localctx;
setState(376);
setState(380);
match(NUMBER);
}
break;
@ -3262,7 +3294,7 @@ public class KickCParser extends Parser {
_localctx = new AsmExprCharContext(_localctx);
_ctx = _localctx;
_prevctx = _localctx;
setState(377);
setState(381);
match(CHAR);
}
break;
@ -3270,7 +3302,7 @@ public class KickCParser extends Parser {
throw new NoViableAltException(this);
}
_ctx.stop = _input.LT(-1);
setState(391);
setState(395);
_errHandler.sync(this);
_alt = getInterpreter().adaptivePredict(_input,38,_ctx);
while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) {
@ -3278,16 +3310,16 @@ public class KickCParser extends Parser {
if ( _parseListeners!=null ) triggerExitRuleEvent();
_prevctx = _localctx;
{
setState(389);
setState(393);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,37,_ctx) ) {
case 1:
{
_localctx = new AsmExprBinaryContext(new AsmExprContext(_parentctx, _parentState));
pushNewRecursionContext(_localctx, _startState, RULE_asmExpr);
setState(380);
setState(384);
if (!(precpred(_ctx, 9))) throw new FailedPredicateException(this, "precpred(_ctx, 9)");
setState(381);
setState(385);
_la = _input.LA(1);
if ( !(_la==T__30 || _la==T__31) ) {
_errHandler.recoverInline(this);
@ -3297,7 +3329,7 @@ public class KickCParser extends Parser {
_errHandler.reportMatch(this);
consume();
}
setState(382);
setState(386);
asmExpr(10);
}
break;
@ -3305,11 +3337,11 @@ public class KickCParser extends Parser {
{
_localctx = new AsmExprBinaryContext(new AsmExprContext(_parentctx, _parentState));
pushNewRecursionContext(_localctx, _startState, RULE_asmExpr);
setState(383);
setState(387);
if (!(precpred(_ctx, 7))) throw new FailedPredicateException(this, "precpred(_ctx, 7)");
setState(384);
setState(388);
_la = _input.LA(1);
if ( !((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << T__20) | (1L << T__30) | (1L << T__31) | (1L << T__32))) != 0)) ) {
if ( !(_la==T__20 || _la==T__32) ) {
_errHandler.recoverInline(this);
}
else {
@ -3317,7 +3349,7 @@ public class KickCParser extends Parser {
_errHandler.reportMatch(this);
consume();
}
setState(385);
setState(389);
asmExpr(8);
}
break;
@ -3325,9 +3357,9 @@ public class KickCParser extends Parser {
{
_localctx = new AsmExprBinaryContext(new AsmExprContext(_parentctx, _parentState));
pushNewRecursionContext(_localctx, _startState, RULE_asmExpr);
setState(386);
setState(390);
if (!(precpred(_ctx, 6))) throw new FailedPredicateException(this, "precpred(_ctx, 6)");
setState(387);
setState(391);
_la = _input.LA(1);
if ( !(_la==T__25 || _la==T__26) ) {
_errHandler.recoverInline(this);
@ -3337,14 +3369,14 @@ public class KickCParser extends Parser {
_errHandler.reportMatch(this);
consume();
}
setState(388);
setState(392);
asmExpr(7);
}
break;
}
}
}
setState(393);
setState(397);
_errHandler.sync(this);
_alt = getInterpreter().adaptivePredict(_input,38,_ctx);
}
@ -3423,7 +3455,7 @@ public class KickCParser extends Parser {
}
public static final String _serializedATN =
"\3\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964\3F\u018d\4\2\t\2\4"+
"\3\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964\3F\u0191\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"+
@ -3452,127 +3484,128 @@ public class KickCParser extends Parser {
"\30\3\30\3\30\3\30\7\30\u0155\n\30\f\30\16\30\u0158\13\30\3\31\3\31\3"+
"\31\3\31\3\31\3\31\3\31\3\31\3\31\3\31\3\31\3\31\3\31\3\31\3\31\3\31\3"+
"\31\3\31\3\31\3\31\3\31\3\31\3\31\5\31\u0171\n\31\3\32\3\32\3\32\3\32"+
"\3\32\3\32\3\32\3\32\3\32\3\32\5\32\u017d\n\32\3\32\3\32\3\32\3\32\3\32"+
"\3\32\3\32\3\32\3\32\7\32\u0188\n\32\f\32\16\32\u018b\13\32\3\32\2\5 "+
"\"\62\33\2\4\6\b\n\f\16\20\22\24\26\30\32\34\36 \"$&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\2ed\3\2\2\2ef\3\2\2\2fg\3"+
"\2\2\2gi\5 \21\2hj\5\24\13\2ih\3\2\2\2ij\3\2\2\2jk\3\2\2\2kn\7B\2\2lm"+
"\7\t\2\2mo\5\"\22\2nl\3\2\2\2no\3\2\2\2op\3\2\2\2pq\7\n\2\2q\23\3\2\2"+
"\2rt\5\26\f\2sr\3\2\2\2tu\3\2\2\2us\3\2\2\2uv\3\2\2\2v\25\3\2\2\2w}\7"+
"\13\2\2xy\7\f\2\2yz\7\4\2\2z{\79\2\2{}\7\5\2\2|w\3\2\2\2|x\3\2\2\2}\27"+
"\3\2\2\2~\u0080\5\32\16\2\177~\3\2\2\2\u0080\u0081\3\2\2\2\u0081\177\3"+
"\2\2\2\u0081\u0082\3\2\2\2\u0082\31\3\2\2\2\u0083\u00b7\5\22\n\2\u0084"+
"\u0086\7\6\2\2\u0085\u0087\5\30\r\2\u0086\u0085\3\2\2\2\u0086\u0087\3"+
"\2\2\2\u0087\u0088\3\2\2\2\u0088\u00b7\7\7\2\2\u0089\u008a\5\"\22\2\u008a"+
"\u008b\7\n\2\2\u008b\u00b7\3\2\2\2\u008c\u008d\7\r\2\2\u008d\u008e\7\4"+
"\2\2\u008e\u008f\5\"\22\2\u008f\u0090\7\5\2\2\u0090\u0093\5\32\16\2\u0091"+
"\u0092\7\16\2\2\u0092\u0094\5\32\16\2\u0093\u0091\3\2\2\2\u0093\u0094"+
"\3\2\2\2\u0094\u00b7\3\2\2\2\u0095\u0096\7\17\2\2\u0096\u0097\7\4\2\2"+
"\u0097\u0098\5\"\22\2\u0098\u0099\7\5\2\2\u0099\u009a\5\32\16\2\u009a"+
"\u00b7\3\2\2\2\u009b\u009c\7\20\2\2\u009c\u009d\5\32\16\2\u009d\u009e"+
"\7\17\2\2\u009e\u009f\7\4\2\2\u009f\u00a0\5\"\22\2\u00a0\u00a1\7\5\2\2"+
"\u00a1\u00a2\7\n\2\2\u00a2\u00b7\3\2\2\2\u00a3\u00a4\7\21\2\2\u00a4\u00a6"+
"\7\4\2\2\u00a5\u00a7\5\34\17\2\u00a6\u00a5\3\2\2\2\u00a6\u00a7\3\2\2\2"+
"\u00a7\u00a8\3\2\2\2\u00a8\u00a9\5\36\20\2\u00a9\u00aa\7\5\2\2\u00aa\u00ab"+
"\5\32\16\2\u00ab\u00b7\3\2\2\2\u00ac\u00ae\7\22\2\2\u00ad\u00af\5\"\22"+
"\2\u00ae\u00ad\3\2\2\2\u00ae\u00af\3\2\2\2\u00af\u00b0\3\2\2\2\u00b0\u00b7"+
"\7\n\2\2\u00b1\u00b2\7\23\2\2\u00b2\u00b3\7\6\2\2\u00b3\u00b4\5&\24\2"+
"\u00b4\u00b5\7\7\2\2\u00b5\u00b7\3\2\2\2\u00b6\u0083\3\2\2\2\u00b6\u0084"+
"\3\2\2\2\u00b6\u0089\3\2\2\2\u00b6\u008c\3\2\2\2\u00b6\u0095\3\2\2\2\u00b6"+
"\u009b\3\2\2\2\u00b6\u00a3\3\2\2\2\u00b6\u00ac\3\2\2\2\u00b6\u00b1\3\2"+
"\2\2\u00b7\33\3\2\2\2\u00b8\u00ba\5 \21\2\u00b9\u00b8\3\2\2\2\u00b9\u00ba"+
"\3\2\2\2\u00ba\u00bb\3\2\2\2\u00bb\u00be\7B\2\2\u00bc\u00bd\7\t\2\2\u00bd"+
"\u00bf\5\"\22\2\u00be\u00bc\3\2\2\2\u00be\u00bf\3\2\2\2\u00bf\35\3\2\2"+
"\2\u00c0\u00c1\7\n\2\2\u00c1\u00c2\5\"\22\2\u00c2\u00c3\7\n\2\2\u00c3"+
"\u00c4\5\"\22\2\u00c4\u00cb\3\2\2\2\u00c5\u00c6\7\24\2\2\u00c6\u00c7\5"+
"\"\22\2\u00c7\u00c8\7\25\2\2\u00c8\u00c9\5\"\22\2\u00c9\u00cb\3\2\2\2"+
"\u00ca\u00c0\3\2\2\2\u00ca\u00c5\3\2\2\2\u00cb\37\3\2\2\2\u00cc\u00cd"+
"\b\21\1\2\u00cd\u00d1\7\65\2\2\u00ce\u00cf\7\26\2\2\u00cf\u00d1\7\65\2"+
"\2\u00d0\u00cc\3\2\2\2\u00d0\u00ce\3\2\2\2\u00d1\u00dc\3\2\2\2\u00d2\u00d3"+
"\f\4\2\2\u00d3\u00db\7\27\2\2\u00d4\u00d5\f\3\2\2\u00d5\u00d7\7\30\2\2"+
"\u00d6\u00d8\5\"\22\2\u00d7\u00d6\3\2\2\2\u00d7\u00d8\3\2\2\2\u00d8\u00d9"+
"\3\2\2\2\u00d9\u00db\7\31\2\2\u00da\u00d2\3\2\2\2\u00da\u00d4\3\2\2\2"+
"\u00db\u00de\3\2\2\2\u00dc\u00da\3\2\2\2\u00dc\u00dd\3\2\2\2\u00dd!\3"+
"\2\2\2\u00de\u00dc\3\2\2\2\u00df\u00e0\b\22\1\2\u00e0\u00e1\7\4\2\2\u00e1"+
"\u00e2\5\"\22\2\u00e2\u00e3\7\5\2\2\u00e3\u0108\3\2\2\2\u00e4\u00e5\7"+
"B\2\2\u00e5\u00e7\7\4\2\2\u00e6\u00e8\5$\23\2\u00e7\u00e6\3\2\2\2\u00e7"+
"\u00e8\3\2\2\2\u00e8\u00e9\3\2\2\2\u00e9\u0108\7\5\2\2\u00ea\u00eb\7\4"+
"\2\2\u00eb\u00ec\5 \21\2\u00ec\u00ed\7\5\2\2\u00ed\u00ee\5\"\22\30\u00ee"+
"\u0108\3\2\2\2\u00ef\u00f0\t\2\2\2\u00f0\u0108\5\"\22\27\u00f1\u00f2\7"+
"\27\2\2\u00f2\u0108\5\"\22\25\u00f3\u00f4\t\3\2\2\u00f4\u0108\5\"\22\24"+
"\u00f5\u00f6\t\4\2\2\u00f6\u0108\5\"\22\20\u00f7\u00f8\7\6\2\2\u00f8\u00fd"+
"\5\"\22\2\u00f9\u00fa\7\b\2\2\u00fa\u00fc\5\"\22\2\u00fb\u00f9\3\2\2\2"+
"\u00fc\u00ff\3\2\2\2\u00fd\u00fb\3\2\2\2\u00fd\u00fe\3\2\2\2\u00fe\u0100"+
"\3\2\2\2\u00ff\u00fd\3\2\2\2\u0100\u0101\7\7\2\2\u0101\u0108\3\2\2\2\u0102"+
"\u0108\7B\2\2\u0103\u0108\79\2\2\u0104\u0108\7\66\2\2\u0105\u0108\7\67"+
"\2\2\u0106\u0108\78\2\2\u0107\u00df\3\2\2\2\u0107\u00e4\3\2\2\2\u0107"+
"\u00ea\3\2\2\2\u0107\u00ef\3\2\2\2\u0107\u00f1\3\2\2\2\u0107\u00f3\3\2"+
"\2\2\u0107\u00f5\3\2\2\2\u0107\u00f7\3\2\2\2\u0107\u0102\3\2\2\2\u0107"+
"\u0103\3\2\2\2\u0107\u0104\3\2\2\2\u0107\u0105\3\2\2\2\u0107\u0106\3\2"+
"\2\2\u0108\u0130\3\2\2\2\u0109\u010a\f\23\2\2\u010a\u010b\t\5\2\2\u010b"+
"\u012f\5\"\22\24\u010c\u010d\f\22\2\2\u010d\u010e\t\6\2\2\u010e\u012f"+
"\5\"\22\23\u010f\u0110\f\21\2\2\u0110\u0111\t\7\2\2\u0111\u012f\5\"\22"+
"\22\u0112\u0113\f\17\2\2\u0113\u0114\t\b\2\2\u0114\u012f\5\"\22\20\u0115"+
"\u0116\f\16\2\2\u0116\u0117\7\37\2\2\u0117\u012f\5\"\22\17\u0118\u0119"+
"\f\r\2\2\u0119\u011a\7.\2\2\u011a\u012f\5\"\22\16\u011b\u011c\f\f\2\2"+
"\u011c\u011d\7/\2\2\u011d\u012f\5\"\22\r\u011e\u011f\f\13\2\2\u011f\u0120"+
"\7\60\2\2\u0120\u012f\5\"\22\f\u0121\u0122\f\n\2\2\u0122\u0123\7\61\2"+
"\2\u0123\u012f\5\"\22\13\u0124\u0125\f\t\2\2\u0125\u0126\7\t\2\2\u0126"+
"\u012f\5\"\22\t\u0127\u0128\f\31\2\2\u0128\u0129\7\30\2\2\u0129\u012a"+
"\5\"\22\2\u012a\u012b\7\31\2\2\u012b\u012f\3\2\2\2\u012c\u012d\f\26\2"+
"\2\u012d\u012f\t\2\2\2\u012e\u0109\3\2\2\2\u012e\u010c\3\2\2\2\u012e\u010f"+
"\3\2\2\2\u012e\u0112\3\2\2\2\u012e\u0115\3\2\2\2\u012e\u0118\3\2\2\2\u012e"+
"\u011b\3\2\2\2\u012e\u011e\3\2\2\2\u012e\u0121\3\2\2\2\u012e\u0124\3\2"+
"\2\2\u012e\u0127\3\2\2\2\u012e\u012c\3\2\2\2\u012f\u0132\3\2\2\2\u0130"+
"\u012e\3\2\2\2\u0130\u0131\3\2\2\2\u0131#\3\2\2\2\u0132\u0130\3\2\2\2"+
"\u0133\u0138\5\"\22\2\u0134\u0135\7\b\2\2\u0135\u0137\5\"\22\2\u0136\u0134"+
"\3\2\2\2\u0137\u013a\3\2\2\2\u0138\u0136\3\2\2\2\u0138\u0139\3\2\2\2\u0139"+
"%\3\2\2\2\u013a\u0138\3\2\2\2\u013b\u013d\5(\25\2\u013c\u013b\3\2\2\2"+
"\u013d\u0140\3\2\2\2\u013e\u013c\3\2\2\2\u013e\u013f\3\2\2\2\u013f\'\3"+
"\2\2\2\u0140\u013e\3\2\2\2\u0141\u0145\5*\26\2\u0142\u0145\5,\27\2\u0143"+
"\u0145\5.\30\2\u0144\u0141\3\2\2\2\u0144\u0142\3\2\2\2\u0144\u0143\3\2"+
"\2\2\u0145)\3\2\2\2\u0146\u0147\7B\2\2\u0147\u014b\7\24\2\2\u0148\u0149"+
"\7\36\2\2\u0149\u014b\7\24\2\2\u014a\u0146\3\2\2\2\u014a\u0148\3\2\2\2"+
"\u014b+\3\2\2\2\u014c\u014e\7\64\2\2\u014d\u014f\5\60\31\2\u014e\u014d"+
"\3\2\2\2\u014e\u014f\3\2\2\2\u014f-\3\2\2\2\u0150\u0151\7\62\2\2\u0151"+
"\u0156\5\62\32\2\u0152\u0153\7\b\2\2\u0153\u0155\5\62\32\2\u0154\u0152"+
"\3\2\2\2\u0155\u0158\3\2\2\2\u0156\u0154\3\2\2\2\u0156\u0157\3\2\2\2\u0157"+
"/\3\2\2\2\u0158\u0156\3\2\2\2\u0159\u0171\5\62\32\2\u015a\u015b\7\63\2"+
"\2\u015b\u0171\5\62\32\2\u015c\u015d\5\62\32\2\u015d\u015e\7\b\2\2\u015e"+
"\u015f\7B\2\2\u015f\u0171\3\2\2\2\u0160\u0161\7\4\2\2\u0161\u0162\5\62"+
"\32\2\u0162\u0163\7\5\2\2\u0163\u0164\7\b\2\2\u0164\u0165\7B\2\2\u0165"+
"\u0171\3\2\2\2\u0166\u0167\7\4\2\2\u0167\u0168\5\62\32\2\u0168\u0169\7"+
"\b\2\2\u0169\u016a\7B\2\2\u016a\u016b\7\5\2\2\u016b\u0171\3\2\2\2\u016c"+
"\u016d\7\4\2\2\u016d\u016e\5\62\32\2\u016e\u016f\7\5\2\2\u016f\u0171\3"+
"\2\2\2\u0170\u0159\3\2\2\2\u0170\u015a\3\2\2\2\u0170\u015c\3\2\2\2\u0170"+
"\u0160\3\2\2\2\u0170\u0166\3\2\2\2\u0170\u016c\3\2\2\2\u0171\61\3\2\2"+
"\2\u0172\u0173\b\32\1\2\u0173\u0174\t\t\2\2\u0174\u017d\5\62\32\n\u0175"+
"\u017d\7B\2\2\u0176\u017d\7C\2\2\u0177\u0178\7\6\2\2\u0178\u0179\7B\2"+
"\2\u0179\u017d\7\7\2\2\u017a\u017d\79\2\2\u017b\u017d\7\67\2\2\u017c\u0172"+
"\3\2\2\2\u017c\u0175\3\2\2\2\u017c\u0176\3\2\2\2\u017c\u0177\3\2\2\2\u017c"+
"\u017a\3\2\2\2\u017c\u017b\3\2\2\2\u017d\u0189\3\2\2\2\u017e\u017f\f\13"+
"\2\2\u017f\u0180\t\5\2\2\u0180\u0188\5\62\32\f\u0181\u0182\f\t\2\2\u0182"+
"\u0183\t\n\2\2\u0183\u0188\5\62\32\n\u0184\u0185\f\b\2\2\u0185\u0186\t"+
"\7\2\2\u0186\u0188\5\62\32\t\u0187\u017e\3\2\2\2\u0187\u0181\3\2\2\2\u0187"+
"\u0184\3\2\2\2\u0188\u018b\3\2\2\2\u0189\u0187\3\2\2\2\u0189\u018a\3\2"+
"\2\2\u018a\63\3\2\2\2\u018b\u0189\3\2\2\2)>GMRW^einu|\u0081\u0086\u0093"+
"\u00a6\u00ae\u00b6\u00b9\u00be\u00ca\u00d0\u00d7\u00da\u00dc\u00e7\u00fd"+
"\u0107\u012e\u0130\u0138\u013e\u0144\u014a\u014e\u0156\u0170\u017c\u0187"+
"\u0189";
"\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\5\32\u0181\n\32\3\32"+
"\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\7\32\u018c\n\32\f\32\16\32\u018f"+
"\13\32\3\32\2\5 \"\62\33\2\4\6\b\n\f\16\20\22\24\26\30\32\34\36 \"$&("+
"*,.\60\62\2\13\3\2\32\33\3\2\34 \3\2%&\3\2!\"\4\2\27\27#$\3\2\34\35\3"+
"\2%-\4\2\34\35%&\4\2\27\27##\2\u01c5\2\64\3\2\2\2\48\3\2\2\2\6>\3\2\2"+
"\2\bA\3\2\2\2\nE\3\2\2\2\fW\3\2\2\2\16Y\3\2\2\2\20a\3\2\2\2\22e\3\2\2"+
"\2\24s\3\2\2\2\26|\3\2\2\2\30\177\3\2\2\2\32\u00b6\3\2\2\2\34\u00b9\3"+
"\2\2\2\36\u00ca\3\2\2\2 \u00d0\3\2\2\2\"\u0107\3\2\2\2$\u0133\3\2\2\2"+
"&\u013e\3\2\2\2(\u0144\3\2\2\2*\u014a\3\2\2\2,\u014c\3\2\2\2.\u0150\3"+
"\2\2\2\60\u0170\3\2\2\2\62\u0180\3\2\2\2\64\65\5\6\4\2\65\66\5\n\6\2\66"+
"\67\7\2\2\3\67\3\3\2\2\289\5&\24\29:\7\2\2\3:\5\3\2\2\2;=\5\b\5\2<;\3"+
"\2\2\2=@\3\2\2\2><\3\2\2\2>?\3\2\2\2?\7\3\2\2\2@>\3\2\2\2AB\7\3\2\2BC"+
"\7\66\2\2C\t\3\2\2\2DF\5\f\7\2ED\3\2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f\u0090\7\5\2\2\u0090"+
"\u0093\5\32\16\2\u0091\u0092\7\16\2\2\u0092\u0094\5\32\16\2\u0093\u0091"+
"\3\2\2\2\u0093\u0094\3\2\2\2\u0094\u00b7\3\2\2\2\u0095\u0096\7\17\2\2"+
"\u0096\u0097\7\4\2\2\u0097\u0098\5\"\22\2\u0098\u0099\7\5\2\2\u0099\u009a"+
"\5\32\16\2\u009a\u00b7\3\2\2\2\u009b\u009c\7\20\2\2\u009c\u009d\5\32\16"+
"\2\u009d\u009e\7\17\2\2\u009e\u009f\7\4\2\2\u009f\u00a0\5\"\22\2\u00a0"+
"\u00a1\7\5\2\2\u00a1\u00a2\7\n\2\2\u00a2\u00b7\3\2\2\2\u00a3\u00a4\7\21"+
"\2\2\u00a4\u00a6\7\4\2\2\u00a5\u00a7\5\34\17\2\u00a6\u00a5\3\2\2\2\u00a6"+
"\u00a7\3\2\2\2\u00a7\u00a8\3\2\2\2\u00a8\u00a9\5\36\20\2\u00a9\u00aa\7"+
"\5\2\2\u00aa\u00ab\5\32\16\2\u00ab\u00b7\3\2\2\2\u00ac\u00ae\7\22\2\2"+
"\u00ad\u00af\5\"\22\2\u00ae\u00ad\3\2\2\2\u00ae\u00af\3\2\2\2\u00af\u00b0"+
"\3\2\2\2\u00b0\u00b7\7\n\2\2\u00b1\u00b2\7\23\2\2\u00b2\u00b3\7\6\2\2"+
"\u00b3\u00b4\5&\24\2\u00b4\u00b5\7\7\2\2\u00b5\u00b7\3\2\2\2\u00b6\u0083"+
"\3\2\2\2\u00b6\u0084\3\2\2\2\u00b6\u0089\3\2\2\2\u00b6\u008c\3\2\2\2\u00b6"+
"\u0095\3\2\2\2\u00b6\u009b\3\2\2\2\u00b6\u00a3\3\2\2\2\u00b6\u00ac\3\2"+
"\2\2\u00b6\u00b1\3\2\2\2\u00b7\33\3\2\2\2\u00b8\u00ba\5 \21\2\u00b9\u00b8"+
"\3\2\2\2\u00b9\u00ba\3\2\2\2\u00ba\u00bb\3\2\2\2\u00bb\u00be\7B\2\2\u00bc"+
"\u00bd\7\t\2\2\u00bd\u00bf\5\"\22\2\u00be\u00bc\3\2\2\2\u00be\u00bf\3"+
"\2\2\2\u00bf\35\3\2\2\2\u00c0\u00c1\7\n\2\2\u00c1\u00c2\5\"\22\2\u00c2"+
"\u00c3\7\n\2\2\u00c3\u00c4\5\"\22\2\u00c4\u00cb\3\2\2\2\u00c5\u00c6\7"+
"\24\2\2\u00c6\u00c7\5\"\22\2\u00c7\u00c8\7\25\2\2\u00c8\u00c9\5\"\22\2"+
"\u00c9\u00cb\3\2\2\2\u00ca\u00c0\3\2\2\2\u00ca\u00c5\3\2\2\2\u00cb\37"+
"\3\2\2\2\u00cc\u00cd\b\21\1\2\u00cd\u00d1\7\65\2\2\u00ce\u00cf\7\26\2"+
"\2\u00cf\u00d1\7\65\2\2\u00d0\u00cc\3\2\2\2\u00d0\u00ce\3\2\2\2\u00d1"+
"\u00dc\3\2\2\2\u00d2\u00d3\f\4\2\2\u00d3\u00db\7\27\2\2\u00d4\u00d5\f"+
"\3\2\2\u00d5\u00d7\7\30\2\2\u00d6\u00d8\5\"\22\2\u00d7\u00d6\3\2\2\2\u00d7"+
"\u00d8\3\2\2\2\u00d8\u00d9\3\2\2\2\u00d9\u00db\7\31\2\2\u00da\u00d2\3"+
"\2\2\2\u00da\u00d4\3\2\2\2\u00db\u00de\3\2\2\2\u00dc\u00da\3\2\2\2\u00dc"+
"\u00dd\3\2\2\2\u00dd!\3\2\2\2\u00de\u00dc\3\2\2\2\u00df\u00e0\b\22\1\2"+
"\u00e0\u00e1\7\4\2\2\u00e1\u00e2\5\"\22\2\u00e2\u00e3\7\5\2\2\u00e3\u0108"+
"\3\2\2\2\u00e4\u00e5\7B\2\2\u00e5\u00e7\7\4\2\2\u00e6\u00e8\5$\23\2\u00e7"+
"\u00e6\3\2\2\2\u00e7\u00e8\3\2\2\2\u00e8\u00e9\3\2\2\2\u00e9\u0108\7\5"+
"\2\2\u00ea\u00eb\7\4\2\2\u00eb\u00ec\5 \21\2\u00ec\u00ed\7\5\2\2\u00ed"+
"\u00ee\5\"\22\30\u00ee\u0108\3\2\2\2\u00ef\u00f0\t\2\2\2\u00f0\u0108\5"+
"\"\22\27\u00f1\u00f2\7\27\2\2\u00f2\u0108\5\"\22\25\u00f3\u00f4\t\3\2"+
"\2\u00f4\u0108\5\"\22\24\u00f5\u00f6\t\4\2\2\u00f6\u0108\5\"\22\20\u00f7"+
"\u00f8\7\6\2\2\u00f8\u00fd\5\"\22\2\u00f9\u00fa\7\b\2\2\u00fa\u00fc\5"+
"\"\22\2\u00fb\u00f9\3\2\2\2\u00fc\u00ff\3\2\2\2\u00fd\u00fb\3\2\2\2\u00fd"+
"\u00fe\3\2\2\2\u00fe\u0100\3\2\2\2\u00ff\u00fd\3\2\2\2\u0100\u0101\7\7"+
"\2\2\u0101\u0108\3\2\2\2\u0102\u0108\7B\2\2\u0103\u0108\79\2\2\u0104\u0108"+
"\7\66\2\2\u0105\u0108\7\67\2\2\u0106\u0108\78\2\2\u0107\u00df\3\2\2\2"+
"\u0107\u00e4\3\2\2\2\u0107\u00ea\3\2\2\2\u0107\u00ef\3\2\2\2\u0107\u00f1"+
"\3\2\2\2\u0107\u00f3\3\2\2\2\u0107\u00f5\3\2\2\2\u0107\u00f7\3\2\2\2\u0107"+
"\u0102\3\2\2\2\u0107\u0103\3\2\2\2\u0107\u0104\3\2\2\2\u0107\u0105\3\2"+
"\2\2\u0107\u0106\3\2\2\2\u0108\u0130\3\2\2\2\u0109\u010a\f\23\2\2\u010a"+
"\u010b\t\5\2\2\u010b\u012f\5\"\22\24\u010c\u010d\f\22\2\2\u010d\u010e"+
"\t\6\2\2\u010e\u012f\5\"\22\23\u010f\u0110\f\21\2\2\u0110\u0111\t\7\2"+
"\2\u0111\u012f\5\"\22\22\u0112\u0113\f\17\2\2\u0113\u0114\t\b\2\2\u0114"+
"\u012f\5\"\22\20\u0115\u0116\f\16\2\2\u0116\u0117\7\37\2\2\u0117\u012f"+
"\5\"\22\17\u0118\u0119\f\r\2\2\u0119\u011a\7.\2\2\u011a\u012f\5\"\22\16"+
"\u011b\u011c\f\f\2\2\u011c\u011d\7/\2\2\u011d\u012f\5\"\22\r\u011e\u011f"+
"\f\13\2\2\u011f\u0120\7\60\2\2\u0120\u012f\5\"\22\f\u0121\u0122\f\n\2"+
"\2\u0122\u0123\7\61\2\2\u0123\u012f\5\"\22\13\u0124\u0125\f\t\2\2\u0125"+
"\u0126\7\t\2\2\u0126\u012f\5\"\22\t\u0127\u0128\f\31\2\2\u0128\u0129\7"+
"\30\2\2\u0129\u012a\5\"\22\2\u012a\u012b\7\31\2\2\u012b\u012f\3\2\2\2"+
"\u012c\u012d\f\26\2\2\u012d\u012f\t\2\2\2\u012e\u0109\3\2\2\2\u012e\u010c"+
"\3\2\2\2\u012e\u010f\3\2\2\2\u012e\u0112\3\2\2\2\u012e\u0115\3\2\2\2\u012e"+
"\u0118\3\2\2\2\u012e\u011b\3\2\2\2\u012e\u011e\3\2\2\2\u012e\u0121\3\2"+
"\2\2\u012e\u0124\3\2\2\2\u012e\u0127\3\2\2\2\u012e\u012c\3\2\2\2\u012f"+
"\u0132\3\2\2\2\u0130\u012e\3\2\2\2\u0130\u0131\3\2\2\2\u0131#\3\2\2\2"+
"\u0132\u0130\3\2\2\2\u0133\u0138\5\"\22\2\u0134\u0135\7\b\2\2\u0135\u0137"+
"\5\"\22\2\u0136\u0134\3\2\2\2\u0137\u013a\3\2\2\2\u0138\u0136\3\2\2\2"+
"\u0138\u0139\3\2\2\2\u0139%\3\2\2\2\u013a\u0138\3\2\2\2\u013b\u013d\5"+
"(\25\2\u013c\u013b\3\2\2\2\u013d\u0140\3\2\2\2\u013e\u013c\3\2\2\2\u013e"+
"\u013f\3\2\2\2\u013f\'\3\2\2\2\u0140\u013e\3\2\2\2\u0141\u0145\5*\26\2"+
"\u0142\u0145\5,\27\2\u0143\u0145\5.\30\2\u0144\u0141\3\2\2\2\u0144\u0142"+
"\3\2\2\2\u0144\u0143\3\2\2\2\u0145)\3\2\2\2\u0146\u0147\7B\2\2\u0147\u014b"+
"\7\24\2\2\u0148\u0149\7\36\2\2\u0149\u014b\7\24\2\2\u014a\u0146\3\2\2"+
"\2\u014a\u0148\3\2\2\2\u014b+\3\2\2\2\u014c\u014e\7\64\2\2\u014d\u014f"+
"\5\60\31\2\u014e\u014d\3\2\2\2\u014e\u014f\3\2\2\2\u014f-\3\2\2\2\u0150"+
"\u0151\7\62\2\2\u0151\u0156\5\62\32\2\u0152\u0153\7\b\2\2\u0153\u0155"+
"\5\62\32\2\u0154\u0152\3\2\2\2\u0155\u0158\3\2\2\2\u0156\u0154\3\2\2\2"+
"\u0156\u0157\3\2\2\2\u0157/\3\2\2\2\u0158\u0156\3\2\2\2\u0159\u0171\5"+
"\62\32\2\u015a\u015b\7\63\2\2\u015b\u0171\5\62\32\2\u015c\u015d\5\62\32"+
"\2\u015d\u015e\7\b\2\2\u015e\u015f\7B\2\2\u015f\u0171\3\2\2\2\u0160\u0161"+
"\7\4\2\2\u0161\u0162\5\62\32\2\u0162\u0163\7\5\2\2\u0163\u0164\7\b\2\2"+
"\u0164\u0165\7B\2\2\u0165\u0171\3\2\2\2\u0166\u0167\7\4\2\2\u0167\u0168"+
"\5\62\32\2\u0168\u0169\7\b\2\2\u0169\u016a\7B\2\2\u016a\u016b\7\5\2\2"+
"\u016b\u0171\3\2\2\2\u016c\u016d\7\4\2\2\u016d\u016e\5\62\32\2\u016e\u016f"+
"\7\5\2\2\u016f\u0171\3\2\2\2\u0170\u0159\3\2\2\2\u0170\u015a\3\2\2\2\u0170"+
"\u015c\3\2\2\2\u0170\u0160\3\2\2\2\u0170\u0166\3\2\2\2\u0170\u016c\3\2"+
"\2\2\u0171\61\3\2\2\2\u0172\u0173\b\32\1\2\u0173\u0174\7\4\2\2\u0174\u0175"+
"\5\62\32\2\u0175\u0176\7\5\2\2\u0176\u0181\3\2\2\2\u0177\u0178\t\t\2\2"+
"\u0178\u0181\5\62\32\n\u0179\u0181\7B\2\2\u017a\u0181\7C\2\2\u017b\u017c"+
"\7\6\2\2\u017c\u017d\7B\2\2\u017d\u0181\7\7\2\2\u017e\u0181\79\2\2\u017f"+
"\u0181\7\67\2\2\u0180\u0172\3\2\2\2\u0180\u0177\3\2\2\2\u0180\u0179\3"+
"\2\2\2\u0180\u017a\3\2\2\2\u0180\u017b\3\2\2\2\u0180\u017e\3\2\2\2\u0180"+
"\u017f\3\2\2\2\u0181\u018d\3\2\2\2\u0182\u0183\f\13\2\2\u0183\u0184\t"+
"\5\2\2\u0184\u018c\5\62\32\f\u0185\u0186\f\t\2\2\u0186\u0187\t\n\2\2\u0187"+
"\u018c\5\62\32\n\u0188\u0189\f\b\2\2\u0189\u018a\t\7\2\2\u018a\u018c\5"+
"\62\32\t\u018b\u0182\3\2\2\2\u018b\u0185\3\2\2\2\u018b\u0188\3\2\2\2\u018c"+
"\u018f\3\2\2\2\u018d\u018b\3\2\2\2\u018d\u018e\3\2\2\2\u018e\63\3\2\2"+
"\2\u018f\u018d\3\2\2\2)>GMRW^einu|\u0081\u0086\u0093\u00a6\u00ae\u00b6"+
"\u00b9\u00be\u00ca\u00d0\u00d7\u00da\u00dc\u00e7\u00fd\u0107\u012e\u0130"+
"\u0138\u013e\u0144\u014a\u014e\u0156\u0170\u0180\u018b\u018d";
public static final ATN _ATN =
new ATNDeserializer().deserialize(_serializedATN.toCharArray());
static {

View File

@ -414,6 +414,13 @@ public interface KickCVisitor<T> extends ParseTreeVisitor<T> {
* @return the visitor result
*/
T visitAsmExprLabelRel(KickCParser.AsmExprLabelRelContext ctx);
/**
* Visit a parse tree produced by the {@code asmExprPar}
* labeled alternative in {@link KickCParser#asmExpr}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitAsmExprPar(KickCParser.AsmExprParContext ctx);
/**
* Visit a parse tree produced by the {@code asmExprBinary}
* labeled alternative in {@link KickCParser#asmExpr}.