|csh grammar? email@example.com (Dave Thomas) (2000-07-18)|
|Re: csh grammar? firstname.lastname@example.org (Kevin Szabo) (2000-07-23)|
|From:||"Kevin Szabo" <email@example.com>|
|Date:||23 Jul 2000 16:55:16 -0400|
|Organization:||Nortel Networks (Ottawa, Ontario, Canada)|
Dave Thomas <firstname.lastname@example.org> wrote:
|I'm writing a script interpreter based on the UNIX csh. It would really
|save me some time if someone has the grammar. A bonus would be if
|someone has token transistion tables and state tables.
I'd recommend avoiding the CSH. It may have a reasonable grammar (I
haven't looked at it), but the semantics behind the CSH are irregular
at best and defective in many cases.
You would be better off emulating the SH KSH or BASH languages.
I was also wondering why you need the token and state tables? Don't
you use YACC to get those? (honest question, I've always either
built languages using YACC or written recursive descent).
[Actually, if it were my job to write a script interpreter, I'd use tcl
and refrain from reinventing the wheel. -John]
Return to the
Search the comp.compilers archives again.