about Octave's syntax

View: New views
11 Messages — Rating Filter:   Alert me  

Parent Message unknown about Octave's syntax

by Eduardo Alejandro Cuesta Llanes :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I need the formal Octave's syntax for make a parser...

Thanks
_______________________________________________
Help-octave mailing list
Help-octave@...
https://www-old.cae.wisc.edu/mailman/listinfo/help-octave

Re: about Octave's syntax

by Søren Hauberg :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

ons, 01 07 2009 kl. 10:16 -0400, skrev Eduardo Alejandro Cuesta Llanes:
> I need the formal Octave's syntax for make a parser...

Well, you do have access to the source code, so why not just inspect the
code for the actual parser? Or perhaps just use the parser instead of
writing your own...

Søren

_______________________________________________
Help-octave mailing list
Help-octave@...
https://www-old.cae.wisc.edu/mailman/listinfo/help-octave

Parent Message unknown Re: about Octave's syntax

by Sergei Steshenko-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message




--- On Wed, 7/1/09, Søren Hauberg <soren@...> wrote:

> From: Søren Hauberg <soren@...>
> Subject: Re: about Octave's syntax
> To: "Eduardo Alejandro Cuesta Llanes" <eacuesta@...>
> Cc: help-octave@...
> Date: Wednesday, July 1, 2009, 12:44 PM
> ons, 01 07 2009 kl. 10:16 -0400,
> skrev Eduardo Alejandro Cuesta Llanes:
> > I need the formal Octave's syntax for make a
> parser...
>
> Well, you do have access to the source code, so why not
> just inspect the
> code for the actual parser? Or perhaps just use the parser
> instead of
> writing your own...
>
> Søren
>

Or perhaps never-ever look into 'octave' source code in order to never be
accused of violating GPL ...

Regards,
  Sergei.


     

_______________________________________________
Help-octave mailing list
Help-octave@...
https://www-old.cae.wisc.edu/mailman/listinfo/help-octave

Re: about Octave's syntax

by Søren Hauberg :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

tor, 02 07 2009 kl. 00:08 -0700, skrev Sergei Steshenko:

> --- On Wed, 7/1/09, Søren Hauberg <soren@...> wrote:
>
> > From: Søren Hauberg <soren@...>
> > Subject: Re: about Octave's syntax
> > To: "Eduardo Alejandro Cuesta Llanes" <eacuesta@...>
> > Cc: help-octave@...
> > Date: Wednesday, July 1, 2009, 12:44 PM
> > ons, 01 07 2009 kl. 10:16 -0400,
> > skrev Eduardo Alejandro Cuesta Llanes:
> > > I need the formal Octave's syntax for make a
> > parser...
> >
> > Well, you do have access to the source code, so why not
> > just inspect the
> > code for the actual parser? Or perhaps just use the parser
> > instead of
> > writing your own...
> >
> > Søren
> >
>
> Or perhaps never-ever look into 'octave' source code in order to never be
> accused of violating GPL ...

Is that a flame-bait? I'll bite anyway... It is trivial to avoid
violating the GPL: just release your code! If you somehow oppose the
GPL, then I don't see why you would use Octave or why anybody here would
want to help you.

Søren

_______________________________________________
Help-octave mailing list
Help-octave@...
https://www-old.cae.wisc.edu/mailman/listinfo/help-octave

Parent Message unknown Re: about Octave's syntax

by Sergei Steshenko-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message




--- On Thu, 7/2/09, Søren Hauberg <soren@...> wrote:

> From: Søren Hauberg <soren@...>
> Subject: Re: about Octave's syntax
> To: "Sergei Steshenko" <sergstesh@...>
> Cc: "Eduardo Alejandro Cuesta Llanes" <eacuesta@...>, help-octave@...
> Date: Thursday, July 2, 2009, 1:20 AM
> tor, 02 07 2009 kl. 00:08 -0700,
> skrev Sergei Steshenko:
> > --- On Wed, 7/1/09, Søren Hauberg <soren@...>
> wrote:
> >
> > > From: Søren Hauberg <soren@...>
> > > Subject: Re: about Octave's syntax
> > > To: "Eduardo Alejandro Cuesta Llanes" <eacuesta@...>
> > > Cc: help-octave@...
> > > Date: Wednesday, July 1, 2009, 12:44 PM
> > > ons, 01 07 2009 kl. 10:16 -0400,
> > > skrev Eduardo Alejandro Cuesta Llanes:
> > > > I need the formal Octave's syntax for make
> a
> > > parser...
> > >
> > > Well, you do have access to the source code, so
> why not
> > > just inspect the
> > > code for the actual parser? Or perhaps just use
> the parser
> > > instead of
> > > writing your own...
> > >
> > > Søren
> > >
> >
> > Or perhaps never-ever look into 'octave' source code
> in order to never be
> > accused of violating GPL ...
>
> Is that a flame-bait? I'll bite anyway... It is trivial to
> avoid
> violating the GPL: just release your code! If you somehow
> oppose the
> GPL, then I don't see why you would use Octave or why
> anybody here would
> want to help you.
>
> Søren
>
>

Suppose the person writes a syntax-highlighting plugin for a BSD-licensed
editor, and the person wants both the plugin and the editor to remain
BSD-licensed.

Or not an editor, but an IDE.

A tool that helps to use 'octave' should not necessarily be GPL'ed. And
if the tool helps to use 'octave', 'octave' benefits, doesn't it ?

Or GPL people are of the "who is not with us is against us" kind ?

Seriously, it's not a good thing to derive spec from code - regardless of
tool and license.

For example, one of the most significant differences between Perl 5 and 6
is that the latter has the spec while the former doesn't.

Regards,
  Sergei.


     

_______________________________________________
Help-octave mailing list
Help-octave@...
https://www-old.cae.wisc.edu/mailman/listinfo/help-octave

Re: about Octave's syntax

by Jaroslav Hajek-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, Jul 2, 2009 at 10:29 AM, Sergei Steshenko<sergstesh@...> wrote:

>
>
>
> --- On Thu, 7/2/09, Søren Hauberg <soren@...> wrote:
>
>> From: Søren Hauberg <soren@...>
>> Subject: Re: about Octave's syntax
>> To: "Sergei Steshenko" <sergstesh@...>
>> Cc: "Eduardo Alejandro Cuesta Llanes" <eacuesta@...>, help-octave@...
>> Date: Thursday, July 2, 2009, 1:20 AM
>> tor, 02 07 2009 kl. 00:08 -0700,
>> skrev Sergei Steshenko:
>> > --- On Wed, 7/1/09, Søren Hauberg <soren@...>
>> wrote:
>> >
>> > > From: Søren Hauberg <soren@...>
>> > > Subject: Re: about Octave's syntax
>> > > To: "Eduardo Alejandro Cuesta Llanes" <eacuesta@...>
>> > > Cc: help-octave@...
>> > > Date: Wednesday, July 1, 2009, 12:44 PM
>> > > ons, 01 07 2009 kl. 10:16 -0400,
>> > > skrev Eduardo Alejandro Cuesta Llanes:
>> > > > I need the formal Octave's syntax for make
>> a
>> > > parser...
>> > >
>> > > Well, you do have access to the source code, so
>> why not
>> > > just inspect the
>> > > code for the actual parser? Or perhaps just use
>> the parser
>> > > instead of
>> > > writing your own...
>> > >
>> > > Søren
>> > >
>> >
>> > Or perhaps never-ever look into 'octave' source code
>> in order to never be
>> > accused of violating GPL ...
>>
>> Is that a flame-bait? I'll bite anyway... It is trivial to
>> avoid
>> violating the GPL: just release your code! If you somehow
>> oppose the
>> GPL, then I don't see why you would use Octave or why
>> anybody here would
>> want to help you.
>>
>> Søren
>>
>>
>
> Suppose the person writes a syntax-highlighting plugin for a BSD-licensed
> editor, and the person wants both the plugin and the editor to remain
> BSD-licensed.
>
> Or not an editor, but an IDE.
>

IIRC, the license issues of BSD vs. GPL are fairly clear and well
documented. A derivative work combining GPL and BSD must be under GPL.
If you don't like it, don't make a derivative work - there are plenty
of options.

>
> A tool that helps to use 'octave' should not necessarily be GPL'ed. And
> if the tool helps to use 'octave', 'octave' benefits, doesn't it ?
>

Not necessarily. Merely using Octave brings no benefit. It always
requires a bit more.

>
> Or GPL people are of the "who is not with us is against us" kind ?
>

Who are GPL people?

>
> Seriously, it's not a good thing to derive spec from code - regardless of
> tool and license.
>

Obviously, most of the Octave language was derived from Matlab. I
don't think the formal grammar for the latter was ever published.

--
RNDr. Jaroslav Hajek
computing expert & GNU Octave developer
Aeronautical Research and Test Institute (VZLU)
Prague, Czech Republic
url: www.highegg.matfyz.cz

_______________________________________________
Help-octave mailing list
Help-octave@...
https://www-old.cae.wisc.edu/mailman/listinfo/help-octave

Parent Message unknown Re: about Octave's syntax

by Sergei Steshenko-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message




--- On Thu, 7/2/09, Jaroslav Hajek <highegg@...> wrote:

> From: Jaroslav Hajek <highegg@...>
> Subject: Re: about Octave's syntax
> To: "Sergei Steshenko" <sergstesh@...>
> Cc: "Søren Hauberg" <soren@...>, "Eduardo Alejandro Cuesta Llanes" <eacuesta@...>, help-octave@...
> Date: Thursday, July 2, 2009, 1:43 AM
> On Thu, Jul 2, 2009 at 10:29 AM,

[snip]

> IIRC, the license issues of BSD vs. GPL are fairly clear
> and well
> documented. A derivative work combining GPL and BSD must be
> under GPL.
> If you don't like it, don't make a derivative work - there
> are plenty
> of options.

[snip]

>
> Obviously, most of the Octave language was derived from
> Matlab. I
> don't think the formal grammar for the latter was ever
> published.
>
> --
> RNDr. Jaroslav Hajek
> computing expert & GNU Octave developer
> Aeronautical Research and Test Institute (VZLU)
> Prague, Czech Republic
> url: www.highegg.matfyz.cz
>

Sp, do I understand you correctly:

1) 'octave' is a derived work of 'matlab' - because of the language;
2) anything that uses 'octave' syntax is a derived work of 'octave', and
thus should be released under GPL ?

:-).

That was my point - the OP maybe wanted in no way his work to be considered
to be derived works of 'ocatave'.

Regards,
  Sergei.


     

_______________________________________________
Help-octave mailing list
Help-octave@...
https://www-old.cae.wisc.edu/mailman/listinfo/help-octave

Re: about Octave's syntax

by Jaroslav Hajek-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

2009/7/2 Sergei Steshenko <sergstesh@...>:

>
>
>
> --- On Thu, 7/2/09, Jaroslav Hajek <highegg@...> wrote:
>
>> From: Jaroslav Hajek <highegg@...>
>> Subject: Re: about Octave's syntax
>> To: "Sergei Steshenko" <sergstesh@...>
>> Cc: "Søren Hauberg" <soren@...>, "Eduardo Alejandro Cuesta Llanes" <eacuesta@...>, help-octave@...
>> Date: Thursday, July 2, 2009, 1:43 AM
>> On Thu, Jul 2, 2009 at 10:29 AM,
>
> [snip]
>
>> IIRC, the license issues of BSD vs. GPL are fairly clear
>> and well
>> documented. A derivative work combining GPL and BSD must be
>> under GPL.
>> If you don't like it, don't make a derivative work - there
>> are plenty
>> of options.
>
> [snip]
>
>>
>> Obviously, most of the Octave language was derived from
>> Matlab. I
>> don't think the formal grammar for the latter was ever
>> published.
>>
>> --
>> RNDr. Jaroslav Hajek
>> computing expert & GNU Octave developer
>> Aeronautical Research and Test Institute (VZLU)
>> Prague, Czech Republic
>> url: www.highegg.matfyz.cz
>>
>
> Sp, do I understand you correctly:
>
> 1) 'octave' is a derived work of 'matlab' - because of the language;

No.

> 2) anything that uses 'octave' syntax is a derived work of 'octave', and
> thus should be released under GPL ?

No.

Please read the GPL text to find out what constitutes a derivative work.

>
> :-).
>
> That was my point - the OP maybe wanted in no way his work to be considered
> to be derived works of 'ocatave'.
>

GPL is (relatively) clear about what derivative works are, and using a
GPL software means agreeing with GPL. It's not really relevant what
the OP (or anyone else) wants, beyond the point that he can choose to
not use the software at all (which is only logical when one disagrees
with software license).

--
RNDr. Jaroslav Hajek
computing expert & GNU Octave developer
Aeronautical Research and Test Institute (VZLU)
Prague, Czech Republic
url: www.highegg.matfyz.cz

_______________________________________________
Help-octave mailing list
Help-octave@...
https://www-old.cae.wisc.edu/mailman/listinfo/help-octave

Parent Message unknown Re: about Octave's syntax

by Sergei Steshenko-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message




--- On Thu, 7/2/09, Jaroslav Hajek <highegg@...> wrote:

> From: Jaroslav Hajek <highegg@...>
> Subject: Re: about Octave's syntax
> To: "Sergei Steshenko" <sergstesh@...>
> Cc: "Søren Hauberg" <soren@...>, "Eduardo Alejandro Cuesta Llanes" <eacuesta@...>, help-octave@...
> Date: Thursday, July 2, 2009, 2:02 AM
> 2009/7/2 Sergei Steshenko <sergstesh@...>:
> >
> >
> >
> > --- On Thu, 7/2/09, Jaroslav Hajek <highegg@...>
> wrote:
> >
> >> From: Jaroslav Hajek <highegg@...>
> >> Subject: Re: about Octave's syntax
> >> To: "Sergei Steshenko" <sergstesh@...>
> >> Cc: "Søren Hauberg" <soren@...>,
> "Eduardo Alejandro Cuesta Llanes" <eacuesta@...>,
> help-octave@...
> >> Date: Thursday, July 2, 2009, 1:43 AM
> >> On Thu, Jul 2, 2009 at 10:29 AM,
> >
> > [snip]
> >
> >> IIRC, the license issues of BSD vs. GPL are fairly
> clear
> >> and well
> >> documented. A derivative work combining GPL and
> BSD must be
> >> under GPL.
> >> If you don't like it, don't make a derivative work
> - there
> >> are plenty
> >> of options.
> >
> > [snip]
> >
> >>
> >> Obviously, most of the Octave language was derived
> from
> >> Matlab. I
> >> don't think the formal grammar for the latter was
> ever
> >> published.
> >>
> >> --
> >> RNDr. Jaroslav Hajek
> >> computing expert & GNU Octave developer
> >> Aeronautical Research and Test Institute (VZLU)
> >> Prague, Czech Republic
> >> url: www.highegg.matfyz.cz
> >>
> >
> > Sp, do I understand you correctly:
> >
> > 1) 'octave' is a derived work of 'matlab' - because of
> the language;
>
> No.
>
> > 2) anything that uses 'octave' syntax is a derived
> work of 'octave', and
> > thus should be released under GPL ?
>
> No.
>
> Please read the GPL text to find out what constitutes a
> derivative work.
>
> >
> > :-).
> >
> > That was my point - the OP maybe wanted in no way his
> work to be considered
> > to be derived works of 'ocatave'.
> >
>
> GPL is (relatively) clear about what derivative works are,
> and using a
> GPL software means agreeing with GPL. It's not really
> relevant what
> the OP (or anyone else) wants, beyond the point that he can
> choose to
> not use the software at all (which is only logical when one
> disagrees
> with software license).
>
> --
> RNDr. Jaroslav Hajek
> computing expert & GNU Octave developer
> Aeronautical Research and Test Institute (VZLU)
> Prague, Czech Republic
> url: www.highegg.matfyz.cz
>

I think the most logical thing (and OP did it) is to ask a question first.

Presence of separate from code language spec/grammar allows (in many cases)
to write a parser under any license.

Regards,
  Sergei.


     

_______________________________________________
Help-octave mailing list
Help-octave@...
https://www-old.cae.wisc.edu/mailman/listinfo/help-octave

Re: about Octave's syntax

by Jaroslav Hajek-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

2009/7/2 Sergei Steshenko <sergstesh@...>:

>
>
>
> --- On Thu, 7/2/09, Jaroslav Hajek <highegg@...> wrote:
>
>> From: Jaroslav Hajek <highegg@...>
>> Subject: Re: about Octave's syntax
>> To: "Sergei Steshenko" <sergstesh@...>
>> Cc: "Søren Hauberg" <soren@...>, "Eduardo Alejandro Cuesta Llanes" <eacuesta@...>, help-octave@...
>> Date: Thursday, July 2, 2009, 2:02 AM
>> 2009/7/2 Sergei Steshenko <sergstesh@...>:
>> >
>> >
>> >
>> > --- On Thu, 7/2/09, Jaroslav Hajek <highegg@...>
>> wrote:
>> >
>> >> From: Jaroslav Hajek <highegg@...>
>> >> Subject: Re: about Octave's syntax
>> >> To: "Sergei Steshenko" <sergstesh@...>
>> >> Cc: "Søren Hauberg" <soren@...>,
>> "Eduardo Alejandro Cuesta Llanes" <eacuesta@...>,
>> help-octave@...
>> >> Date: Thursday, July 2, 2009, 1:43 AM
>> >> On Thu, Jul 2, 2009 at 10:29 AM,
>> >
>> > [snip]
>> >
>> >> IIRC, the license issues of BSD vs. GPL are fairly
>> clear
>> >> and well
>> >> documented. A derivative work combining GPL and
>> BSD must be
>> >> under GPL.
>> >> If you don't like it, don't make a derivative work
>> - there
>> >> are plenty
>> >> of options.
>> >
>> > [snip]
>> >
>> >>
>> >> Obviously, most of the Octave language was derived
>> from
>> >> Matlab. I
>> >> don't think the formal grammar for the latter was
>> ever
>> >> published.
>> >>
>> >> --
>> >> RNDr. Jaroslav Hajek
>> >> computing expert & GNU Octave developer
>> >> Aeronautical Research and Test Institute (VZLU)
>> >> Prague, Czech Republic
>> >> url: www.highegg.matfyz.cz
>> >>
>> >
>> > Sp, do I understand you correctly:
>> >
>> > 1) 'octave' is a derived work of 'matlab' - because of
>> the language;
>>
>> No.
>>
>> > 2) anything that uses 'octave' syntax is a derived
>> work of 'octave', and
>> > thus should be released under GPL ?
>>
>> No.
>>
>> Please read the GPL text to find out what constitutes a
>> derivative work.
>>
>> >
>> > :-).
>> >
>> > That was my point - the OP maybe wanted in no way his
>> work to be considered
>> > to be derived works of 'ocatave'.
>> >
>>
>> GPL is (relatively) clear about what derivative works are,
>> and using a
>> GPL software means agreeing with GPL. It's not really
>> relevant what
>> the OP (or anyone else) wants, beyond the point that he can
>> choose to
>> not use the software at all (which is only logical when one
>> disagrees
>> with software license).
>>
>> --
>> RNDr. Jaroslav Hajek
>> computing expert & GNU Octave developer
>> Aeronautical Research and Test Institute (VZLU)
>> Prague, Czech Republic
>> url: www.highegg.matfyz.cz
>>
>
> I think the most logical thing (and OP did it) is to ask a question first.

In fact, he didn't. At least I don't see one. All I see is a request
"I need the formal grammar" and I already answered that I don't think
such a thing exists.

>
> Presence of separate from code language spec/grammar allows (in many cases)
> to write a parser under any license.
>

So what? The same is true if you write the parser using Octave source
code as a reference. What you can't do is to copy (or you must use
GPL), but merely learning how the code works and what it does is your
essential freedom, one that GPL protects, and exercising this freedom
does imply any obligations for you.

regards

--
RNDr. Jaroslav Hajek
computing expert & GNU Octave developer
Aeronautical Research and Test Institute (VZLU)
Prague, Czech Republic
url: www.highegg.matfyz.cz

_______________________________________________
Help-octave mailing list
Help-octave@...
https://www-old.cae.wisc.edu/mailman/listinfo/help-octave

Parent Message unknown Re: about Octave's syntax

by Sergei Steshenko-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message




--- On Thu, 7/2/09, Jaroslav Hajek <highegg@...> wrote:

> From: Jaroslav Hajek <highegg@...>
> Subject: Re: about Octave's syntax
> To: "Sergei Steshenko" <sergstesh@...>
> Cc: "Søren Hauberg" <soren@...>, "Eduardo Alejandro Cuesta Llanes" <eacuesta@...>, help-octave@...
> Date: Thursday, July 2, 2009, 2:20 AM
> 2009/7/2 Sergei Steshenko <sergstesh@...>:
[snip]

> > Presence of separate from code language spec/grammar
> allows (in many cases)
> > to write a parser under any license.
> >
>
> So what? The same is true if you write the parser using
> Octave source
> code as a reference. What you can't do is to copy (or you
> must use
> GPL), but merely learning how the code works and what it
> does is your
> essential freedom, one that GPL protects, and exercising
> this freedom
> does imply any obligations for you.
>
> regards
>
> --
> RNDr. Jaroslav Hajek
> computing expert & GNU Octave developer
> Aeronautical Research and Test Institute (VZLU)
> Prague, Czech Republic
> url: www.highegg.matfyz.cz
>

As I heard from people in in corporate environment, lawyers prefer to be
on the safe side and often demand clean room implementation.

Which may mean that a group of people studies the code and writes the spec,
and _another_ group of people writes an alternative implementation based
on the spec.

...

Anyway, if 'octave' formally defined grammar is ever to be born,
this:

http://www.cs.berkeley.edu/~smcpeak/elkhound/sources/elkhound/index.html

might be a handy tool to convert it into C++.

Regards,
  Sergei.


     

_______________________________________________
Help-octave mailing list
Help-octave@...
https://www-old.cae.wisc.edu/mailman/listinfo/help-octave