Skip to content

YouerSu/ParGer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

Build Status

ParGer is a ParserGen which is based on Haskell,It can save your time if you don't want to write a parser by yourself(It's very boring).

How to use ParGer

ParGer has a DSL for generating Parser,It's very similar to EBNF's syntax,so,you don't need to worry about it.

  • [Exp] : one or zero Exp
  • {Exp} : many or zero Exp
  • Exp|Exp : Exp or Exp
  • Exp + Exp : Exp and Exp connection
  • 'Exp : Exp is a specific symbol
  • name ::= Exp : Define a Rule

To write a ParGer File,you need to add ";" after each statement.
Besides,don't forget to set up the lang of Parser at the beginning

lang ::= name

Supported Language:

  • haskell

About

A lang for generating Parser automatically

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published