필터 지우기
필터 지우기

Parser Generator for Matlab

조회 수: 3 (최근 30일)
Thomas Hermann
Thomas Hermann 2015년 6월 14일
댓글: Thomas Hermann 2015년 7월 2일
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
Thomas Hermann
Thomas Hermann 2015년 7월 2일
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 2015년 7월 2일
P.S. It is also useful to be able to inter-mix grammar and code. So, that probably requires implementation in MATLAB.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 String Parsing에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by