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

Meal.edible("...") ideas #9

Open
Magnogen opened this issue Sep 19, 2022 · 0 comments
Open

Meal.edible("...") ideas #9

Magnogen opened this issue Sep 19, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@Magnogen
Copy link
Owner

Something like MotherTode, that Crafting Interpreters syntax and regex, but also completely different.

Edible written with the edible syntax?

EDIBLE = (DEFINITION ";")* CHAIN;
DEFINITION = IDENTIFIER "=" CHAIN;
CHAIN = ANY (" " ANY)*;
ANY = LABEL ("|" LABEL)*;
LABEL = (IDENTIFIER ":")? UNARY;
UNARY = "!"* PRIMARY ("?" | "*" | "+")*;
PRIMARY = STRING | REGEX | IDENTIFIER | ("(" CHAIN ")");
STRING = "\"" ("\\\"" | !"\"") "\"";
REGEX = "/" ("\\/" | !"/") "/";
IDENTIFIER = /[A-Za-z_]/ /[A-Za-z_0-9]/*;
EDIBLE
@Magnogen Magnogen self-assigned this Sep 19, 2022
@Magnogen Magnogen added the enhancement New feature or request label Sep 22, 2022
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