GithubHelp home page GithubHelp logo

ipg's Introduction

IPG - The Incremental Parser Generator

--- Description ---

IPG is, like Yacc or Bison, a parser generator. However, it is not based on LALR
grammars but instead on Parsing Expression Grammars, or PEGs. This is a more
intuitive way to write grammars and generates parsers that are human readable.

It is also different because its aim is to provide good support for incremental
parsing. This is useful for applications like an IDE that always provides
features based on an up-to-date analysis of the program being written.

IPG consumes two input: one is the PEG grammar describing the language to
recognized. The other is a list of actions to execute when it is confirmed that
a given non-terminal is part of a complete phrase from the language. The two
input are separated, which leave a much cleaner grammar to read and edit.

--- Current Status ---

For now, IPG only generates a recognizing parser for a PEG given in the ASCII
syntax given at http://pdos.csail.mit.edu/~baford/packrat/popl04/peg-popl04.pdf.

Instead of a special syntax for semantic actions, IPG generates C++ iterators
classes to traverse the parse tree directly from the memoized structures. This
part is not yet functional.

--- Dependencies ---

IPG requires:
	-	Boost, version 1.46.1 or later

--- Directories ---

build: IDE projects to build IPG
	xcode
src
	cpp: C++ source files
	sh: Shell scripts
	man: Man page definitions
	peg: Parsing Expression Grammer (PEG) files
	tpl: Google CTemplate files

ipg's People

Contributors

alexk7 avatar

Stargazers

Fidel H Viegas avatar Jim Hurd avatar  avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.