Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
112 user(s) are online (101 user(s) are browsing Forums)

Members: 3
Guests: 109

joerg, emeck, samo79, more...

Support us!

Headlines

 
  Register To Post  

Good parser generator for OS4
Just popping in
Just popping in


See User information
Hi all,

Does anyone here have some experience with a parser generator for OS4? I am looking for one I can use.

Cheers,
Coder

Can't get enough of me?
The Bucket Diary
Go to top
Re: Good parser generator for OS4
Home away from home
Home away from home


See User information
@Coder
I personally recommend writing a parser manually - it's not that hard, and you get full control of it (rather than being forced to follow some complex & inflexible conventions that may not easily do what you want).

PortablE comes with the example "ToyInterpreter.e" program. Jack Crenshaw's (sp?) famous guide "Let's write a compiler" (or something like that) is a great introduction too, but he uses Pascal.

Author of the PortablE programming language.
Go to top
Re: Good parser generator for OS4
Home away from home
Home away from home


See User information
@Coder

There a port of Bison about I think (or was it Yacc?). Only ever used it for ports (perl etc) though. Never used it from scratch.

Go to top
Re: Good parser generator for OS4
Just popping in
Just popping in


See User information
@Coder & ChrisH

The book can be found here:

http://www.stack.nl/~marcov/compiler.pdf

Have fun!

Go to top
Re: Good parser generator for OS4
Quite a regular
Quite a regular


See User information
@Coder

Don't we have lex/yacc? I think we do.

However I never got the point of a parser generator. Used lex/yacc in some university course once. STill don't get the point. I found writing the parser language the parser generator need and then try to understand and make use of the mess it outputs to be just as difficult as simply writing your own parser.

Software developer for Amiga OS3 and OS4.
Develops for OnyxSoft and the Amiga using E and C and occasionally C++
Go to top
Re: Good parser generator for OS4
Amigans Defender
Amigans Defender


See User information
@Coder

There is also Lemon.

Go to top
Re: Good parser generator for OS4
Just popping in
Just popping in


See User information
@broadblues

Quote:

broadblues wrote:
@Coder

There a port of Bison about I think (or was it Yacc?). Only ever used it for ports (perl etc) though. Never used it from scratch.


I think that is the one I spotted on Aminet.

Coder

Can't get enough of me?
The Bucket Diary
Go to top
Re: Good parser generator for OS4
Just popping in
Just popping in


See User information
@Chris

Quote:

Chris wrote:
@Coder

There is also Lemon.


Thanks.

Coder

Can't get enough of me?
The Bucket Diary
Go to top
Re: Good parser generator for OS4
Just popping in
Just popping in


See User information
@ChrisH

Quote:

ChrisH wrote:
@Coder
I personally recommend writing a parser manually - it's not that hard, and you get full control of it (rather than being forced to follow some complex & inflexible conventions that may not easily do what you want).

PortablE comes with the example "ToyInterpreter.e" program. Jack Crenshaw's (sp?) famous guide "Let's write a compiler" (or something like that) is a great introduction too, but he uses Pascal.


Hmmm interesting. Like you said, full control.

Coder

Can't get enough of me?
The Bucket Diary
Go to top
Re: Good parser generator for OS4
Just popping in
Just popping in


See User information
@whose

Quote:

whose wrote:
@Coder & ChrisH

The book can be found here:

http://www.stack.nl/~marcov/compiler.pdf

Have fun!


Thanks!

Coder

Can't get enough of me?
The Bucket Diary
Go to top
Re: Good parser generator for OS4
Just popping in
Just popping in


See User information
@Deniil

Quote:

Deniil wrote:
@Coder

Don't we have lex/yacc? I think we do.

However I never got the point of a parser generator. Used lex/yacc in some university course once. STill don't get the point. I found writing the parser language the parser generator need and then try to understand and make use of the mess it outputs to be just as difficult as simply writing your own parser.


You and Chris made me think about looking into writing my own parser.

Coder

Can't get enough of me?
The Bucket Diary
Go to top
Re: Good parser generator for OS4
Just popping in
Just popping in


See User information
@Coder

http://piumarta.com/software/peg/ is the parser generator that Sidewinder and I were adapting for use with the Mattathias project before we sidelined it. It is written in C and should compile out of the box on OS 4 assuming you have unistd.h . It is much, MUCH easier to use than Lex and YACC and their descendents.

Go to top
Re: Good parser generator for OS4
Just popping in
Just popping in


See User information
@Samurai_Crow

Quote:

Samurai_Crow wrote:
@Coder

http://piumarta.com/software/peg/ is the parser generator that Sidewinder and I were adapting for use with the Mattathias project before we sidelined it. It is written in C and should compile out of the box on OS 4 assuming you have unistd.h . It is much, MUCH easier to use than Lex and YACC and their descendents.


Thanks. I will have a look at that.

Coder

Can't get enough of me?
The Bucket Diary
Go to top
Re: Good parser generator for OS4
Just can't stay away
Just can't stay away


See User information
@Coder
I have flex in my SDK:local/c directory (not sure if it came with the SDK or I D/L it from OS4Depot) but have no idea how to use it. I know the YAM sources use flex but I never took a close look at how it's used.

Go to top
Re: Good parser generator for OS4
Just popping in
Just popping in


See User information
@xenic

Quote:

xenic wrote:
@Coder
I have flex in my SDK:local/c directory (not sure if it came with the SDK or I D/L it from OS4Depot) but have no idea how to use it. I know the YAM sources use flex but I never took a close look at how it's used.


Thanks. I will have a look at my system for it.

Coder

Can't get enough of me?
The Bucket Diary
Go to top

  Register To Post

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project