Skip to content

Commit

Permalink
Remove special tokens and delay parsing labelled unaries until recovery
Browse files Browse the repository at this point in the history
  • Loading branch information
anmonteiro committed Sep 29, 2018
1 parent 875d3a2 commit a5c1046
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 42,036 deletions.
6 changes: 1 addition & 5 deletions src/reason-parser/reason_lexer.mll
Original file line number Diff line number Diff line change
Expand Up @@ -611,14 +611,10 @@ rule token = parse
| "<..>" { LESSDOTDOTGREATER }
| '\\'? ['~' '?' '!'] operator_chars+
{ PREFIXOP(lexeme_operator lexbuf) }
| '\\'? ['<' '>' '|' '&' '$'] operator_chars*
| '\\'? ['=' '<' '>' '|' '&' '$'] operator_chars*
{
INFIXOP0(lexeme_operator lexbuf)
}
| "\\=" operator_chars*
{ INFIXOP0(lexeme_operator lexbuf) }
| '=' operator_chars+
{ INFIXOP_WITH_EQUAL(lexeme_operator lexbuf) }
| '\\'? '@' operator_chars*
{ INFIXOP1(lexeme_operator lexbuf) }
| '\\'? '^' ('\\' '.')? operator_chars*
Expand Down
Loading

0 comments on commit a5c1046

Please sign in to comment.