ossuminc / riddl

A compiler for the DDD-based design language RIDDL
https://riddl.tech/
Apache License 2.0
23 stars 6 forks source link

[FEATURE] Export keywords, readability, punctuation as `Seq[String]`s #675

Closed AlexWeinstein92 closed 1 month ago

AlexWeinstein92 commented 1 month ago

Is your feature already requested in another issue?

No

Is your feature a defect?

From the perspective of riddl-idea-plugin, yes

Is your feature request related to a problem? Please describe.

Manual updating of keywords in plugin

Describe the solution you'd like

A def on each of com.ossuminc.riddl.language.parsing.{Keyword, Readibility, Punctuation} that returns all itsvals in aSeq`

Readability.ByAs need not be included in the Seq[String]s, as it is already defined individually for by and as

Describe the alternatives you've considered

None

reid-spencer commented 1 month ago

This is perhaps optimizing for a rare event, now. The last slew of changes are likely the final ones for 1.0 release so no more keyword changes are expected for a while. I will consider this for downstream consumers when additional language changes become necessary.

reid-spencer commented 1 month ago

Implemented.