Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Sources/AngouriMath/Core/Antlr/AngouriMath.g
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,7 @@ atom returns[Entity value]
/* End */


| 'factorial(' args = function_arguments ')' { Assert("factorial", 1, $args.list.Count); $value = MathS.Factorial($args.list[0]); }
| 'gamma(' args = function_arguments ')' { Assert("gamma", 1, $args.list.Count); $value = MathS.Gamma($args.list[0]); }
| 'derivative(' args = function_arguments ')'
{
Expand Down
4 changes: 3 additions & 1 deletion Sources/AngouriMath/Core/Antlr/AngouriMath.interp

Large diffs are not rendered by default.

46 changes: 24 additions & 22 deletions Sources/AngouriMath/Core/Antlr/AngouriMath.tokens
Original file line number Diff line number Diff line change
Expand Up @@ -129,13 +129,14 @@ T__127=128
T__128=129
T__129=130
T__130=131
NEWLINE=132
NUMBER=133
SPECIALSET=134
BOOLEAN=135
VARIABLE=136
COMMENT=137
WS=138
T__131=132
NEWLINE=133
NUMBER=134
SPECIALSET=135
BOOLEAN=136
VARIABLE=137
COMMENT=138
WS=139
'!'=1
'^'=2
'-'=3
Expand Down Expand Up @@ -252,18 +253,19 @@ WS=138
'arcsch('=114
'arccosech('=115
'acsch('=116
'gamma('=117
'derivative('=118
'integral('=119
'limit('=120
'limitleft('=121
'limitright('=122
'signum('=123
'sgn('=124
'sign('=125
'abs('=126
'phi('=127
'domain('=128
'piecewise('=129
'apply('=130
'lambda('=131
'factorial('=117
'gamma('=118
'derivative('=119
'integral('=120
'limit('=121
'limitleft('=122
'limitright('=123
'signum('=124
'sgn('=125
'sign('=126
'abs('=127
'phi('=128
'domain('=129
'piecewise('=130
'apply('=131
'lambda('=132
777 changes: 392 additions & 385 deletions Sources/AngouriMath/Core/Antlr/AngouriMathLexer.cs

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion Sources/AngouriMath/Core/Antlr/AngouriMathLexer.interp

Large diffs are not rendered by default.

46 changes: 24 additions & 22 deletions Sources/AngouriMath/Core/Antlr/AngouriMathLexer.tokens
Original file line number Diff line number Diff line change
Expand Up @@ -129,13 +129,14 @@ T__127=128
T__128=129
T__129=130
T__130=131
NEWLINE=132
NUMBER=133
SPECIALSET=134
BOOLEAN=135
VARIABLE=136
COMMENT=137
WS=138
T__131=132
NEWLINE=133
NUMBER=134
SPECIALSET=135
BOOLEAN=136
VARIABLE=137
COMMENT=138
WS=139
'!'=1
'^'=2
'-'=3
Expand Down Expand Up @@ -252,18 +253,19 @@ WS=138
'arcsch('=114
'arccosech('=115
'acsch('=116
'gamma('=117
'derivative('=118
'integral('=119
'limit('=120
'limitleft('=121
'limitright('=122
'signum('=123
'sgn('=124
'sign('=125
'abs('=126
'phi('=127
'domain('=128
'piecewise('=129
'apply('=130
'lambda('=131
'factorial('=117
'gamma('=118
'derivative('=119
'integral('=120
'limit('=121
'limitleft('=122
'limitright('=123
'signum('=124
'sgn('=125
'sign('=126
'abs('=127
'phi('=128
'domain('=129
'piecewise('=130
'apply('=131
'lambda('=132
Loading
Loading