Skip to content

hieule22/grammarizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Grammarizer

Background

The syntax of a programming language oftentimes is best represented in the form of a context-free grammar. Construction of a suitable grammar is essential for simplifying and expediting the syntactical analysis phase of a modern compiler.

Overview

This library provides several tools to transform a context-free grammar into an equivalent form more conducive for predictive parsing, that is, recursive-descent parsing which requires no backtracking.

Transformations:

  • Elimination of Left Recursion.

  • Left Factoring.

  • First Set Generation.

About

Context-free grammar transformers for syntax analysis.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages