UNPKG

univac

Version:

Generate AST of lots of common programming languages using antlr4. JavaScript API and CLI tool.

1,246 lines (1,098 loc) 128 kB
// @ts-nocheck // Generated from LessParser.g4 by ANTLR 4.7.2 // jshint ignore: start var antlr4 = require('antlr4/index'); var LessParserListener = require('./LessParserListener').LessParserListener; var grammarFileName = "LessParser.g4"; var serializedATN = ["\u0003\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964", "\u0003\u0091\u0173\u0004\u0002\t\u0002\u0004\u0003\t\u0003\u0004\u0004", "\t\u0004\u0004\u0005\t\u0005\u0004\u0006\t\u0006\u0004\u0007\t\u0007", "\u0004\b\t\b\u0004\t\t\t\u0004\n\t\n\u0004\u000b\t\u000b\u0004\f\t\f", "\u0004\r\t\r\u0004\u000e\t\u000e\u0004\u000f\t\u000f\u0004\u0010\t\u0010", "\u0004\u0011\t\u0011\u0004\u0012\t\u0012\u0004\u0013\t\u0013\u0004\u0014", "\t\u0014\u0004\u0015\t\u0015\u0004\u0016\t\u0016\u0004\u0017\t\u0017", "\u0004\u0018\t\u0018\u0004\u0019\t\u0019\u0004\u001a\t\u001a\u0004\u001b", "\t\u001b\u0004\u001c\t\u001c\u0004\u001d\t\u001d\u0004\u001e\t\u001e", "\u0004\u001f\t\u001f\u0004 \t \u0004!\t!\u0004\"\t\"\u0004#\t#\u0004", "$\t$\u0004%\t%\u0004&\t&\u0003\u0002\u0007\u0002N\n\u0002\f\u0002\u000e", "\u0002Q\u000b\u0002\u0003\u0003\u0003\u0003\u0003\u0003\u0003\u0003", "\u0003\u0003\u0003\u0003\u0005\u0003Y\n\u0003\u0003\u0004\u0003\u0004", "\u0003\u0004\u0003\u0004\u0005\u0004_\n\u0004\u0003\u0005\u0006\u0005", "b\n\u0005\r\u0005\u000e\u0005c\u0003\u0005\u0005\u0005g\n\u0005\u0003", "\u0006\u0003\u0006\u0003\u0007\u0003\u0007\u0003\u0007\u0003\b\u0003", "\b\u0003\b\u0003\b\u0003\b\u0003\b\u0003\b\u0003\b\u0005\bv\n\b\u0003", "\b\u0003\b\u0003\b\u0003\b\u0003\b\u0003\b\u0003\b\u0003\b\u0003\b\u0005", "\b\u0081\n\b\u0003\t\u0003\t\u0003\t\u0005\t\u0086\n\t\u0003\t\u0003", "\t\u0003\n\u0003\n\u0003\n\u0007\n\u008d\n\n\f\n\u000e\n\u0090\u000b", "\n\u0003\u000b\u0003\u000b\u0003\u000b\u0003\u000b\u0003\u000b\u0003", "\u000b\u0003\u000b\u0003\u000b\u0003\u000b\u0005\u000b\u009b\n\u000b", "\u0003\f\u0003\f\u0003\f\u0003\f\u0003\f\u0005\f\u00a2\n\f\u0003\r\u0003", "\r\u0003\r\u0003\r\u0003\u000e\u0003\u000e\u0003\u000e\u0003\u000e\u0003", "\u000e\u0007\u000e\u00ad\n\u000e\f\u000e\u000e\u000e\u00b0\u000b\u000e", "\u0003\u000e\u0003\u000e\u0005\u000e\u00b4\n\u000e\u0003\u000e\u0003", "\u000e\u0005\u000e\u00b8\n\u000e\u0003\u000e\u0003\u000e\u0003\u000f", "\u0003\u000f\u0003\u0010\u0003\u0010\u0003\u0010\u0003\u0010\u0005\u0010", "\u00c2\n\u0010\u0003\u0011\u0003\u0011\u0003\u0011\u0007\u0011\u00c7", "\n\u0011\f\u0011\u000e\u0011\u00ca\u000b\u0011\u0003\u0012\u0003\u0012", "\u0003\u0012\u0003\u0013\u0003\u0013\u0003\u0013\u0003\u0013\u0003\u0013", "\u0003\u0013\u0007\u0013\u00d5\n\u0013\f\u0013\u000e\u0013\u00d8\u000b", "\u0013\u0003\u0013\u0005\u0013\u00db\n\u0013\u0003\u0013\u0003\u0013", "\u0003\u0014\u0003\u0014\u0003\u0014\u0003\u0014\u0003\u0014\u0007\u0014", "\u00e4\n\u0014\f\u0014\u000e\u0014\u00e7\u000b\u0014\u0005\u0014\u00e9", "\n\u0014\u0003\u0014\u0005\u0014\u00ec\n\u0014\u0003\u0014\u0003\u0014", "\u0005\u0014\u00f0\n\u0014\u0003\u0014\u0003\u0014\u0003\u0015\u0003", "\u0015\u0003\u0015\u0003\u0016\u0003\u0016\u0005\u0016\u00f9\n\u0016", "\u0003\u0017\u0003\u0017\u0003\u0017\u0005\u0017\u00fe\n\u0017\u0003", "\u0017\u0003\u0017\u0005\u0017\u0102\n\u0017\u0003\u0017\u0003\u0017", "\u0003\u0018\u0003\u0018\u0003\u0018\u0007\u0018\u0109\n\u0018\f\u0018", "\u000e\u0018\u010c\u000b\u0018\u0003\u0019\u0006\u0019\u010f\n\u0019", "\r\u0019\u000e\u0019\u0110\u0003\u0019\u0007\u0019\u0114\n\u0019\f\u0019", "\u000e\u0019\u0117\u000b\u0019\u0003\u0019\u0005\u0019\u011a\n\u0019", "\u0003\u001a\u0003\u001a\u0003\u001a\u0003\u001a\u0003\u001a\u0005\u001a", "\u0121\n\u001a\u0003\u001a\u0003\u001a\u0003\u001b\u0003\u001b\u0003", "\u001b\u0003\u001b\u0005\u001b\u0129\n\u001b\u0003\u001b\u0003\u001b", "\u0005\u001b\u012d\n\u001b\u0003\u001b\u0003\u001b\u0003\u001c\u0003", "\u001c\u0003\u001c\u0003\u001d\u0003\u001d\u0003\u001d\u0003\u001d\u0003", "\u001d\u0003\u001d\u0003\u001d\u0003\u001d\u0003\u001d\u0003\u001d\u0005", "\u001d\u013e\n\u001d\u0003\u001e\u0003\u001e\u0003\u001f\u0003\u001f", "\u0003 \u0003 \u0007 \u0146\n \f \u000e \u0149\u000b \u0003 \u0003 ", "\u0003 \u0003 \u0007 \u014f\n \f \u000e \u0152\u000b \u0005 \u0154\n", " \u0003!\u0003!\u0003!\u0003!\u0003!\u0005!\u015b\n!\u0003\"\u0003\"", "\u0003#\u0003#\u0003#\u0003#\u0003$\u0003$\u0003$\u0007$\u0166\n$\f", "$\u000e$\u0169\u000b$\u0003%\u0003%\u0003%\u0003%\u0003&\u0003&\u0005", "&\u0171\n&\u0003&\u0002\u0002\'\u0002\u0004\u0006\b\n\f\u000e\u0010", "\u0012\u0014\u0016\u0018\u001a\u001c\u001e \"$&(*,.02468:<>@BDFHJ\u0002", "\u000b\u0003\u0002\u001a\u001e\u0004\u0002\u0013\u001366\u0006\u0002", "\u000e\u000e\u0010\u0010 !##\u0003\u0002.3\u0003\u000278\u0004\u0002", "\u0011\u0011\u0019\u0019\u0004\u0002\u000e\u000f\u001a\u001a\u0003\u0002", "#%\u0004\u000277\u0091\u0091\u0002\u0184\u0002O\u0003\u0002\u0002\u0002", "\u0004X\u0003\u0002\u0002\u0002\u0006^\u0003\u0002\u0002\u0002\ba\u0003", "\u0002\u0002\u0002\nh\u0003\u0002\u0002\u0002\fj\u0003\u0002\u0002\u0002", "\u000e\u0080\u0003\u0002\u0002\u0002\u0010\u0082\u0003\u0002\u0002\u0002", "\u0012\u0089\u0003\u0002\u0002\u0002\u0014\u009a\u0003\u0002\u0002\u0002", "\u0016\u00a1\u0003\u0002\u0002\u0002\u0018\u00a3\u0003\u0002\u0002\u0002", "\u001a\u00a7\u0003\u0002\u0002\u0002\u001c\u00bb\u0003\u0002\u0002\u0002", "\u001e\u00c1\u0003\u0002\u0002\u0002 \u00c3\u0003\u0002\u0002\u0002", "\"\u00cb\u0003\u0002\u0002\u0002$\u00ce\u0003\u0002\u0002\u0002&\u00de", "\u0003\u0002\u0002\u0002(\u00f3\u0003\u0002\u0002\u0002*\u00f8\u0003", "\u0002\u0002\u0002,\u00fa\u0003\u0002\u0002\u0002.\u0105\u0003\u0002", "\u0002\u00020\u010e\u0003\u0002\u0002\u00022\u011b\u0003\u0002\u0002", "\u00024\u0124\u0003\u0002\u0002\u00026\u0130\u0003\u0002\u0002\u0002", "8\u013d\u0003\u0002\u0002\u0002:\u013f\u0003\u0002\u0002\u0002<\u0141", "\u0003\u0002\u0002\u0002>\u0153\u0003\u0002\u0002\u0002@\u015a\u0003", "\u0002\u0002\u0002B\u015c\u0003\u0002\u0002\u0002D\u015e\u0003\u0002", "\u0002\u0002F\u0162\u0003\u0002\u0002\u0002H\u016a\u0003\u0002\u0002", "\u0002J\u016e\u0003\u0002\u0002\u0002LN\u0005\u0004\u0003\u0002ML\u0003", "\u0002\u0002\u0002NQ\u0003\u0002\u0002\u0002OM\u0003\u0002\u0002\u0002", "OP\u0003\u0002\u0002\u0002P\u0003\u0003\u0002\u0002\u0002QO\u0003\u0002", "\u0002\u0002RY\u0005\u001a\u000e\u0002SY\u0005\"\u0012\u0002TU\u0005", "\u0018\r\u0002UV\u0007\u0012\u0002\u0002VY\u0003\u0002\u0002\u0002W", "Y\u0005&\u0014\u0002XR\u0003\u0002\u0002\u0002XS\u0003\u0002\u0002\u0002", "XT\u0003\u0002\u0002\u0002XW\u0003\u0002\u0002\u0002Y\u0005\u0003\u0002", "\u0002\u0002Z[\u0007\u0016\u0002\u0002[_\u0005\u0006\u0004\u0002\\]", "\u0007\u0016\u0002\u0002]_\u00077\u0002\u0002^Z\u0003\u0002\u0002\u0002", "^\\\u0003\u0002\u0002\u0002_\u0007\u0003\u0002\u0002\u0002`b\u0005\u000e", "\b\u0002a`\u0003\u0002\u0002\u0002bc\u0003\u0002\u0002\u0002ca\u0003", "\u0002\u0002\u0002cd\u0003\u0002\u0002\u0002df\u0003\u0002\u0002\u0002", "eg\u0005\f\u0007\u0002fe\u0003\u0002\u0002\u0002fg\u0003\u0002\u0002", "\u0002g\t\u0003\u0002\u0002\u0002hi\t\u0002\u0002\u0002i\u000b\u0003", "\u0002\u0002\u0002jk\u0005\n\u0006\u0002kl\u0005\b\u0005\u0002l\r\u0003", "\u0002\u0002\u0002m\u0081\u0005J&\u0002no\u0005> \u0002op\u0007+\u0002", "\u0002p\u0081\u0003\u0002\u0002\u0002q\u0081\u0005> \u0002rs\u0005>", " \u0002su\u0007\b\u0002\u0002tv\u0005F$\u0002ut\u0003\u0002\u0002\u0002", "uv\u0003\u0002\u0002\u0002vw\u0003\u0002\u0002\u0002wx\u0007\t\u0002", "\u0002x\u0081\u0003\u0002\u0002\u0002y\u0081\u0007:\u0002\u0002z\u0081", "\u00078\u0002\u0002{\u0081\u0005H%\u0002|}\u0005\u0006\u0004\u0002}", "~\u0007+\u0002\u0002~\u0081\u0003\u0002\u0002\u0002\u007f\u0081\u0005", "\u0006\u0004\u0002\u0080m\u0003\u0002\u0002\u0002\u0080n\u0003\u0002", "\u0002\u0002\u0080q\u0003\u0002\u0002\u0002\u0080r\u0003\u0002\u0002", "\u0002\u0080y\u0003\u0002\u0002\u0002\u0080z\u0003\u0002\u0002\u0002", "\u0080{\u0003\u0002\u0002\u0002\u0080|\u0003\u0002\u0002\u0002\u0080", "\u007f\u0003\u0002\u0002\u0002\u0081\u000f\u0003\u0002\u0002\u0002\u0082", "\u0083\u0007>\u0002\u0002\u0083\u0085\u0007\b\u0002\u0002\u0084\u0086", "\u0005F$\u0002\u0085\u0084\u0003\u0002\u0002\u0002\u0085\u0086\u0003", "\u0002\u0002\u0002\u0086\u0087\u0003\u0002\u0002\u0002\u0087\u0088\u0007", "\t\u0002\u0002\u0088\u0011\u0003\u0002\u0002\u0002\u0089\u008e\u0005", "\u0014\u000b\u0002\u008a\u008b\t\u0003\u0002\u0002\u008b\u008d\u0005", "\u0014\u000b\u0002\u008c\u008a\u0003\u0002\u0002\u0002\u008d\u0090\u0003", "\u0002\u0002\u0002\u008e\u008c\u0003\u0002\u0002\u0002\u008e\u008f\u0003", "\u0002\u0002\u0002\u008f\u0013\u0003\u0002\u0002\u0002\u0090\u008e\u0003", "\u0002\u0002\u0002\u0091\u0092\u0007\b\u0002\u0002\u0092\u0093\u0005", "\u0016\f\u0002\u0093\u0094\u0007\t\u0002\u0002\u0094\u009b\u0003\u0002", "\u0002\u0002\u0095\u0096\u00075\u0002\u0002\u0096\u0097\u0007\b\u0002", "\u0002\u0097\u0098\u0005\u0016\f\u0002\u0098\u0099\u0007\t\u0002\u0002", "\u0099\u009b\u0003\u0002\u0002\u0002\u009a\u0091\u0003\u0002\u0002\u0002", "\u009a\u0095\u0003\u0002\u0002\u0002\u009b\u0015\u0003\u0002\u0002\u0002", "\u009c\u009d\u0005\b\u0005\u0002\u009d\u009e\t\u0004\u0002\u0002\u009e", "\u009f\u0005\b\u0005\u0002\u009f\u00a2\u0003\u0002\u0002\u0002\u00a0", "\u00a2\u0005\b\u0005\u0002\u00a1\u009c\u0003\u0002\u0002\u0002\u00a1", "\u00a0\u0003\u0002\u0002\u0002\u00a2\u0017\u0003\u0002\u0002\u0002\u00a3", "\u00a4\u0005\u0006\u0004\u0002\u00a4\u00a5\u0007\u0011\u0002\u0002\u00a5", "\u00a6\u0005F$\u0002\u00a6\u0019\u0003\u0002\u0002\u0002\u00a7\u00b3", "\u0007(\u0002\u0002\u00a8\u00a9\u0007\b\u0002\u0002\u00a9\u00ae\u0005", "\u001c\u000f\u0002\u00aa\u00ab\u0007\u0013\u0002\u0002\u00ab\u00ad\u0005", "\u001c\u000f\u0002\u00ac\u00aa\u0003\u0002\u0002\u0002\u00ad\u00b0\u0003", "\u0002\u0002\u0002\u00ae\u00ac\u0003\u0002\u0002\u0002\u00ae\u00af\u0003", "\u0002\u0002\u0002\u00af\u00b1\u0003\u0002\u0002\u0002\u00b0\u00ae\u0003", "\u0002\u0002\u0002\u00b1\u00b2\u0007\t\u0002\u0002\u00b2\u00b4\u0003", "\u0002\u0002\u0002\u00b3\u00a8\u0003\u0002\u0002\u0002\u00b3\u00b4\u0003", "\u0002\u0002\u0002\u00b4\u00b5\u0003\u0002\u0002\u0002\u00b5\u00b7\u0005", "\u001e\u0010\u0002\u00b6\u00b8\u0005 \u0011\u0002\u00b7\u00b6\u0003", "\u0002\u0002\u0002\u00b7\u00b8\u0003\u0002\u0002\u0002\u00b8\u00b9\u0003", "\u0002\u0002\u0002\u00b9\u00ba\u0007\u0012\u0002\u0002\u00ba\u001b\u0003", "\u0002\u0002\u0002\u00bb\u00bc\t\u0005\u0002\u0002\u00bc\u001d\u0003", "\u0002\u0002\u0002\u00bd\u00c2\u00078\u0002\u0002\u00be\u00bf\u0007", "\'\u0002\u0002\u00bf\u00c0\u0007\u008e\u0002\u0002\u00c0\u00c2\u0007", "\u008d\u0002\u0002\u00c1\u00bd\u0003\u0002\u0002\u0002\u00c1\u00be\u0003", "\u0002\u0002\u0002\u00c2\u001f\u0003\u0002\u0002\u0002\u00c3\u00c8\u0007", "7\u0002\u0002\u00c4\u00c5\u0007\u0013\u0002\u0002\u00c5\u00c7\u0007", "7\u0002\u0002\u00c6\u00c4\u0003\u0002\u0002\u0002\u00c7\u00ca\u0003", "\u0002\u0002\u0002\u00c8\u00c6\u0003\u0002\u0002\u0002\u00c8\u00c9\u0003", "\u0002\u0002\u0002\u00c9!\u0003\u0002\u0002\u0002\u00ca\u00c8\u0003", "\u0002\u0002\u0002\u00cb\u00cc\u0005.\u0018\u0002\u00cc\u00cd\u0005", "$\u0013\u0002\u00cd#\u0003\u0002\u0002\u0002\u00ce\u00d6\u0007\n\u0002", "\u0002\u00cf\u00d0\u0005D#\u0002\u00d0\u00d1\u0007\u0012\u0002\u0002", "\u00d1\u00d5\u0003\u0002\u0002\u0002\u00d2\u00d5\u0005\u0004\u0003\u0002", "\u00d3\u00d5\u0005,\u0017\u0002\u00d4\u00cf\u0003\u0002\u0002\u0002", "\u00d4\u00d2\u0003\u0002\u0002\u0002\u00d4\u00d3\u0003\u0002\u0002\u0002", "\u00d5\u00d8\u0003\u0002\u0002\u0002\u00d6\u00d4\u0003\u0002\u0002\u0002", "\u00d6\u00d7\u0003\u0002\u0002\u0002\u00d7\u00da\u0003\u0002\u0002\u0002", "\u00d8\u00d6\u0003\u0002\u0002\u0002\u00d9\u00db\u0005D#\u0002\u00da", "\u00d9\u0003\u0002\u0002\u0002\u00da\u00db\u0003\u0002\u0002\u0002\u00db", "\u00dc\u0003\u0002\u0002\u0002\u00dc\u00dd\u0007\u000b\u0002\u0002\u00dd", "%\u0003\u0002\u0002\u0002\u00de\u00df\u0005.\u0018\u0002\u00df\u00e8", "\u0007\b\u0002\u0002\u00e0\u00e5\u0005*\u0016\u0002\u00e1\u00e2\u0007", "\u0012\u0002\u0002\u00e2\u00e4\u0005*\u0016\u0002\u00e3\u00e1\u0003", "\u0002\u0002\u0002\u00e4\u00e7\u0003\u0002\u0002\u0002\u00e5\u00e3\u0003", "\u0002\u0002\u0002\u00e5\u00e6\u0003\u0002\u0002\u0002\u00e6\u00e9\u0003", "\u0002\u0002\u0002\u00e7\u00e5\u0003\u0002\u0002\u0002\u00e8\u00e0\u0003", "\u0002\u0002\u0002\u00e8\u00e9\u0003\u0002\u0002\u0002\u00e9\u00eb\u0003", "\u0002\u0002\u0002\u00ea\u00ec\u0007\u0006\u0002\u0002\u00eb\u00ea\u0003", "\u0002\u0002\u0002\u00eb\u00ec\u0003\u0002\u0002\u0002\u00ec\u00ed\u0003", "\u0002\u0002\u0002\u00ed\u00ef\u0007\t\u0002\u0002\u00ee\u00f0\u0005", "(\u0015\u0002\u00ef\u00ee\u0003\u0002\u0002\u0002\u00ef\u00f0\u0003", "\u0002\u0002\u0002\u00f0\u00f1\u0003\u0002\u0002\u0002\u00f1\u00f2\u0005", "$\u0013\u0002\u00f2\'\u0003\u0002\u0002\u0002\u00f3\u00f4\u00074\u0002", "\u0002\u00f4\u00f5\u0005\u0012\n\u0002\u00f5)\u0003\u0002\u0002\u0002", "\u00f6\u00f9\u0005\u0006\u0004\u0002\u00f7\u00f9\u0005\u0018\r\u0002", "\u00f8\u00f6\u0003\u0002\u0002\u0002\u00f8\u00f7\u0003\u0002\u0002\u0002", "\u00f9+\u0003\u0002\u0002\u0002\u00fa\u00fb\u00050\u0019\u0002\u00fb", "\u00fd\u0007\b\u0002\u0002\u00fc\u00fe\u0005F$\u0002\u00fd\u00fc\u0003", "\u0002\u0002\u0002\u00fd\u00fe\u0003\u0002\u0002\u0002\u00fe\u00ff\u0003", "\u0002\u0002\u0002\u00ff\u0101\u0007\t\u0002\u0002\u0100\u0102\u0007", "+\u0002\u0002\u0101\u0100\u0003\u0002\u0002\u0002\u0101\u0102\u0003", "\u0002\u0002\u0002\u0102\u0103\u0003\u0002\u0002\u0002\u0103\u0104\u0007", "\u0012\u0002\u0002\u0104-\u0003\u0002\u0002\u0002\u0105\u010a\u0005", "0\u0019\u0002\u0106\u0107\u0007\u0013\u0002\u0002\u0107\u0109\u0005", "0\u0019\u0002\u0108\u0106\u0003\u0002\u0002\u0002\u0109\u010c\u0003", "\u0002\u0002\u0002\u010a\u0108\u0003\u0002\u0002\u0002\u010a\u010b\u0003", "\u0002\u0002\u0002\u010b/\u0003\u0002\u0002\u0002\u010c\u010a\u0003", "\u0002\u0002\u0002\u010d\u010f\u00058\u001d\u0002\u010e\u010d\u0003", "\u0002\u0002\u0002\u010f\u0110\u0003\u0002\u0002\u0002\u0110\u010e\u0003", "\u0002\u0002\u0002\u0110\u0111\u0003\u0002\u0002\u0002\u0111\u0115\u0003", "\u0002\u0002\u0002\u0112\u0114\u00052\u001a\u0002\u0113\u0112\u0003", "\u0002\u0002\u0002\u0114\u0117\u0003\u0002\u0002\u0002\u0115\u0113\u0003", "\u0002\u0002\u0002\u0115\u0116\u0003\u0002\u0002\u0002\u0116\u0119\u0003", "\u0002\u0002\u0002\u0117\u0115\u0003\u0002\u0002\u0002\u0118\u011a\u0005", "6\u001c\u0002\u0119\u0118\u0003\u0002\u0002\u0002\u0119\u011a\u0003", "\u0002\u0002\u0002\u011a1\u0003\u0002\u0002\u0002\u011b\u011c\u0007", "\f\u0002\u0002\u011c\u0120\u00077\u0002\u0002\u011d\u011e\u0005<\u001f", "\u0002\u011e\u011f\t\u0006\u0002\u0002\u011f\u0121\u0003\u0002\u0002", "\u0002\u0120\u011d\u0003\u0002\u0002\u0002\u0120\u0121\u0003\u0002\u0002", "\u0002\u0121\u0122\u0003\u0002\u0002\u0002\u0122\u0123\u0007\r\u0002", "\u0002\u01233\u0003\u0002\u0002\u0002\u0124\u0125\u0007\u0011\u0002", "\u0002\u0125\u0126\u00075\u0002\u0002\u0126\u0128\u0007\b\u0002\u0002", "\u0127\u0129\u0007\f\u0002\u0002\u0128\u0127\u0003\u0002\u0002\u0002", "\u0128\u0129\u0003\u0002\u0002\u0002\u0129\u012a\u0003\u0002\u0002\u0002", "\u012a\u012c\u0005.\u0018\u0002\u012b\u012d\u0007\r\u0002\u0002\u012c", "\u012b\u0003\u0002\u0002\u0002\u012c\u012d\u0003\u0002\u0002\u0002\u012d", "\u012e\u0003\u0002\u0002\u0002\u012e\u012f\u0007\t\u0002\u0002\u012f", "5\u0003\u0002\u0002\u0002\u0130\u0131\t\u0007\u0002\u0002\u0131\u0132", "\u00077\u0002\u0002\u01327\u0003\u0002\u0002\u0002\u0133\u0134\u0005", ":\u001e\u0002\u0134\u0135\u0005> \u0002\u0135\u013e\u0003\u0002\u0002", "\u0002\u0136\u013e\u0005> \u0002\u0137\u0138\u0007\u0018\u0002\u0002", "\u0138\u013e\u0005> \u0002\u0139\u013e\u00056\u001c\u0002\u013a\u013e", "\u00054\u001b\u0002\u013b\u013e\u0007\u0017\u0002\u0002\u013c\u013e", "\u0007\u001b\u0002\u0002\u013d\u0133\u0003\u0002\u0002\u0002\u013d\u0136", "\u0003\u0002\u0002\u0002\u013d\u0137\u0003\u0002\u0002\u0002\u013d\u0139", "\u0003\u0002\u0002\u0002\u013d\u013a\u0003\u0002\u0002\u0002\u013d\u013b", "\u0003\u0002\u0002\u0002\u013d\u013c\u0003\u0002\u0002\u0002\u013e9", "\u0003\u0002\u0002\u0002\u013f\u0140\t\b\u0002\u0002\u0140;\u0003\u0002", "\u0002\u0002\u0141\u0142\t\t\u0002\u0002\u0142=\u0003\u0002\u0002\u0002", "\u0143\u0147\u00077\u0002\u0002\u0144\u0146\u0005@!\u0002\u0145\u0144", "\u0003\u0002\u0002\u0002\u0146\u0149\u0003\u0002\u0002\u0002\u0147\u0145", "\u0003\u0002\u0002\u0002\u0147\u0148\u0003\u0002\u0002\u0002\u0148\u0154", "\u0003\u0002\u0002\u0002\u0149\u0147\u0003\u0002\u0002\u0002\u014a\u014b", "\u0007\u0007\u0002\u0002\u014b\u014c\u0005B\"\u0002\u014c\u0150\u0007", "\u000b\u0002\u0002\u014d\u014f\u0005@!\u0002\u014e\u014d\u0003\u0002", "\u0002\u0002\u014f\u0152\u0003\u0002\u0002\u0002\u0150\u014e\u0003\u0002", "\u0002\u0002\u0150\u0151\u0003\u0002\u0002\u0002\u0151\u0154\u0003\u0002", "\u0002\u0002\u0152\u0150\u0003\u0002\u0002\u0002\u0153\u0143\u0003\u0002", "\u0002\u0002\u0153\u014a\u0003\u0002\u0002\u0002\u0154?\u0003\u0002", "\u0002\u0002\u0155\u0156\u0007\u0090\u0002\u0002\u0156\u0157\u0005B", "\"\u0002\u0157\u0158\u0007\u000b\u0002\u0002\u0158\u015b\u0003\u0002", "\u0002\u0002\u0159\u015b\u0007\u0091\u0002\u0002\u015a\u0155\u0003\u0002", "\u0002\u0002\u015a\u0159\u0003\u0002\u0002\u0002\u015bA\u0003\u0002", "\u0002\u0002\u015c\u015d\t\n\u0002\u0002\u015dC\u0003\u0002\u0002\u0002", "\u015e\u015f\u0005> \u0002\u015f\u0160\u0007\u0011\u0002\u0002\u0160", "\u0161\u0005F$\u0002\u0161E\u0003\u0002\u0002\u0002\u0162\u0167\u0005", "\b\u0005\u0002\u0163\u0164\u0007\u0013\u0002\u0002\u0164\u0166\u0005", "\b\u0005\u0002\u0165\u0163\u0003\u0002\u0002\u0002\u0166\u0169\u0003", "\u0002\u0002\u0002\u0167\u0165\u0003\u0002\u0002\u0002\u0167\u0168\u0003", "\u0002\u0002\u0002\u0168G\u0003\u0002\u0002\u0002\u0169\u0167\u0003", "\u0002\u0002\u0002\u016a\u016b\u0007\'\u0002\u0002\u016b\u016c\u0007", "\u008e\u0002\u0002\u016c\u016d\u0007\u008d\u0002\u0002\u016dI\u0003", "\u0002\u0002\u0002\u016e\u0170\u00079\u0002\u0002\u016f\u0171\u0007", "\u0005\u0002\u0002\u0170\u016f\u0003\u0002\u0002\u0002\u0170\u0171\u0003", "\u0002\u0002\u0002\u0171K\u0003\u0002\u0002\u0002*OX^cfu\u0080\u0085", "\u008e\u009a\u00a1\u00ae\u00b3\u00b7\u00c1\u00c8\u00d4\u00d6\u00da\u00e5", "\u00e8\u00eb\u00ef\u00f8\u00fd\u0101\u010a\u0110\u0115\u0119\u0120\u0128", "\u012c\u013d\u0147\u0150\u0153\u015a\u0167\u0170"].join(""); var atn = new antlr4.atn.ATNDeserializer().deserialize(serializedATN); var decisionsToDFA = atn.decisionToState.map( function(ds, index) { return new antlr4.dfa.DFA(ds, index); }); var sharedContextCache = new antlr4.PredictionContextCache(); var literalNames = [ null, "'null'", "'in'", null, "'...'", null, "'('", "')'", "'{'", "'}'", "'['", "']'", "'>'", "'~'", "'<'", "':'", "';'", "','", "'.'", "'$'", "'@'", "'&'", "'#'", "'::'", "'+'", "'*'", "'/'", "'-'", null, "'=='", "'>='", "'<='", "'!='", "'='", "'|='", "'~='", "'url'", null, "'@import'", "'@media'", "':extend'", "'!important'", "'@arguments'", "'@rest'", "'reference'", "'inline'", "'less'", "'css'", "'once'", "'multiple'", "'when'", "'not'", "'and'", null, null, null, null, null, null, null, null, "'color'", "'convert'", "'data-uri'", "'default'", "'unit'", "'get-unit'", "'svg-gradient'", "'escape'", "'e'", null, "'replace'", "'length'", "'extract'", "'ceil'", "'floor'", "'percentage'", "'round'", "'sqrt'", "'abs'", "'sin'", "'asin'", "'cos'", "'acos'", "'tan'", "'atan'", "'pi'", "'pow'", "'mod'", "'min'", "'max'", "'isnumber'", "'isstring'", "'iscolor'", "'iskeyword'", "'isurl'", "'ispixel'", "'isem'", "'ispercentage'", "'isunit'", "'rgb'", "'rgba'", "'argb'", "'hsl'", "'hsla'", "'hsv'", "'hsva'", "'hue'", "'saturation'", "'lightness'", "'hsvhue'", "'hsvsaturation'", "'hsvvalue'", "'red'", "'green'", "'blue'", "'alpha'", "'luma'", "'luminance'", "'saturate'", "'desaturate'", "'lighten'", "'darken'", "'fadein'", "'fadeout'", "'fade'", "'spin'", "'mix'", "'greyscale'", "'contrast'", "'multiply'", "'screen'", "'overlay'", "'softlight'", "'hardlight'", "'difference'", "'exclusion'", "'average'", "'negation'" ]; var symbolicNames = [ null, "NULL", "IN", "Unit", "Ellipsis", "InterpolationStart", "LPAREN", "RPAREN", "BlockStart", "BlockEnd", "LBRACK", "RBRACK", "GT", "TIL", "LT", "COLON", "SEMI", "COMMA", "DOT", "DOLLAR", "AT", "PARENTREF", "HASH", "COLONCOLON", "PLUS", "TIMES", "DIV", "MINUS", "PERC", "EQEQ", "GTEQ", "LTEQ", "NOTEQ", "EQ", "PIPE_EQ", "TILD_EQ", "URL", "UrlStart", "IMPORT", "MEDIA", "EXTEND", "IMPORTANT", "ARGUMENTS", "REST", "REFERENCE", "INLINE", "LESS", "CSS", "ONCE", "MULTIPLE", "WHEN", "NOT", "AND", "Identifier", "StringLiteral", "Number", "Color", "WS", "SL_COMMENT", "COMMENT", "FUNCTION_NAME", "COLOR", "CONVERT", "DATA_URI", "DEFAULT", "UNIT", "GET_UNIT", "SVG_GRADIENT", "ESCAPE", "E", "FORMAT", "REPLACE", "LENGTH", "EXTRACT", "CEIL", "FLOOR", "PERCENTAGE", "ROUND", "SQRT", "ABS", "SIN", "ASIN", "COS", "ACOS", "TAN", "ATAN", "PI", "POW", "MOD", "MIN", "MAX", "ISNUMBER", "ISSTRING", "ISCOLOR", "ISKEYWORD", "ISURL", "ISPIXEL", "ISEM", "ISPERCENTAGE", "ISUNIT", "RGB", "RGBA", "ARGB", "HSL", "HSLA", "HSV", "HSVA", "HUE", "SATURATION", "LIGHTNESS", "HSVHUE", "HSVSATURATION", "HSVVALUE", "RED", "GREEN", "BLUE", "ALPHA", "LUMA", "LUMINANCE", "SATURATE", "DESATURATE", "LIGHTEN", "DARKEN", "FADEIN", "FADEOUT", "FADE", "SPIN", "MIX", "GREYSCALE", "CONTRAST", "MULTIPLY", "SCREEN", "OVERLAY", "SOFTLIGHT", "HARDLIGHT", "DIFFERENCE", "EXCLUSION", "AVERAGE", "NEGATION", "UrlEnd", "Url", "SPACE", "InterpolationStartAfter", "IdentifierAfter" ]; var ruleNames = [ "stylesheet", "statement", "variableName", "commandStatement", "mathCharacter", "mathStatement", "expression", "function", "conditions", "condition", "conditionStatement", "variableDeclaration", "importDeclaration", "importOption", "referenceUrl", "mediaTypes", "ruleset", "block", "mixinDefinition", "mixinGuard", "mixinDefinitionParam", "mixinReference", "selectors", "selector", "attrib", "negation", "pseudo", "element", "selectorPrefix", "attribRelate", "identifier", "identifierPart", "identifierVariableName", "property", "values", "url", "measurement" ]; function LessParser (input) { antlr4.Parser.call(this, input); this._interp = new antlr4.atn.ParserATNSimulator(this, atn, decisionsToDFA, sharedContextCache); this.ruleNames = ruleNames; this.literalNames = literalNames; this.symbolicNames = symbolicNames; return this; } LessParser.prototype = Object.create(antlr4.Parser.prototype); LessParser.prototype.constructor = LessParser; Object.defineProperty(LessParser.prototype, "atn", { get : function() { return atn; } }); LessParser.EOF = antlr4.Token.EOF; LessParser.NULL = 1; LessParser.IN = 2; LessParser.Unit = 3; LessParser.Ellipsis = 4; LessParser.InterpolationStart = 5; LessParser.LPAREN = 6; LessParser.RPAREN = 7; LessParser.BlockStart = 8; LessParser.BlockEnd = 9; LessParser.LBRACK = 10; LessParser.RBRACK = 11; LessParser.GT = 12; LessParser.TIL = 13; LessParser.LT = 14; LessParser.COLON = 15; LessParser.SEMI = 16; LessParser.COMMA = 17; LessParser.DOT = 18; LessParser.DOLLAR = 19; LessParser.AT = 20; LessParser.PARENTREF = 21; LessParser.HASH = 22; LessParser.COLONCOLON = 23; LessParser.PLUS = 24; LessParser.TIMES = 25; LessParser.DIV = 26; LessParser.MINUS = 27; LessParser.PERC = 28; LessParser.EQEQ = 29; LessParser.GTEQ = 30; LessParser.LTEQ = 31; LessParser.NOTEQ = 32; LessParser.EQ = 33; LessParser.PIPE_EQ = 34; LessParser.TILD_EQ = 35; LessParser.URL = 36; LessParser.UrlStart = 37; LessParser.IMPORT = 38; LessParser.MEDIA = 39; LessParser.EXTEND = 40; LessParser.IMPORTANT = 41; LessParser.ARGUMENTS = 42; LessParser.REST = 43; LessParser.REFERENCE = 44; LessParser.INLINE = 45; LessParser.LESS = 46; LessParser.CSS = 47; LessParser.ONCE = 48; LessParser.MULTIPLE = 49; LessParser.WHEN = 50; LessParser.NOT = 51; LessParser.AND = 52; LessParser.Identifier = 53; LessParser.StringLiteral = 54; LessParser.Number = 55; LessParser.Color = 56; LessParser.WS = 57; LessParser.SL_COMMENT = 58; LessParser.COMMENT = 59; LessParser.FUNCTION_NAME = 60; LessParser.COLOR = 61; LessParser.CONVERT = 62; LessParser.DATA_URI = 63; LessParser.DEFAULT = 64; LessParser.UNIT = 65; LessParser.GET_UNIT = 66; LessParser.SVG_GRADIENT = 67; LessParser.ESCAPE = 68; LessParser.E = 69; LessParser.FORMAT = 70; LessParser.REPLACE = 71; LessParser.LENGTH = 72; LessParser.EXTRACT = 73; LessParser.CEIL = 74; LessParser.FLOOR = 75; LessParser.PERCENTAGE = 76; LessParser.ROUND = 77; LessParser.SQRT = 78; LessParser.ABS = 79; LessParser.SIN = 80; LessParser.ASIN = 81; LessParser.COS = 82; LessParser.ACOS = 83; LessParser.TAN = 84; LessParser.ATAN = 85; LessParser.PI = 86; LessParser.POW = 87; LessParser.MOD = 88; LessParser.MIN = 89; LessParser.MAX = 90; LessParser.ISNUMBER = 91; LessParser.ISSTRING = 92; LessParser.ISCOLOR = 93; LessParser.ISKEYWORD = 94; LessParser.ISURL = 95; LessParser.ISPIXEL = 96; LessParser.ISEM = 97; LessParser.ISPERCENTAGE = 98; LessParser.ISUNIT = 99; LessParser.RGB = 100; LessParser.RGBA = 101; LessParser.ARGB = 102; LessParser.HSL = 103; LessParser.HSLA = 104; LessParser.HSV = 105; LessParser.HSVA = 106; LessParser.HUE = 107; LessParser.SATURATION = 108; LessParser.LIGHTNESS = 109; LessParser.HSVHUE = 110; LessParser.HSVSATURATION = 111; LessParser.HSVVALUE = 112; LessParser.RED = 113; LessParser.GREEN = 114; LessParser.BLUE = 115; LessParser.ALPHA = 116; LessParser.LUMA = 117; LessParser.LUMINANCE = 118; LessParser.SATURATE = 119; LessParser.DESATURATE = 120; LessParser.LIGHTEN = 121; LessParser.DARKEN = 122; LessParser.FADEIN = 123; LessParser.FADEOUT = 124; LessParser.FADE = 125; LessParser.SPIN = 126; LessParser.MIX = 127; LessParser.GREYSCALE = 128; LessParser.CONTRAST = 129; LessParser.MULTIPLY = 130; LessParser.SCREEN = 131; LessParser.OVERLAY = 132; LessParser.SOFTLIGHT = 133; LessParser.HARDLIGHT = 134; LessParser.DIFFERENCE = 135; LessParser.EXCLUSION = 136; LessParser.AVERAGE = 137; LessParser.NEGATION = 138; LessParser.UrlEnd = 139; LessParser.Url = 140; LessParser.SPACE = 141; LessParser.InterpolationStartAfter = 142; LessParser.IdentifierAfter = 143; LessParser.RULE_stylesheet = 0; LessParser.RULE_statement = 1; LessParser.RULE_variableName = 2; LessParser.RULE_commandStatement = 3; LessParser.RULE_mathCharacter = 4; LessParser.RULE_mathStatement = 5; LessParser.RULE_expression = 6; LessParser.RULE_function = 7; LessParser.RULE_conditions = 8; LessParser.RULE_condition = 9; LessParser.RULE_conditionStatement = 10; LessParser.RULE_variableDeclaration = 11; LessParser.RULE_importDeclaration = 12; LessParser.RULE_importOption = 13; LessParser.RULE_referenceUrl = 14; LessParser.RULE_mediaTypes = 15; LessParser.RULE_ruleset = 16; LessParser.RULE_block = 17; LessParser.RULE_mixinDefinition = 18; LessParser.RULE_mixinGuard = 19; LessParser.RULE_mixinDefinitionParam = 20; LessParser.RULE_mixinReference = 21; LessParser.RULE_selectors = 22; LessParser.RULE_selector = 23; LessParser.RULE_attrib = 24; LessParser.RULE_negation = 25; LessParser.RULE_pseudo = 26; LessParser.RULE_element = 27; LessParser.RULE_selectorPrefix = 28; LessParser.RULE_attribRelate = 29; LessParser.RULE_identifier = 30; LessParser.RULE_identifierPart = 31; LessParser.RULE_identifierVariableName = 32; LessParser.RULE_property = 33; LessParser.RULE_values = 34; LessParser.RULE_url = 35; LessParser.RULE_measurement = 36; function StylesheetContext(parser, parent, invokingState) { if(parent===undefined) { parent = null; } if(invokingState===undefined || invokingState===null) { invokingState = -1; } antlr4.ParserRuleContext.call(this, parent, invokingState); this.parser = parser; this.ruleIndex = LessParser.RULE_stylesheet; return this; } StylesheetContext.prototype = Object.create(antlr4.ParserRuleContext.prototype); StylesheetContext.prototype.constructor = StylesheetContext; StylesheetContext.prototype.statement = function(i) { if(i===undefined) { i = null; } if(i===null) { return this.getTypedRuleContexts(StatementContext); } else { return this.getTypedRuleContext(StatementContext,i); } }; StylesheetContext.prototype.enterRule = function(listener) { if(listener instanceof LessParserListener ) { listener.enterStylesheet(this); } }; StylesheetContext.prototype.exitRule = function(listener) { if(listener instanceof LessParserListener ) { listener.exitStylesheet(this); } }; LessParser.StylesheetContext = StylesheetContext; LessParser.prototype.stylesheet = function() { var localctx = new StylesheetContext(this, this._ctx, this.state); this.enterRule(localctx, 0, LessParser.RULE_stylesheet); var _la = 0; // Token type try { this.enterOuterAlt(localctx, 1); this.state = 77; this._errHandler.sync(this); _la = this._input.LA(1); while((((_la) & ~0x1f) == 0 && ((1 << _la) & ((1 << LessParser.InterpolationStart) | (1 << LessParser.GT) | (1 << LessParser.TIL) | (1 << LessParser.COLON) | (1 << LessParser.AT) | (1 << LessParser.PARENTREF) | (1 << LessParser.HASH) | (1 << LessParser.COLONCOLON) | (1 << LessParser.PLUS) | (1 << LessParser.TIMES))) !== 0) || _la===LessParser.IMPORT || _la===LessParser.Identifier) { this.state = 74; this.statement(); this.state = 79; this._errHandler.sync(this); _la = this._input.LA(1); } } catch (re) { if(re instanceof antlr4.error.RecognitionException) { localctx.exception = re; this._errHandler.reportError(this, re); this._errHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localctx; }; function StatementContext(parser, parent, invokingState) { if(parent===undefined) { parent = null; } if(invokingState===undefined || invokingState===null) { invokingState = -1; } antlr4.ParserRuleContext.call(this, parent, invokingState); this.parser = parser; this.ruleIndex = LessParser.RULE_statement; return this; } StatementContext.prototype = Object.create(antlr4.ParserRuleContext.prototype); StatementContext.prototype.constructor = StatementContext; StatementContext.prototype.importDeclaration = function() { return this.getTypedRuleContext(ImportDeclarationContext,0); }; StatementContext.prototype.ruleset = function() { return this.getTypedRuleContext(RulesetContext,0); }; StatementContext.prototype.variableDeclaration = function() { return this.getTypedRuleContext(VariableDeclarationContext,0); }; StatementContext.prototype.SEMI = function() { return this.getToken(LessParser.SEMI, 0); }; StatementContext.prototype.mixinDefinition = function() { return this.getTypedRuleContext(MixinDefinitionContext,0); }; StatementContext.prototype.enterRule = function(listener) { if(listener instanceof LessParserListener ) { listener.enterStatement(this); } }; StatementContext.prototype.exitRule = function(listener) { if(listener instanceof LessParserListener ) { listener.exitStatement(this); } }; LessParser.StatementContext = StatementContext; LessParser.prototype.statement = function() { var localctx = new StatementContext(this, this._ctx, this.state); this.enterRule(localctx, 2, LessParser.RULE_statement); try { this.state = 86; this._errHandler.sync(this); var la_ = this._interp.adaptivePredict(this._input,1,this._ctx); switch(la_) { case 1: this.enterOuterAlt(localctx, 1); this.state = 80; this.importDeclaration(); break; case 2: this.enterOuterAlt(localctx, 2); this.state = 81; this.ruleset(); break; case 3: this.enterOuterAlt(localctx, 3); this.state = 82; this.variableDeclaration(); this.state = 83; this.match(LessParser.SEMI); break; case 4: this.enterOuterAlt(localctx, 4); this.state = 85; this.mixinDefinition(); break; } } catch (re) { if(re instanceof antlr4.error.RecognitionException) { localctx.exception = re; this._errHandler.reportError(this, re); this._errHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localctx; }; function VariableNameContext(parser, parent, invokingState) { if(parent===undefined) { parent = null; } if(invokingState===undefined || invokingState===null) { invokingState = -1; } antlr4.ParserRuleContext.call(this, parent, invokingState); this.parser = parser; this.ruleIndex = LessParser.RULE_variableName; return this; } VariableNameContext.prototype = Object.create(antlr4.ParserRuleContext.prototype); VariableNameContext.prototype.constructor = VariableNameContext; VariableNameContext.prototype.AT = function() { return this.getToken(LessParser.AT, 0); }; VariableNameContext.prototype.variableName = function() { return this.getTypedRuleContext(VariableNameContext,0); }; VariableNameContext.prototype.Identifier = function() { return this.getToken(LessParser.Identifier, 0); }; VariableNameContext.prototype.enterRule = function(listener) { if(listener instanceof LessParserListener ) { listener.enterVariableName(this); } }; VariableNameContext.prototype.exitRule = function(listener) { if(listener instanceof LessParserListener ) { listener.exitVariableName(this); } }; LessParser.VariableNameContext = VariableNameContext; LessParser.prototype.variableName = function() { var localctx = new VariableNameContext(this, this._ctx, this.state); this.enterRule(localctx, 4, LessParser.RULE_variableName); try { this.state = 92; this._errHandler.sync(this); var la_ = this._interp.adaptivePredict(this._input,2,this._ctx); switch(la_) { case 1: this.enterOuterAlt(localctx, 1); this.state = 88; this.match(LessParser.AT); this.state = 89; this.variableName(); break; case 2: this.enterOuterAlt(localctx, 2); this.state = 90; this.match(LessParser.AT); this.state = 91; this.match(LessParser.Identifier); break; } } catch (re) { if(re instanceof antlr4.error.RecognitionException) { localctx.exception = re; this._errHandler.reportError(this, re); this._errHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localctx; }; function CommandStatementContext(parser, parent, invokingState) { if(parent===undefined) { parent = null; } if(invokingState===undefined || invokingState===null) { invokingState = -1; } antlr4.ParserRuleContext.call(this, parent, invokingState); this.parser = parser; this.ruleIndex = LessParser.RULE_commandStatement; return this; } CommandStatementContext.prototype = Object.create(antlr4.ParserRuleContext.prototype); CommandStatementContext.prototype.constructor = CommandStatementContext; CommandStatementContext.prototype.mathStatement = function() { return this.getTypedRuleContext(MathStatementContext,0); }; CommandStatementContext.prototype.expression = function(i) { if(i===undefined) { i = null; } if(i===null) { return this.getTypedRuleContexts(ExpressionContext); } else { return this.getTypedRuleContext(ExpressionContext,i); } }; CommandStatementContext.prototype.enterRule = function(listener) { if(listener instanceof LessParserListener ) { listener.enterCommandStatement(this); } }; CommandStatementContext.prototype.exitRule = function(listener) { if(listener instanceof LessParserListener ) { listener.exitCommandStatement(this); } }; LessParser.CommandStatementContext = CommandStatementContext; LessParser.prototype.commandStatement = function() { var localctx = new CommandStatementContext(this, this._ctx, this.state); this.enterRule(localctx, 6, LessParser.RULE_commandStatement); var _la = 0; // Token type try { this.enterOuterAlt(localctx, 1); this.state = 95; this._errHandler.sync(this); _la = this._input.LA(1); do { this.state = 94; this.expression(); this.state = 97; this._errHandler.sync(this); _la = this._input.LA(1); } while(_la===LessParser.InterpolationStart || _la===LessParser.AT || ((((_la - 37)) & ~0x1f) == 0 && ((1 << (_la - 37)) & ((1 << (LessParser.UrlStart - 37)) | (1 << (LessParser.Identifier - 37)) | (1 << (LessParser.StringLiteral - 37)) | (1 << (LessParser.Number - 37)) | (1 << (LessParser.Color - 37)))) !== 0)); this.state = 100; this._errHandler.sync(this); _la = this._input.LA(1); if((((_la) & ~0x1f) == 0 && ((1 << _la) & ((1 << LessParser.PLUS) | (1 << LessParser.TIMES) | (1 << LessParser.DIV) | (1 << LessParser.MINUS) | (1 << LessParser.PERC))) !== 0)) { this.state = 99; this.mathStatement(); } } catch (re) { if(re instanceof antlr4.error.RecognitionException) { localctx.exception = re; this._errHandler.reportError(this, re); this._errHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localctx; }; function MathCharacterContext(parser, parent, invokingState) { if(parent===undefined) { parent = null; } if(invokingState===undefined || invokingState===null) { invokingState = -1; } antlr4.ParserRuleContext.call(this, parent, invokingState); this.parser = parser; this.ruleIndex = LessParser.RULE_mathCharacter; return this; } MathCharacterContext.prototype = Object.create(antlr4.ParserRuleContext.prototype); MathCharacterContext.prototype.constructor = MathCharacterContext; MathCharacterContext.prototype.TIMES = function() { return this.getToken(LessParser.TIMES, 0); }; MathCharacterContext.prototype.PLUS = function() { return this.getToken(LessParser.PLUS, 0); }; MathCharacterContext.prototype.DIV = function() { return this.getToken(LessParser.DIV, 0); }; MathCharacterContext.prototype.MINUS = function() { return this.getToken(LessParser.MINUS, 0); }; MathCharacterContext.prototype.PERC = function() { return this.getToken(LessParser.PERC, 0); }; MathCharacterContext.prototype.enterRule = function(listener) { if(listener instanceof LessParserListener ) { listener.enterMathCharacter(this); } }; MathCharacterContext.prototype.exitRule = function(listener) { if(listener instanceof LessParserListener ) { listener.exitMathCharacter(this); } }; LessParser.MathCharacterContext = MathCharacterContext; LessParser.prototype.mathCharacter = function() { var localctx = new MathCharacterContext(this, this._ctx, this.state); this.enterRule(localctx, 8, LessParser.RULE_mathCharacter); var _la = 0; // Token type try { this.enterOuterAlt(localctx, 1); this.state = 102; _la = this._input.LA(1); if(!((((_la) & ~0x1f) == 0 && ((1 << _la) & ((1 << LessParser.PLUS) | (1 << LessParser.TIMES) | (1 << LessParser.DIV) | (1 << LessParser.MINUS) | (1 << LessParser.PERC))) !== 0))) { this._errHandler.recoverInline(this); } else { this._errHandler.reportMatch(this); this.consume(); } } catch (re) { if(re instanceof antlr4.error.RecognitionException) { localctx.exception = re; this._errHandler.reportError(this, re); this._errHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localctx; }; function MathStatementContext(parser, parent, invokingState) { if(parent===undefined) { parent = null; } if(invokingState===undefined || invokingState===null) { invokingState = -1; } antlr4.ParserRuleContext.call(this, parent, invokingState); this.parser = parser; this.ruleIndex = LessParser.RULE_mathStatement; return this; } MathStatementContext.prototype = Object.create(antlr4.ParserRuleContext.prototype); MathStatementContext.prototype.constructor = MathStatementContext; MathStatementContext.prototype.mathCharacter = function() { return this.getTypedRuleContext(MathCharacterContext,0); }; MathStatementContext.prototype.commandStatement = function() { return this.getTypedRuleContext(CommandStatementContext,0); }; MathStatementContext.prototype.enterRule = function(listener) { if(listener instanceof LessParserListener ) { listener.enterMathStatement(this); } }; MathStatementContext.prototype.exitRule = function(listener) { if(listener instanceof LessParserListener ) { listener.exitMathStatement(this); } }; LessParser.MathStatementContext = MathStatementContext; LessParser.prototype.mathStatement = function() { var localctx = new MathStatementContext(this, this._ctx, this.state); this.enterRule(localctx, 10, LessParser.RULE_mathStatement); try { this.enterOuterAlt(localctx, 1); this.state = 104; this.mathCharacter(); this.state = 105; this.commandStatement(); } catch (re) { if(re instanceof antlr4.error.RecognitionException) { localctx.exception = re; this._errHandler.reportError(this, re); this._errHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localctx; }; function ExpressionContext(parser, parent, invokingState) { if(parent===undefined) { parent = null; } if(invokingState===undefined || invokingState===null) { invokingState = -1; } antlr4.ParserRuleContext.call(this, parent, invokingState); this.parser = parser; this.ruleIndex = LessParser.RULE_expression; return this; } ExpressionContext.prototype = Object.create(antlr4.ParserRuleContext.prototype); ExpressionContext.prototype.constructor = ExpressionContext; ExpressionContext.prototype.measurement = function() { return this.getTypedRuleContext(MeasurementContext,0); }; ExpressionContext.prototype.identifier = function() { return this.getTypedRuleContext(IdentifierContext,0); }; ExpressionContext.prototype.IMPORTANT = function() { return this.getToken(LessParser.IMPORTANT, 0); }; ExpressionContext.prototype.LPAREN = function() { return this.getToken(LessParser.LPAREN, 0); }; ExpressionContext.prototype.RPAREN = function() { return this.getToken(LessParser.RPAREN, 0); }; ExpressionContext.prototype.values = function() { return this.getTypedRuleContext(ValuesContext,0); }; ExpressionContext.prototype.Color = function() { return this.getToken(LessParser.Color, 0); }; ExpressionContext.prototype.StringLiteral = function() { return this.getToken(LessParser.StringLiteral, 0); }; ExpressionContext.prototype.url = function() { return this.getTypedRuleContext(UrlContext,0); }; ExpressionContext.prototype.variableName = function() { return this.getTypedRuleContext(VariableNameContext,0); }; ExpressionContext.prototype.enterRule = function(listener) { if(listener instanceof LessParserListener ) { listener.enterExpression(this); } }; ExpressionContext.prototype.exitRule = function(listener) { if(listener instanceof LessParserListener ) { listener.exitExpression(this); } }; LessParser.ExpressionContext = ExpressionContext; LessParser.prototype.expression = function() { var localctx = new ExpressionContext(this, this._ctx, this.state); this.enterRule(localctx, 12, LessParser.RULE_expression); var _la = 0; // Token type try { this.state = 126; this._errHandler.sync(this); var la_ = this._interp.adaptivePredict(this._input,6,this._ctx); switch(la_) { case 1: this.enterOuterAlt(localctx, 1); this.state = 107; this.measurement(); break; case 2: this.enterOuterAlt(localctx, 2); this.state = 108; this.identifier(); this.state = 109; this.match(LessParser.IMPORTANT); break; case 3: this.enterOuterAlt(localctx, 3); this.state = 111; this.identifier(); break; case 4: this.enterOuterAlt(localctx, 4); this.state = 112; this.identifier(); this.state = 113; this.match(LessParser.LPAREN); this.state = 115; this._errHandler.sync(this); _la = this._input.LA(1); if(_la===LessParser.InterpolationStart || _la===LessParser.AT || ((((_la - 37)) & ~0x1f) == 0 && ((1 << (_la - 37)) & ((1 << (LessParser.UrlStart - 37)) | (1 << (LessParser.Identifier - 37)) | (1 << (LessParser.StringLiteral - 37)) | (1 << (LessParser.Number - 37)) | (1 << (LessParser.Color - 37)))) !== 0)) { this.state = 114; this.values(); } this.state = 117; this.match(LessParser.RPAREN); break; case 5: this.enterOuterAlt(localctx, 5); this.state = 119; this.match(LessParser.Color); break; case 6: this.enterOuterAlt(localctx, 6); this.state = 120; this.match(LessParser.StringLiteral); break; case 7: this.enterOuterAlt(localctx, 7); this.state = 121; this.url(); break; case 8: this.enterOuterAlt(localctx, 8); this.state = 122; this.variableName(); this.state = 123; this.match(LessParser.IMPORTANT); break; case 9: this.enterOuterAlt(localctx, 9); this.state = 125; this.variableName(); break; } } catch (re) { if(re instanceof antlr4.error.RecognitionException) { localctx.exception = re; this._errHandler.reportError(this, re); this._errHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localctx; }; function FunctionContext(parser, parent, invokingState) { if(parent===undefined) { parent = null; } if(invokingState===undefined || invokingState===null) { invokingState = -1; } antlr4.ParserRuleContext.call(this, parent, invokingState); this.parser = parser; this.ruleIndex = LessParser.RULE_function; return this; } FunctionContext.prototype = Object.create(antlr4.ParserRuleContext.prototype); FunctionContext.prototype.constructor = FunctionContext; FunctionContext.prototype.FUNCTION_NAME = function() { return this.getToken(LessParser.FUNCTION_NAME, 0); }; FunctionContext.prototype.LPAREN = function() { return this.getToken(LessParser.LPAREN, 0); }; FunctionContext.prototype.RPAREN = function() { return this.getToken(LessParser.RPAREN, 0); }; FunctionContext.prototype.values = function() { return this.getTypedRuleContext(ValuesContext,0); }; FunctionContext.prototype.enterRule = function(listener) { if(listener instanceof LessParserListener ) { listener.enterFunction(this); } }; FunctionContext.prototype.exitRule = function(listener) { if(listener instanceof LessParserListener ) { listener.exitFunction(this); } };