help-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

BISON To Represent BASIC Grammer


From: Chris Cranford
Subject: BISON To Represent BASIC Grammer
Date: Tue, 13 Apr 2004 18:34:39 -0400

I am trying to write a BASIC-language script bytecode compiler.  Someone
recommended that I use BISON in order to properly parse my .BAS and to
generate my bytecode file.  Has anyone attempted this in the past or can
offer some assistance?

Here is an example .BAS file:

////
// Sample program
//
Dim X as Integer = 2
Dim Y as String  = "Hello World"

Print X
Print Y
Print "This is a string printed on print statement followed by the #"; X

End
// End of file
////

Appreciate anyone's help in advance!
Chris






reply via email to

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