-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add Fable support to FsLexYacc.Runtime #203
Conversation
let unicodeCategory = System.Globalization.CharUnicodeInfo.GetUnicodeCategory(inp) | ||
|
||
let unicodeCategory = | ||
#if FABLE_COMPILER |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know that these can differ, see Remarks here
But in practice, I think it's acceptable.
I'm a little confused what this does. |
Yes, with this PR I can
No need for WASM or a full fledged .NET backend just to parse sources and give feedback to the user. Would be really, really helpful for me to have this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I'm ok with having this, thanks 🤘!
(Would be cool to have a branch in https://github.com/dawedawe/agentleintroductiontofslexyacc showcasing this.)
Thanks! |
I added a new project to showcase in the browser: https://github.com/dawedawe/agentleintroductiontofslexyacc/tree/main/src/AfLang.Js |
This allows easy usage of FsLexYacc-generated lexers/parsers with Fable.