Skip to content

grammarhoard/2023-marcelis-visibly-pushdown

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Derivative-based-Colored-edged-Parser-Generator-for-Nested-Words

This repository contains a parser generator for nested words. It uses derivates to accept ambiguous grammars and return all possible derivations. Additionally, error handling is provided by an intuitive approach on accepting pending calls based on Colored Nested Words.

JUnitTest.java contains tests of multiple grammars. This file can be used to create parsing for a new VPG as well.

Grammars are required to be in the following well-matched form:

  1. L => e; //Epsilon rule
  2. L_0 => "a" L_1; //Regular rule
  3. L_0 => [ "(" L_1 ")" ] L_2; //Nesting rule

Additionally, "|" is the or operator for these grammar rules. JUnitTest.java contains multiple examples of grammars in this form.

About

a derivative-based, coloured-edged parser generator for nested words

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%