Back to results

Chalmers University of Technology

Python BNF Converter - Extending the languages supported by BNFC with Python

Abstract

dc:description.abstract

Given a specified grammar for some language, the BNFC tool can generate code for lexing and parsing input in that language. The project consists of extending the supported languages of BNFC to also include Python. To verify the usefulness of the implementation, a series of tests and exercises were carried out for a grammar of a subset of C++, comparing the functionality of the generated Python code to other generated parsers by BNFC, as well as coding a typechecker, interpreter and a compiler.

Degree

thesis:*
Level thesis:degree_level
H
Department dc:contributor.department
Chalmers tekniska högskola / Institutionen för data och informationsteknik
Year dc:date.issued
2024

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Werner, Björn
Advisor dc:contributor.supervisor
  • Ranta, Aarne
Committee member dc:contributor.committeemember
  • Bernardy, Jean-Philippe

Rights

Language dc:language.iso
eng

Identifiers

dc:identifier.*
Dc Identifier Coursecode
DATX05

Chain of custody

source
Harvested from
Chalmers University of Technology
Base URL
odr.chalmers.se/oai/request
Last updated
2026-11-19
Source record
OAI-PMH GetRecord
related terms
citation

Werner, Björn. Python BNF Converter - Extending the languages supported by BNFC with Python. H thesis, 2024. https://hdl.handle.net/20.500.12380/309053