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

486 output parsing #490

Merged
merged 6 commits into from
Nov 24, 2023
Merged

486 output parsing #490

merged 6 commits into from
Nov 24, 2023

Conversation

reid-spencer
Copy link
Contributor

@reid-spencer reid-spencer commented Nov 24, 2023

  • Make keywords require space or end-of-input after them
  • Keywords are now cuts
  • Comments are allowed after every definition
  • Comments are allowed at Root scope before and after the definitions
  • Comments are two slashes until the end of line

Corollary changes:

  • Cleaned up the top level parsing so RootContainer includes comments
  • Removed language.parsing.Terminals and split its content out to separate files for ease of use

Signed-off-by: reidspencer <reid.spencer@yoppworks.com>
Signed-off-by: reidspencer <reid.spencer@yoppworks.com>
Signed-off-by: reidspencer <reid.spencer@yoppworks.com>
# Conflicts:
#	language/src/main/scala/com/reactific/riddl/language/parsing/CommonParser.scala
#	testkit/src/test/input/issues/486.riddl
#	testkit/src/test/scala/com/reactific/riddl/testkit/ReportedIssuesTest.scala
Signed-off-by: reidspencer <reid.spencer@yoppworks.com>
Summary of changes:
* Issue #6 is now implemented. Single line comments are allowed at the
  start and end of the parse and after every kind of definition. The
  comments are captured in the AST
* Keywords are not required to have non-alphanumeric characters after
  them and they introduce a cut

Signed-off-by: reidspencer <reid.spencer@yoppworks.com>
@reid-spencer reid-spencer added the bug Something isn't working label Nov 24, 2023
@reid-spencer reid-spencer added this to the 1.0 - First Full Release milestone Nov 24, 2023
@reid-spencer reid-spencer self-assigned this Nov 24, 2023
@reid-spencer reid-spencer merged commit 7ce792e into main Nov 24, 2023
2 of 3 checks passed
@reid-spencer reid-spencer deleted the 486-output-parsing branch November 24, 2023 02:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

multiple issues with output declarations AST Should Represent Comments Too
1 participant