Introduce RightArrow (->) token in the scanner

This commit is contained in:
Alex Beregszaszi
2020-08-27 12:28:27 +01:00
parent fdc4142b2c
commit 4e5b403c37
9 changed files with 18 additions and 14 deletions
+2 -3
View File
@@ -112,6 +112,7 @@ Semicolon: ';';
Period: '.';
Conditional: '?';
Arrow: '=>';
RightArrow: '->';
Assign: '=';
AssignBitOr: '|=';
@@ -283,9 +284,7 @@ YulRParen: ')';
YulAssign: ':=';
YulPeriod: '.';
YulComma: ',';
// TODO: remove whitespace workaround once the parser disallows it.
//@doc:name ->
YulArrow: '->' | '-' YulWS+ '>';
YulArrow: '->';
/**
* Yul identifiers consist of letters, dollar signs, underscores and numbers, but may not start with a number.