Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • cadbiom cadbiom
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3
    • Issues 3
    • List
    • Boards
    • Service Desk
    • Milestones
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • VIGNET Pierre
  • cadbiomcadbiom
  • Issues
  • #2
Closed
Open
Issue created Feb 21, 2020 by VIGNET Pierre@pvignetOwner2 of 2 checklist items completed2/2 checklist items

ANTLR fix/update

Problem:

Entities with names starting with the Cadbiom grammar keywords are not correctly parsed in logic formulas (models or queries).

ERROR:   -> sig_exp ->line 1:51no viable alternative at input u'and'
line 1:267 mismatched character u'o' expecting 's'

https://stackoverflow.com/questions/53986204/keywords-and-identifiers-conflict-writing-lexer-scala-libs https://theantlrguy.atlassian.net/wiki/spaces/ANTLR3/pages/2687320/How+can+I+allow+keywords+as+identifiers

Solutions:

  • Fix the antlr3 grammar to allow backtracking (during the lexing/parsing ?) cons: update a deprecated and up 10 years old library; pros: easier (?)
  • Update to antlr4 cons: uncertain work because of required knowledge, antlr3 + antlr4 doc to read; pros: begin the migration to Python3, get improvements from years of development.
Edited Jun 22, 2020 by VIGNET Pierre
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking