Shahar Soel

Results 187 comments of Shahar Soel

https://stackoverflow.com/questions/20128257/typescript-removing-extends-duplicates

Basically you can specify that multiple tokens are of the category X. and than match against said X in the Parser. If you think of the CONSUME(X) method as: -...

I am not sure this can even be represented as a context free grammar. Can you assume some delimiters between commands? For example the "$" sign never being present in...

> IMHO a good use of Chevrotain is the construction and management of domain specific tokenizers at run time. Interesting, you could effectively use some heuristics to identify the delimiter...

BTW you can **dynamically** create Chevrotain Parsers as well as Lexers using the [custom APIs feature](https://sap.github.io/chevrotain/docs/guide/custom_apis.html#gast-structure) Granted this has limitations: - https://sap.github.io/chevrotain/docs/guide/custom_apis.html#limitations And it also requires the use of EVAL...

I've started playing around with a similar scenario which required consuming **any** kind of tokens between a "--" and a semiColon. Basically the CSS 3 custom property syntax: - https://www.w3.org/TR/css-variables-1/#custom-property...

Consider expanding the fuzzy parsing example to a scenario in which the fuzzy matching acts as a default fall back. e.g: 3 Alternatives, and the 3rd one being the fuzzy...

Hi @mtiller I am not sure why you are getting this misleading error message in this case. If you can provide a **small** example which **reproduces** the problem I can...

> I've started using this awesome parser in React Native environment. Please, consider also supporting React Native Hermes engine, it probably has some limitations in RegEx compared to V8. Hello...

> So I'm looking for an indicator of the following: was all input saved to the CST? Or were some tokens not saved? Hmm, `recoveredNode` indicates there was **re-sync** recovery...