Language::Basic::ExpressionLanguage::Basic::Expression is a Perl package to handle string, numeric, and boolean expressions. | |
Download |
Language::Basic::Expression Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Amir Karger
- Publisher web site:
- http://search.cpan.org/~akarger/Language-Zcode-0.8/lib/Language/Zcode.pm
Language::Basic::Expression Tags
Language::Basic::Expression Description
Language::Basic::Expression is a Perl package to handle string, numeric, and boolean expressions. Language::Basic::Expression is a Perl package to handle string, numeric, and boolean expressions.SYNOPSISSee Language::Basic for the overview of how the Language::Basic module works. This pod page is more technical. # Given an LB::Token::Group, create an expression I parse it my $exp = new LB::Expression::Arithmetic $token_group; # What's the value of the expression? print $exp->evaluate; # Perl equivalent of the BASIC expression print $exp->output_perl;Expressions are basically the building blocks of Statements, in that every BASIC statement is made up of keywords (like GOTO, TO, STEP) and expressions. So expressions include not just the standard arithmetic and boolean expressions (like 1 + 2), but also lvalues (scalar variables or arrays), functions, and constants. See Language::Basic::Syntax for details on the way expressions are built.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". "Atoms" (indivisible LBE's) include things like LBE::Constants and LBE::Lvalues (variables).Requirements:· Perl Requirements: · Perl
Language::Basic::Expression Related Software