{"title":"Metamodel-based Parser Generator for Python","authors":"Sergej Chodarev, Sharoon Ilyas","doi":"10.1109/Informatics57926.2022.10083501","DOIUrl":null,"url":null,"abstract":"Most of the parser tools are concentrated on the concrete syntax and grammar definition. This paper describes a language definition tool that uses a metamodel specification instead of a grammar as a basis of the language definition. Inspired by a similar Java tool known as YAJCo, the metamodel is defined using usual object-oriented techniques-as classes in the Python programming language. The result of the parsing process is a graph of objects. The tool is demonstrated in a case study of a state machine definition language.","PeriodicalId":101488,"journal":{"name":"2022 IEEE 16th International Scientific Conference on Informatics (Informatics)","volume":"26 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2022-11-23","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2022 IEEE 16th International Scientific Conference on Informatics (Informatics)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/Informatics57926.2022.10083501","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0
Abstract
Most of the parser tools are concentrated on the concrete syntax and grammar definition. This paper describes a language definition tool that uses a metamodel specification instead of a grammar as a basis of the language definition. Inspired by a similar Java tool known as YAJCo, the metamodel is defined using usual object-oriented techniques-as classes in the Python programming language. The result of the parsing process is a graph of objects. The tool is demonstrated in a case study of a state machine definition language.