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
We should try to compute a required lookahead for every alternative. Ideally this would happen statically when the CLI runs, so we need to store the information somehow. For example, we could add a property to Alternatives in the grammar and put a value for that property in the CLI. Then the property would be included in the serialized grammar.
We should also allow to configure Chevrotain's IParserConfig, for example as part of our LangiumConfig, so users can change the global maxLookahead.
The text was updated successfully, but these errors were encountered:
Chevrotain allows to configure a maximum lookahead number globally or per alternative:
https://chevrotain.io/docs/guide/initialization_performance.html#use-a-smaller-global-maxlookahead
We should try to compute a required lookahead for every alternative. Ideally this would happen statically when the CLI runs, so we need to store the information somehow. For example, we could add a property to Alternatives in the grammar and put a value for that property in the CLI. Then the property would be included in the serialized grammar.
We should also allow to configure Chevrotain's
IParserConfig
, for example as part of ourLangiumConfig
, so users can change the globalmaxLookahead
.The text was updated successfully, but these errors were encountered: