SkillAgentSearch skills...

PearleyParser

A Javascript Lexer + Parser generator using the Earley algorithm.

Install / Use

/learn @purag/PearleyParser
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

PearleyParser

A parser generator using the Earley parsing algorithm.

PearleyParser supports built-in lexical analysis and parse tree generation. The result of the parse() function is a completed parse tree, if it exists, or a "Parse failed" message.

Coming Soon:

A walkthrough of the algorithm used here!

TODO:

  1. Parse user lex rules to generate tokenizers for the lexer.
  2. Determine the ideal parse more effectively. It's not always the longest.
View on GitHub
GitHub Stars7
CategoryDevelopment
Updated5y ago
Forks1

Languages

JavaScript

Security Score

70/100

Audited on Feb 22, 2021

No findings