Skip to content

Better alphabets #2

Description

@jimd1989

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions