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

Add nodes with arbitrary syntax using a regexp #27

Open
c3d opened this issue Feb 8, 2020 · 0 comments
Open

Add nodes with arbitrary syntax using a regexp #27

c3d opened this issue Feb 8, 2020 · 0 comments

Comments

@c3d
Copy link
Owner

c3d commented Feb 8, 2020

The language could be made more extensible if you could add arbitrary terminal node types defined for example by a regular expression. This could be used to address issue #20 or issue #26.

In the syntax, it could be something like:

TEXT
        "<<" ">>"
        "HTML" "END_HTML"

CUSTOM
        version_number "[0-9]+\(\.[0-9]+\)+"
        bits "bits 16#[0-9a-fA-F_]+"

Note that the renderer should be updated to correctly render this kind of node. Also think about colorization (issue #23 and issue #24).

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

No branches or pull requests

1 participant