Add support for 'Or' logical operator - hacktoberfest #3
Labels
enhancement
New feature or request
good first issue
Good for newcomers
hacktoberfest
javascript
react
We need to add support for the 'Or' logical operator in Minirule to allow for more complex rule conditions.
Tasks
Implementation Details
1. Add 'Or' keyword token
tokenConfig.ts
to include 'Or' in the keywords objectgrammar.ts
2. Implement 'or' clause in the parser
condition
rule inRuleParser
class ingrammar.ts
to support 'or' conditionsCONDITION
method to handle 'or' clauses3. Implement visitor for 'or' clause in the interpreter
visitCondition
method ininterpreter.ts
to evaluate 'or' conditions4. Add new keyword token to playground editor config
Example Usage
Acceptance Criteria
The text was updated successfully, but these errors were encountered: