Skip to content
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

Better alphabets #2

Open
jimd1989 opened this issue Jan 22, 2023 · 0 comments
Open

Better alphabets #2

jimd1989 opened this issue Jan 22, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@jimd1989
Copy link
Owner

jimd1989 commented Jan 22, 2023

Rather than parsing a normal func like < and an "extended" func like @<, and presumably extended extended funcs like @@<, each with their own enum cases, can probably go the J route and combine them all into one alphabet like <, <.. . isn't used in functions at the moment in order to make parsing decimal numbers dead easy, but the logic of adding it would not be much tougher than the existing @ notation. The only ambiguity would be something like <.5, which should favor the function. There are already certain instances that necessitate whitespace anyway.

Can be combined into one alphabet with something like

VM_LESS_THAN = '<',
VM_FLOOR = '<' | ('.' << 8)

etc.

This would remove the need for redundant f and g fields in the VmCell union, which currently segregate normal functions and extended functions respectively for pattern matching warning purposes.

@jimd1989 jimd1989 added the enhancement New feature or request label Jan 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant