资 源 简 介
The parjser project provides a number of generic tokenizers and parsers, written in JavaScript. The parjser project focuses on simplicity, small code size, and ease of use - features that should make it a good fit for web applications.
In order to use parjser to parse a specific language, you have to write a context-free grammar. A parjser grammar is a JavaScript object literal that defines the syntax rules of the language you want to parse. You can use the grammar to create a new parser by passing it to one of the parser constructors provided by the parjser project.
Once you created a parser, all you need to do is call its parse() method, passing the text you want to parse as a string. The parser attempts to parse the text, an
文 件 列 表
source
parjser.Exception.js
parjser.GrammarCompiler.js
parjser.KeywordTokenizer.js
parjser.RegexTokenizer.js
parjser.SimpleTopDownParser.js
parjser.TopDownParser.js
parjser.TopDownParserWithLookahead.js
parjser.grammars.arithmetic.js
parjser.grammars.mdx.js
parjser.grammars.sqlite.js
parjser.js
js
parjser-min.js
parjser.SimpleTopDownParser.js
parjser.TopDownParser-min.js
parjser.TopDownParser.js
parjser.TopDownParserWithLookahead-min.js
parjser.TopDownParserWithLookahead.js
parjser.core.js
parjser.grammars-min.js
parjser.grammars.arithmetic.js
parjser.grammars.js
parjser.grammars.sqlite.js
parjser.js
examples
ParjserPlayground-min.html
ParjserPlayground.html
example-utils.js
lib
fulljslint.js
license
lgpl-3.0.txt
license.txt