Skip to content

Commit 7d53fa1

Browse files
committed
Compatibility with parser
1 parent fdbec07 commit 7d53fa1

4 files changed

Lines changed: 337 additions & 47 deletions

File tree

‎lib/mathjs-parser.js‎

Lines changed: 12 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎lib/mathjs-parser.terms.js‎

Lines changed: 61 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,63 @@
11
// This file was generated by lezer-generator. You probably shouldn't edit it.
22
export const
3-
Program = 1,
4-
Item = 2,
5-
Group = 3,
6-
Number = 4,
7-
String = 5,
8-
Keyword = 6,
9-
Identifier = 7,
10-
Operator = 8,
11-
LineComment = 9,
12-
BlockComment = 10
3+
LineComment = 1,
4+
BlockComment = 2,
5+
Program = 3,
6+
StatementList = 4,
7+
Statement = 5,
8+
Expression = 6,
9+
AssignmentExpression = 7,
10+
ConditionalExpression = 8,
11+
LogicalOrExpression = 9,
12+
LogicalXorExpression = 10,
13+
LogicalAndExpression = 11,
14+
BitwiseOrExpression = 12,
15+
BitwiseXorExpression = 13,
16+
BitwiseAndExpression = 14,
17+
RelationalExpression = 15,
18+
ShiftExpression = 16,
19+
ConversionExpression = 17,
20+
RangeExpression = 18,
21+
AdditiveExpression = 19,
22+
MultiplicativeExpression = 20,
23+
PowerExpression = 21,
24+
NullishExpression = 22,
25+
UnaryExpression = 23,
26+
PostfixExpression = 24,
27+
PrimaryExpression = 25,
28+
GroupExpression = 26,
29+
MatrixExpression = 27,
30+
ArgumentList = 28,
31+
ObjectExpression = 29,
32+
ObjectEntries = 30,
33+
ObjectEntry = 31,
34+
PropertyName = 32,
35+
Identifier = 33,
36+
Keyword = 34,
37+
String = 35,
38+
Number = 36,
39+
BooleanLiteral = 37,
40+
NullLiteral = 38,
41+
UndefinedLiteral = 39,
42+
PostfixPart = 40,
43+
PostfixOp = 41,
44+
AccessSuffix = 42,
45+
CallSuffix = 43,
46+
OptionalCallSuffix = 44,
47+
IndexSuffix = 45,
48+
OptionalIndexSuffix = 46,
49+
PropertySuffix = 47,
50+
OptionalPropertySuffix = 48,
51+
PrefixOp = 49,
52+
NotOp = 50,
53+
PowOp = 51,
54+
MultiplyOp = 52,
55+
ModOp = 53,
56+
AddOp = 54,
57+
ConversionOp = 55,
58+
ShiftOp = 56,
59+
RelOp = 57,
60+
AndOp = 58,
61+
XorOp = 59,
62+
OrOp = 60,
63+
StatementSeparator = 61

0 commit comments

Comments
 (0)