Sunday 15 June 2014

parsing - Lexer written in Javascript? -


I have a project where the user needs to define a set of instructions for the UI that is completely javascript Has been written in I have the ability to parse a string of instructions and then have to translate them into instructions. Is there a library to parse 100% javascript? Or a generator that will be generated in javascript? Thanks!

Something like that, maybe?

The first available parser development system for JS / CC is - Dividives It has been developed, both for the purpose of producing productive compiler development system and how to normally do the bottom-up parsing Pars table generation is done, with the intention of creating an easy-to-use academic environment for those interested in it.

Both platform-independent software associations: a regular expression-based generator from the input character stream to a personal token and a parser generator , parse tables Calculating the formation of a stand-alone, working parser for a given specification and free grammar referenced to JS / CC is defined in an individual meta language, and the individual semantic code is defined as To Milit can be evaluated on the cut rule.

JS / CC is fully written in ECMAScript , it can be executed in many different ways: platform-independent, browser-based JavaScript Embedded on the website, as a Windows Script host application, as a compiled JScript.NET executable, interpreted by Mozilla / Rhino or Mozilla / Spiderman, or V8 shell script on Windows, * n Bus, Linux and Mac OSX. However, for productive execution, it is recommended to use command-line versions. This version is capable of collecting a full compiler from the JS / CC parser specification, which is later stored in the .js Javascript source file.


No comments:

Post a Comment