Publications Details

Publications / Other Report

Nested Comments in BNFC

Hairapetian, Shant H.

Many languages such as Lua, Haskell and MATLAB support the ability to create nested comments. My proposal is to add a nested comment pragma to BNFC which would allow it to support the parsing of code. In this proposal I will provide sample implementations of nested comments for each of the lexer generators used by BNFC and outline the extension points by which I will add the functionality to the codebase.