help-octave
[Top][All Lists]
Advanced

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

Re: Octave grammar


From: Søren Hauberg
Subject: Re: Octave grammar
Date: Mon, 12 Jul 2010 23:44:17 +0200

man, 12 07 2010 kl. 15:48 -0500, skrev Jordi Gutiérrez Hermoso:
> 2010/7/11 David Grundberg <address@hidden>:
> > Jordi Gutiérrez Hermoso skrev:
> >
> >> I remember there being a description of Octave's grammar somewhere,
> >> but now I can't find it. Did I just dream that or does such a
> >> description exist somewhere?
> >>
> >
> >
> > I haven't seen graphs or anything like that, I suggest you look in the
> > lexer/parser itself.  The parser is written in bison, so it's kind of
> > readable.
> 
> Just to be clear, bison source is just src/oct-parse.yy am I correct?
> I suppose I can't avoid learning how bison and flex work for much
> longer...

If you just want something for syntax higlighting then you can also look
at the 'octave.lang' file shipped with 'gtksourceview' (used by
'gedit'). I'm attaching a recent version to this mail. The syntax should
be straight-forward to understand.

Søren

Attachment: octave.lang
Description: application/xml


reply via email to

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