A new SDL article

This one doesn’t have much to do with SDL, but it might be interesting
to you anyway:

Using SDL, Part 4: lex and yacc
Building parsers for scripts and GUI design

In this installment we look at two useful tools in the arsenal of any
Linux programmer: lex and yacc. These tools have enabled us to easily
build the scripting language and GUI framework that we used in Pirates Ho!,
our SDL-based Linux game.

http://www-4.ibm.com/software/developer/library/pirates4/

See ya!
-Sam Lantinga, Lead Programmer, Loki Entertainment Software

Sam Lantinga wrote:

This one doesn’t have much to do with SDL, but it might be interesting
to you anyway:

Using SDL, Part 4: lex and yacc
Building parsers for scripts and GUI design

In this installment we look at two useful tools in the arsenal of any
Linux programmer: lex and yacc. These tools have enabled us to easily
build the scripting language and GUI framework that we used in Pirates Ho!,
our SDL-based Linux game.

http://www-4.ibm.com/software/developer/library/pirates4/

See ya!
-Sam Lantinga, Lead Programmer, Loki Entertainment Software

I don’t mean to knock your article, but why would you want to
design a new scripting language? Why not use one that already
exists? It seems like writing a parser for a new scripting language
is a lot more work than just plugging your C functions into
an existing scripting language.

Mo DeJong
Red Hat Inc

I don’t mean to knock your article, but why would you want to
design a new scripting language?

Two reasons. First, it was a learning experience. Second, I wanted
the language easy enough to use that newbies could pick it up easily.

I don’t know if I’ll succeed in making it easy, but it is a great
learning experience for the game.

See ya,
-Sam Lantinga, Lead Programmer, Loki Entertainment Software

I don’t know if I’ll succeed in making it easy, but it is a great
learning experience for the game.

Yeah! It’s fun to reinvent wheels! You get to flex your brain muscles. :slight_smile:

-bill!

A new article is available on the articles page:
Linux Power - June 2000
SDL making game development on Linux a reality
http://linuxpower.org/display.php?id=185

See ya!
-Sam Lantinga, Lead Programmer, Loki Entertainment Software