Skip to content

MODLanguage/grammar

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

MODL Grammar

This is the definition for Minimal Object Description Language (MODL). For more information about MODL take a look at the MODL Specification.

Machine diagrams are shown below:

MODL Machine Diagrams

Tests

Tests are provided in the tests directory. Implementations of the parsers should use those tests to check if it behaves as expected.

ANTLR4 Parser Generation

antlr4 MODLLexer.g4 MODLParser.g4 -o ../../typescript-modl-interpreter/lib/gen/MODL -package MODL -Dlanguage=JavaScript
antlr4 MODLLexer.g4 MODLParser.g4 -o ../../java-interpreter/src/main/java/uk/modl/parser/antlr -package uk.modl.parser.antlr -Dlanguage=Java