OMCCp: A MetaModelica Based Parser Generator Applied to Modelica
Independent thesis Advanced level (degree of Master (Two Years)), 30 credits / 45 HE creditsStudent thesis
The OpenModelica Compiler-Compiler parser generator (OMCCp) is an LALR(1) parser generator implemented in the MetaModelica language with parsing tables generated by the tools Flex and GNU Bison. The code generated for the parser is in MetaModelica 2.0 language which is the OpenModelica compiler implementation language and is an extension of the Modelica 3.2 language. OMCCp uses as input an LALR(1) grammar that specifies the Modelica language. The generated Parser can be used inside the OpenModelica Compiler (OMC) as a replacement for the current parser generated by the tool ANTLR from an LL(k) Modelica grammar. This report explains the design and implementation of this novel Lexer and Parser Generator called OMCCp.
Modelica and its extension MetaModelica are both languages used in the OpenModelica environment. Modelica is an Object-Oriented Equation-Based language for Modeling and Simulation.
Place, publisher, year, edition, pages
2011. , 233 p.
Compiler, Parser, Lexer, Modelica, MetaModelica, OpenModelica, Simulation, LALR, Flex, Bison, Parser Generator, OMCC, OMCCp
National CategorySoftware Engineering Computer Science
IdentifiersURN: urn:nbn:se:liu:diva-68863ISRN: LIU-IDA/LITH-EX-A--11/019--SEOAI: oai:DiVA.org:liu-68863DiVA: diva2:421575
Subject / course
Computer and information science at the Institute of Technology
2011-05-31, Donald Knuth, B-Huset, Linköping, Sweden, 15:15 (English)
Sjölund, MartinTorabzadeh-Tari, Mohsen