mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-11 05:58:40 +00:00
Tweaks to lexer, incl. matching func all at once
Reviewers: xymostech Reviewed By: xymostech Differential Revision: http://phabricator.benalpert.com/D42
This commit is contained in:
12
parser.jison
12
parser.jison
@@ -1,13 +1,5 @@
|
||||
/* description: Parses end executes mathematical expressions. */
|
||||
|
||||
/* lexical grammar */
|
||||
%lex
|
||||
%%
|
||||
|
||||
<<EOF>> return 'EOF'
|
||||
|
||||
/lex
|
||||
|
||||
/* operator associations and precedence */
|
||||
|
||||
%left '^'
|
||||
@@ -45,8 +37,8 @@ group
|
||||
{$$ = $1;}
|
||||
| '{' ex '}'
|
||||
{$$ = $2;}
|
||||
| '\' func
|
||||
{$$ = $2;}
|
||||
| func
|
||||
{$$ = $1;}
|
||||
;
|
||||
|
||||
func
|
||||
|
Reference in New Issue
Block a user