|
From: | David Grundberg |
Subject: | Re: about Octave's syntax |
Date: | Thu, 02 Jul 2009 10:35:48 +0200 |
User-agent: | Thunderbird 2.0.0.21 (X11/20090302) |
Eduardo Alejandro Cuesta Llanes wrote:
The syntax is not documented in a human-readable form (spare the programmers). There is no BNF-like form for you to read.I need the formal Octave's syntax for make a parser... Thanks
If you are interested in a parser, you can just look at the parser implemented by Octave. It's written using the GNU tools for parser generation (i.e. compiler compilation). They are called flex and bison.
Lexical analyzer generation (flex input): http://hg.savannah.gnu.org/hgweb/octave/file/79c4dd83d07f/src/lex.l Parser generation (bison input): http://hg.savannah.gnu.org/hgweb/octave/file/79c4dd83d07f/src/parse.y David
[Prev in Thread] | Current Thread | [Next in Thread] |