You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Many of the context-sensitive rules of the Julia grammar need to know whether a rule starts with an identifier.
For example, juxtaposition (implicit multiplication) work if the LHS is a number or if the RHS starts with an identifier:
2x # ok2(x +1) # ok. LHS is numberf()g() # ok. RHS starts with identifier
(n -1) n # err. there's a space between the parenthesis and `n`f(x).+(y) # ok. Not a juxtaposition of function calls, but a binary expression
Other examples include:
Quotations
:foo# ok
: bar # err
Macro identifiers
@foo# ok
@ foo # err
string suffixes
r"^foo$"i# okr"^foo$" i # err
Currently, the scanner implements rules to check if there's an immediate opening brace/bracket/parenthesis. There's should be an similar rule for identifers and operators.
Note
This requires being able to check unicode categories in the scanner, like in Lezer-julia.
The text was updated successfully, but these errors were encountered:
Many of the context-sensitive rules of the Julia grammar need to know whether a rule starts with an identifier.
For example, juxtaposition (implicit multiplication) work if the LHS is a number or if the RHS starts with an identifier:
Other examples include:
Quotations
Macro identifiers
string suffixes
Currently, the scanner implements rules to check if there's an immediate opening brace/bracket/parenthesis. There's should be an similar rule for identifers and operators.
Note
This requires being able to check unicode categories in the scanner, like in Lezer-julia.
The text was updated successfully, but these errors were encountered: