Skip to content

Commit

Permalink
Add plugin entry point in lexer
Browse files Browse the repository at this point in the history
  • Loading branch information
maxhoerstr committed Oct 15, 2024
1 parent 74ac2f6 commit 9591b70
Show file tree
Hide file tree
Showing 2 changed files with 587 additions and 281 deletions.
5 changes: 4 additions & 1 deletion pfdl_grammar/PFDLLexer.g4
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ def nextToken(self):
return self.denter.next_token()
}

// The comment below allows the PFDL plugin system to insert the lexer rules at this point
// This ensures that newly added rules are not skipped for rules below like 'STARTS_WITH_LOWER_C_STR'
// {Plugin_Insertion_Point}

// Main grammar
STRUCT: 'Struct';
TASK: 'Task';
Expand All @@ -41,7 +45,6 @@ PARALLEL: 'Parallel';
CONDITION: 'Condition';
PASSED: 'Passed';
FAILED: 'Failed';
ON_DONE: 'OnDone';
END: 'End';
NUMBER_P: 'number';
STRING_P: 'string';
Expand Down
Loading

0 comments on commit 9591b70

Please sign in to comment.