Skip to content
/ merak Public

Merak is an LR(1) parser library for Go written in Go.

License

Notifications You must be signed in to change notification settings

Orlion/merak

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Merak

Merak is an LR(1) parser library for Go written in Go, But it is not a code generator.
Merak 是一个用Go编写的Go LR(1) parser 库,但不是一个代码生成器

Install

go get github.com/Orlion/merak

Getting Started

  1. New A Parser
parser := merak.NewParser()
  1. Register Production
parser.RegProduction(...)
parser.RegProduction(...)
...
  1. Parse Input
r, err := parser.Parse(SymbolGOAL, SymbolEoi, lexer)

Example

calculator

About

Merak is an LR(1) parser library for Go written in Go.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages