Skip to content

Allow Serialization and Deserialization of DSL from and to String#231

Merged
Nicolas-Boltz merged 39 commits intomainfrom
dsl-serialization
Feb 4, 2025
Merged

Allow Serialization and Deserialization of DSL from and to String#231
Nicolas-Boltz merged 39 commits intomainfrom
dsl-serialization

Conversation

@Entenwilli
Copy link
Member

@Entenwilli Entenwilli commented Dec 9, 2024

This PR implements a serializer and deserializer for the analysis DSL. It includes the following:

  • Serialization of DSL elements from a string
  • Comprehensive error messages for parser results
  • Deserialization of DSL elements to a string

This PR progresses toward closing issue #225. The next step is an update to the WebEditor to allow the input of constraints there

@Entenwilli Entenwilli added enhancement New feature or request research Investigation or reserach related issue core Related to the core DFD/PCM data flow analysis support Related to supporting projects which are neither core analysis or meta model bundels editor Related to the web editor labels Dec 9, 2024
@Entenwilli Entenwilli added this to the 4.0.0 milestone Dec 9, 2024
@Entenwilli Entenwilli self-assigned this Dec 9, 2024
01Parzival10
01Parzival10 previously approved these changes Dec 9, 2024
Copy link
Contributor

@01Parzival10 01Parzival10 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Entenwilli
Copy link
Member Author

This PR is now ready for the first proper, in-depth reviews.
Some work is still ongoing, for example the extraction of common code and useful utilities

@Entenwilli Entenwilli marked this pull request as ready for review December 11, 2024 10:48
@Entenwilli
Copy link
Member Author

This PR is now ready again!
I've implemented multiple parameterized tests for each part of the DSL to ensure it is working

Copy link
Member

@sebinside sebinside left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I propose to add more JavaDoc (I marked some of the locations). One could argue, that the fromString functions (and related stuff) is only called in this one use case internally, coming from the web editor. However, it could happen in the future that other extensions use this methods, so they should be documented properly (of course, using copy/paste to a high degree).

Copy link
Member

@Nicolas-Boltz Nicolas-Boltz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Nicolas-Boltz Nicolas-Boltz dismissed sebinside’s stale review February 4, 2025 12:11

Sebastian looks good to me

@Nicolas-Boltz Nicolas-Boltz merged commit 275121f into main Feb 4, 2025
1 check passed
@Nicolas-Boltz Nicolas-Boltz deleted the dsl-serialization branch February 4, 2025 12:12
Entenwilli pushed a commit that referenced this pull request Mar 30, 2025
Allow Serialization and Deserialization of DSL from and to String
Entenwilli pushed a commit that referenced this pull request Mar 30, 2025
Allow Serialization and Deserialization of DSL from and to String
Entenwilli pushed a commit that referenced this pull request May 2, 2025
Allow Serialization and Deserialization of DSL from and to String
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Related to the core DFD/PCM data flow analysis editor Related to the web editor enhancement New feature or request research Investigation or reserach related issue support Related to supporting projects which are neither core analysis or meta model bundels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants