Konferensartikel

Modelica Based Parser Generator with Good Error Handling

Arunkumar Palanisamy
Department of Computer and Information Science, Linköping University, Linköping, Sweden

Adrian Pop
Department of Computer and Information Science, Linköping University, Linköping, Sweden

Martin Sjölund
Department of Computer and Information Science, Linköping University, Linköping, Sweden

Peter Fritzson
Department of Computer and Information Science, Linköping University, Linköping, Sweden

Ladda ner artikelhttp://dx.doi.org/10.3384/ecp14096567

Ingår i: Proceedings of the 10th International Modelica Conference; March 10-12; 2014; Lund; Sweden

Linköping Electronic Conference Proceedings 96:60, s. 567-575

Visa mer +

Publicerad: 2014-03-10

ISBN: 978-91-7519-380-9

ISSN: 1650-3686 (tryckt), 1650-3740 (online)

Abstract

This paper describes the new OpenModelica Compiler-Compiler (OMCC) including a parser generator; OMCCp which is based on an LALR parser generator extended with advanced error handling facilities. It is implemented in the MetaModelica language with parsing tables generated by the tools Flex and Bison. It is integrated with the MetaModelica semantics specification language; based on operational semantics for generating executable compiler and interpreter modules.

The OMCCp parser generating part of OMCC is being used for the full Modelica language grammar as well as for the language extensions of MetaModelica; ParModelica; and Optimization specifications. The generated parsers have reasonable performance compared to other parser generators.

Nyckelord

Modelica; MetaModelica; Flex; Bison; ParModelica; Optimization; OMCCp

Referenser

Inga referenser tillgängliga

Citeringar i Crossref