Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Any mature parser generators for both php and javascript on the market?

Are there known and mature parser generators that both support php and javascript?

The aim is to have a single grammar definition and parsers in php and javascript that are generated from it.

Are there any?

like image 908
zerkms Avatar asked May 07 '13 03:05

zerkms


People also ask

What is the best parser generator?

Java Compiler Compiler (JavaCC) is the most popular parser generator for use with Java applications. A parser generator is a tool that reads a grammar specification and converts it to a Java program that can recognize matches to the grammar.

Which program is used for parser generation?

V.B. For many grammars, the LR parsing tables can be generated automatically from the grammar. One of the most popular software systems that does this is available in the Unix programming environment; it is called yacc (yet another compiler-compiler).

What is used for parsing and running JavaScript in Nodejs?

Parse Arguments using process.argv is the simplest way of parsing arguments in Node. js and you do not need to install any additional package or library for that.

What is a JavaScript parser?

Parsing means analyzing and converting a program into an internal format that a runtime environment can actually run, for example the JavaScript engine inside browsers. The browser parses HTML into a DOM tree.


1 Answers

Yes, there is. Have look at ANTLR. Note: this is for ANTLR3. There's already a new version (ANTLR4) but it supports only Java and C# at the time being.

like image 103
Mike Lischke Avatar answered Oct 18 '22 16:10

Mike Lischke