PHP Classes
elePHPant
Icontem

BASIC Language Parser: Parse BASIC language statements

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2012-05-05 (3 years ago) RSS 2.0 feedNot enough user ratingsTotal: 708 This week: 1All time: 4,338 This week: 1,082Up
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: 8 packages by
Country: Pakistan Pakistan
Age: 37
All time rank: 4784 in Pakistan Pakistan
Week rank: 581 Down16 in Pakistan Pakistan Down
Innovation award
Innovation award
Nominee: 4x

Winner: 1x

Details provided by the author  
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 folder image Files  
File Role Description
Plain text file BasicLanguageParser.php Class Main Class
Accessible without login Plain text file readme.txt Doc. User Guide
Accessible without login Plain text file test.php Example Sample script

 Version Control Unique User Downloads Download Rankings  
 0%Total:708All time:4,338
 This week:1This week:1,082Up