Effacer les filtres
Effacer les filtres

Parser Generator for Matlab

2 vues (au cours des 30 derniers jours)
Thomas Hermann
Thomas Hermann le 14 Juin 2015
Commenté : Thomas Hermann le 2 Juil 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 commentaires
Thomas Hermann
Thomas Hermann le 2 Juil 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 le 2 Juil 2015
P.S. It is also useful to be able to inter-mix grammar and code. So, that probably requires implementation in MATLAB.

Connectez-vous pour commenter.

Réponses (0)

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by