Search results for "dist:Language-Basic"
Syntax - Pod file describing syntax understood by Language::Basic module
Things in *italics* are objects. Things in boldface are actual strings (reserved words or punctuation). "[]" means optional, "..." means optionally more copies of the same thing, and things between slashes that look like Perl regexps are Perl regexps...
AKARGER/Language-Basic-1.44 - 23 Jun 2000 16:14:08 UTC
Language::Basic - Perl Module to interpret BASIC
This module lets you run any BASIC programs you may have lying around, or may inspire you to write new ones! The aspects of the language that are supported are described below. Note that I was pretty much aiming for Applesoft BASIC (tm) ca. 1985, not...
AKARGER/Language-Basic-1.44 - 23 Jun 2000 16:14:08 UTC
Language::Basic::Token - Module to handle lexing BASIC statements.
BASIC tokens are pretty simple. They include Keywords, Identifiers (Variable or Function names), String and Numeric Constants, and a few one- or two-character operators, like ':' and '<='. Tokens aren't very ambiguous, so for example, you don't need ...
AKARGER/Language-Basic-1.44 - 23 Jun 2000 16:14:08 UTC
Language::Basic::Function - Package to handle user-defined and intrinsic Functions in BASIC.
The check_args method checks that the right number and type of function arguments were input. The evaluate method actually calculates the value of the function, given certain arguments. The lookup method looks up the function in the function lookup t...
AKARGER/Language-Basic-1.44 - 23 Jun 2000 16:14:08 UTC
Language::Basic::Variable - Module to handle parsing and implementing BASIC variables.
An Array needs to have full LBV::Scalar objects in it, rather than just having an array of values. The reason is that, for example, you might use ARR(3) as the variable in a FOR loop. Also, the "set" and "value" methods apply to a LBV::Scalar (since ...
AKARGER/Language-Basic-1.44 - 23 Jun 2000 16:14:08 UTC
Language::Basic::Statement - Package to handle parsing and implementing single BASIC statements.
Take a program like: 5 LET A = 2 10 IF A >= 3 THEN GOTO 20 ELSE PRINT "IT'S SMALLER" Line 5 has just one statement. Line 10 actually contains three. The first is an IF statement, but the results of the THEN and the ELSE are entire statements in thems...
AKARGER/Language-Basic-1.44 - 23 Jun 2000 16:14:08 UTC
Language::Basic::Expression - Package to handle string, numeric, and boolean expressions.
BASIC expressions are represented by various objects of subclasses of Language::Basic::Expression. Most LB::Expressions are in turn made up of other LB::Expressions. For example an LBE::Arithmetic may be made up of two LBE::Multiplicative and a "plus...
AKARGER/Language-Basic-1.44 - 23 Jun 2000 16:14:08 UTC