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

UVL model cannot be read. #7

Open
YKraml opened this issue Dec 5, 2024 · 1 comment
Open

UVL model cannot be read. #7

YKraml opened this issue Dec 5, 2024 · 1 comment

Comments

@YKraml
Copy link

YKraml commented Dec 5, 2024

The following model cannot be read by UVLModelFactory.java.
The UVL-Playground (https://uvl.uni-ulm.de/) can parse the model.

Error:

Multiple Errors occurred during parsing!

failed to parse at line 3:8 due to mismatched input 'CW' expecting {'<INDENT>', '<DEDENT>'} at line 3
failed to parse at line 4:16 due to mismatched input '                ' expecting {<EOF>, 'constraints'} at line 4

Model:

features
        ALL
        CW
                optional
                        CW_authentication
                        CW_autogenerate
                        CW_decisionboard
                        CW_documenation
                        CW_flatfilegenerator
                        CW_views
                                or
                                        "Table-based"
                                        "Tree-based"
                                        "Graph-based"
                        CW_requirementsView
                        CW_sharepoint
                        CW_wordgenerator
                                optional
                                        CW_wordgenerator_wordAddIn
                        CW_guidance
                                alternative
                                        "After-first-selection"
                                        Always
                        CW_resolution
                                alternative
                                        "1400x1050"
                                        "800x600"
                                        "1280x1024"
                                        "1900x1080"
                                        "1024x768"
                                        "1600x1200"
        Real CW_resolution_height
        Real CW_resolution_width
        DK
                optional
                        DK_builder
                        DK_merger
                        DK_metamodelling
                        DK_rulelang_editor
        DK_modelconverter
        DK_sharepoint
        PK
        SERVER
        ProprietaryTools

constraints
        ALL => DK & CW & PK
        DK & CW & PK => ALL
        DK_modelconverter => PK | DK
        DK_sharepoint => PK | DK
        ProprietaryTools => CW | DK
        "1400x1050" => CW_resolution_width == 1400.0
        "1400x1050" => CW_resolution_height == 1050.0
        "800x600" => CW_resolution_width == 800.0
        "800x600" => CW_resolution_height == 600.0
        "1280x1024" => CW_resolution_width == 1280.0
        "1280x1024" => CW_resolution_height == 1024.0
        "1900x1080" => CW_resolution_width == 1900.0
        "1900x1080" => CW_resolution_height == 1080.0
        "1024x768" => CW_resolution_width == 1024.0
        "1024x768" => CW_resolution_height == 768.0
        "1600x1200" => CW_resolution_width == 1600.0
        "1600x1200" => CW_resolution_height == 1200.0
@coemgen1992
Copy link

Note: UVLS in VScode lets you write the UVL model and configure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants