octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: about Octave's syntax


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:
I need the formal Octave's syntax for make a parser...

Thanks
The syntax is not documented in a human-readable form (spare the programmers). There is no BNF-like form for you to read.

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]