donotturnoff

lr0

View this project on GitHub.

Introduction

Given a grammar, this generates the required parse tables (action and goto) for an LR(0) parser to analyse strings from that language. Also included is a parser that generates parse trees using those tables, although custom parsers can be written too.

I have included a demo program (with lexer) which you can download below. You can also download the library, which can then be used in other programs, such as my simpledoc project.

Files

Dependency of