BASIC Language Parser: Parse BASIC language statements

Recommend this page to a friend!
  Info   View files (3)   Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 747 All time: 4,429 This week: 359
Version License PHP version Categories
basic-parser 1.0Freeware5PHP 5, Parsers
Description Author

This class can parse parse BASIC language statements.

It takes a string of BASIC commands and parses them to validate its structure.

Currently the class supports the commands IF, THEN, ELSE, END and DO.

Innovation Award
PHP Programming Innovation award nominee
May 2012
Number 3


Prize: One copy of RadPHP XE2
BASIC is programming language used since many years ago to create scripted applications.

This class provides the beginning of what can be a more complex BASIC language interpreter.

Manuel Lemos
Picture of Muhammad Arfeen
Name: Muhammad Arfeen is available for providing paid consulting. Contact Muhammad Arfeen .
Classes: 9 packages by
Country: Pakistan Pakistan
Age: 42
All time rank: 4574 in Pakistan Pakistan
Week rank: 762 16 in Pakistan Pakistan
Innovation award
Innovation award
Nominee: 5x

Winner: 1x

Details
Syntax:
	
		IF <( ANY CONDITION YOU WANT )> THEN
			DO <ANY STRING WHICH YOU CAN PARSE>
		ELSE
			{ DO <ANY STRING WHICH YOU CAN PARSE> | IF <( ANY CONDITION YOU WANT )> }
		END
		
		
Example:

				IF (MY_AGE > 13)
					THEN
						DO AGECHECK
					ELSE
						IF (MY_AGE > 20)
							DO ANOTHERROUTINES
						END
				END
  Files  
File Role Description
BasicLanguageParser.php Class Main Class
readme.txt Doc. User Guide
test.php Example Sample script

 Version Control Unique User Downloads Download Rankings  
 0%
Total:747
This week:0
All time:4,429
This week:359

For more information send a message to info at phpclasses dot org.