Filter löschen
Filter löschen

Parser Generator for Matlab

3 Ansichten (letzte 30 Tage)
Thomas Hermann
Thomas Hermann am 14 Jun. 2015
Kommentiert: Thomas Hermann am 2 Jul. 2015
Is there a parser generator for Matlab? I'm interested in something with a META or PEG like grammar, but at this point am willing to learn a new grammar if necessary. The generator does not have to be implemented in Matlab, but it must generate the parser for Matlab. Ideally, the generator would be implemented in Matlab and allow grammar to be mixed with Matlab code.
I'm most familiar with META-SEXP, so it's a bonus if there is something equivalent in Matlab.
Thanks,
Tom H.
  3 Kommentare
Thomas Hermann
Thomas Hermann am 2 Jul. 2015
Thanks for the response, sorry for the late reply, got side-tracked from this project.
I'm looking for the second use. Given a grammar, the tool should be able to generate MATLAB code that parses the grammar. Ideally, the tool would also be implemented in MATLAB, but that is not a requirement.
I don't have a strong enough background in computer science to know exactly what order of grammar is required. I'm proficient with an LL(1) grammar, META, implemented in Common Lisp. That order of grammar has been applicable to all of my previous use cases. I'm sure it would work in this case as well.
Thomas Hermann
Thomas Hermann am 2 Jul. 2015
P.S. It is also useful to be able to inter-mix grammar and code. So, that probably requires implementation in MATLAB.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Produkte

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by