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 formatting option #8

Open
waterstopper opened this issue May 23, 2023 · 0 comments
Open

add formatting option #8

waterstopper opened this issue May 23, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request site related to site

Comments

@waterstopper
Copy link
Owner

format grammar by aligning rules like that:

root    = Expr
Expr    = Sum
Sum     = Product (("+" | "-") Product)*
Product = Power (("*" | "/") Power)*
Power   = Value ("^" Power)? 
Value   = [0-9]+ | "(" Expr ")"
@waterstopper waterstopper added enhancement New feature or request site related to site labels May 23, 2023
@waterstopper waterstopper self-assigned this May 23, 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 site related to site
Projects
None yet
Development

No branches or pull requests

1 participant