Borrar filtros
Borrar filtros

Parser Generator for Matlab

2 visualizaciones (últimos 30 días)
Thomas Hermann
Thomas Hermann el 14 de Jun. de 2015
Comentada: Thomas Hermann el 2 de Jul. de 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 comentarios
Thomas Hermann
Thomas Hermann el 2 de Jul. de 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 el 2 de Jul. de 2015
P.S. It is also useful to be able to inter-mix grammar and code. So, that probably requires implementation in MATLAB.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre String Parsing en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by