Skip to content

SaschaRWTH/LuieCompiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Luie Compiler

Semantic Analysis Tests Code Generation Tests Code Optimization Tests Command Line Interface Tests

Setup

ANTLR is used to generate the lexer and parser for Luie based on its grammar. It can be downloaded from the official website. The website also contains information on how to install ANTLR and generate files for different languages.

The compiler is written in C# and uses .NET 8. For building the compiler, the .NET 8 SDK is required.

Generate files

The following command can be used to generate the lexer and parser files for Luie:

antlr4 -Dlanguage=CSharp -listener Luie.g4

Alternatively, you can use the Visual Studio Code extension "ANTLR4 grammar syntax support" and set the settings in the settings.json file to generate the files automatically. An example of the settings is shown below:

    "antlr4.generation": {
        "mode": "external",
        "language": "CSharp",
        "listeners": true,
        "visitors": false
    },

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published