PEG.js - Parser Generator for JavaScript
PEG.js is a simple parser generator for JavaScript that produces fast parsers with excellent error reporting. You can use it to process complex data or computer languages and build transformers, interpreters, compilers and other tools easily. It integrates both lexical and syntactical analysis.
http://pegjs.majda.cz/
comments powered by Disqus
Related Products
Datejs - A JavaScript Date Library
Datejs is an open source JavaScript Date library for parsing, formatting and processing. Comprehensive, yet simple, stealthy and fast. Datejs has passed all trials and is ready to strike. Datejs doesn’t just parse strings, it slices them cleanly in two.
Jsparsec - A memoizing parser combinator library for JavaScript
This project has been moved to: http://code.google.com/p/jshaskell/ The initial implementation of some combinators and the memoization is derived from: http://www.bluishcoder.co.nz/2007/10/javascript-parser-combinators.html Functions with similar names as in Parsec should work correspondingly: http://hackage.haskell.org/package/parsec The jsparsec-javascript module is based entirely on the WebBits library. Featuresdue to tail call optimization recursive parsers work in infinite depth, and long r
Polparser - Lightweight generic text parser in Obj-C
PolParser is lightweight generic text parser in Obj-C for Mac OS X Leopard and later. PolParser creates a tree from the parsing of the input text. It currently supports various text formats like XML, RSS, Atom, HTML, Apple Property Lists, CSV... as well as source code for C style languages like C, C++, Obj-C..., and it's quite easy to add support for new text formats or languages. The fact PolParser generates a tree makes it quite easier to use than NSScanner & friends for complex parsing and ba
Ijp - iCalendar javascript parser
SummaryIJP parses iCalendar formatted text and returns javascript arrays of objects. UsageicalParser.parseIcal(ical_formatted_text);//icalParser.ical is now seticalParser.ical.version; icalParser.ical.prodid;////Arrays//All the vevent elementsicalParser.ical.events;//All the vtodo elementsicalParser.ical.todos;//All the journal elementsicalParser.ical.journals;//All the freebusy elementsicalParser.ical.freebusy;TodoAdd Timezone elements parsing Add Alarm elements parsing Finish to read RFC 2445
TagSoup - HTML/XML parser for Haskell
TagSoup is a library for parsing HTML/XML. It supports the HTML 5 specification, and can be used to parse either well-formed XML, or unstructured and malformed HTML from the web. The library also provides useful functions to extract information from an HTML document, making it ideal for screen-scraping.
Talkson - A C++ library for JSON messages
Talkson is a C++ library that contains JSON message encoding/decoding modules. A simple, light-weight JSON parser. No external library is required and every code is ANSI-compatible. A streamable parser. You can use any size of buffer feeding the encoder/decoder.
Jssaxparser - A SAX 2 parser written in Javascript
Javascript SAX 2 ParserA light weight JavaScript SAX 2 parser which reads an XML text and triggers standardized SAX 2 events. IntroductionThat parser is able to read XML and its associated DTD. It will throw the events of : contentHandler errorHandler dtdHandler entityResolver declarationHandler lexicalHandler conforming to specification at http://www.saxproject.org/ . How to use itImport library<script type="text/javascript" src="../jssaxparser/sax.js"></script><script type="text/javascript" sr
Jsonsharp - A c# library for generating JSON-formatted data
JSONSharp is a C# library for generating JSON-formatted data. The library is very lightweight and fully object-oriented. The library was born out of a need to generate JSON-compliant strings from the server-side of a .Net application. The library is easily extensible to handle specific implementations to ease the syntactical burden of incorporating the library into your own project.
Expat
Expat is an XML parser library written in C. It is a stream-oriented parser in which an application registers handlers for things the parser might find in the XML document (like start tags).
Rrp - RailRoad Parser
The RailRoad Parser is a cross-platform, multi-language framework which can be used to create parsers for grammars. The two R's of the RailRoad Parser are Runtime and Rule-Driven. The framework is rule-driven in that the grammar which it parses is specified by a set of rules. These rules are defined by the developer in a markup similar to Backus-Naur Form. Runtime refers to the fact that the Railroad Parser is generated from markup at runtime, just before it is used. While this configuration doe