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
Another issue is regarding Unicode ID_Start property.
Currently, dfagen cannot process the Unicode ID_Start property. We replace it used in the lexical grammar with ASCII ID_Start by transpile.js. As a result, the geneerated automaton cannot work with Non-ASCII ID_Start (and ID_Continue). So, we need additional error handling in the lexer implementation. But this error handling does not work properly for lookahead transitions.
The specification said in
12.9.3 Numeric Literals
:This cannot be handled with the following modified production rules using a lookahead term:
Initially, we tried solving this issue in this way, but an infinite loop occurs when computing the number of lookahead characters needed. Because:
IdentifierStart
is defined withCodePoint
andCodePoint
can take any number of characters.Probably, this is the reason why the specification does not use the production rules like above.
The text was updated successfully, but these errors were encountered: