Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • E EmbeddedMontiArcDL
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 1
    • Issues 1
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • monticore
  • EmbeddedMontiArcEmbeddedMontiArc
  • languages
  • EmbeddedMontiArcDL
  • Issues
  • #3
Closed
Open
Issue created Aug 21, 2018 by Evgeny Kusmenko@kusmenkoDeveloper

Refactor grammar

Please refactor the grammar to

package de.monticore.lang.monticar;

grammar EMADL extends de.monticore.lang.embeddedmontiarc.EmbeddedMontiArcMath,
                      de.monticore.lang.monticar.CNNArch{

    start EMACompilationUnit;

    BehaviorEmbedding = Architecture | MathStatements;

    BehaviorName = name:"CNN" | name:"Math";

    token NEWLINETOKEN =
             ('\r' '\n' |
             '\r' |
             '\n' ):;
}

in order to avoid the unnecessary non-terminal EMADLCompilationUnit, c.f. http://monticore.de/MontiCore_Reference-Manual.2017.pdf Listing 4.25

and to inherit from EmbeddedMontiArcMath instead of EmbeddedMontiArcBehaviour

Please also analyse why the newline token needs to be overriden here (MC bug?)

Edited Aug 21, 2018 by Evgeny Kusmenko
Assignee
Assign to
Time tracking