Complete.Org: Mailing Lists: Archives: freeciv-dev: September 2001:
[Freeciv-Dev] Server/ruleset unification & grammars [Was [RFC PATCH] ini
Home

[Freeciv-Dev] Server/ruleset unification & grammars [Was [RFC PATCH] ini

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Freeciv developers <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Server/ruleset unification & grammars [Was [RFC PATCH] init_techs]
From: Arien Malec <arien_malec@xxxxxxxxx>
Date: Mon, 24 Sep 2001 13:20:11 -0700 (PDT)

--- Raimar Falke <hawk@xxxxxxxxxxxxxxxxxxxxxxx> wrote:
> > > You know (f)lex and yacc/bison?
> > 
> > I don't, though I'm sure I could learn them.  Why?
> 
> You can easily define a small language which may be used to interface
> with the server. It can reduce the amount of parsing the "real"
> freeciv code has to do. It looks like some propose to implement
> something like this by hand.

The concept of a small/little language is, IMHO, exactly the right one. The
choice of parsing infrastructure, however, depends on how complex the little
language is. lex/yacc are great for a complex language with LALR grammars, but
there is a certain overhead associated with them. If we confine ourselves to
LL(1) grammars, we don't need that overhead.

The sort of attribute setting stuff that the server and rulesets do is not
terribly hard & doesn't *need* the full overhead of lex/yacc.

Arien

__________________________________________________
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger. 
http://im.yahoo.com


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