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

Introduce an infix syntax for div and mod #411

Open
czerwinskilukasz1 opened this issue Jul 26, 2020 · 1 comment
Open

Introduce an infix syntax for div and mod #411

czerwinskilukasz1 opened this issue Jul 26, 2020 · 1 comment
Labels
AskScript ./src/askscript/** enhancement New feature or request size: 4h (small-medium) tasks for approx. 4 hours type:syntax related to syntax or syntax sugar

Comments

@czerwinskilukasz1
Copy link
Collaborator

Following a discussion in another issue, we want to be able to write in AskScript expressions like:

7 = ((7 div 3) * 3) + (7 mod 3)

where div and mod are already existing resources for integer division and modulo respectively.
We want to support it just for div and mod and not any other identifier.

Dear new contributor,

If you have any questions on how to start, please write a comment with a tag: @czerwinskilukasz1 or @mhagmajer, or join our Discord Community and let us know there. We will be very happy to help you start! :)
Hint for now: This task requires changes in our parser grammar (askscript.grammar.pegjs file), which uses PEG.js syntax .

Cheers,
Łukasz (@czerwinskilukasz1)
AskQL Core Developer

@czerwinskilukasz1 czerwinskilukasz1 added enhancement New feature or request good first issue Good for newcomers AskScript ./src/askscript/** size: 4h (small-medium) tasks for approx. 4 hours type:syntax related to syntax or syntax sugar first-timers-only labels Jul 26, 2020
@czerwinskilukasz1
Copy link
Collaborator Author

Please note that #250 and #412 need to be implemented first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AskScript ./src/askscript/** enhancement New feature or request size: 4h (small-medium) tasks for approx. 4 hours type:syntax related to syntax or syntax sugar
Projects
None yet
Development

No branches or pull requests

1 participant