PHP Classes

BASIC Language Parser: Parse BASIC language statements

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 758 All time: 4,452 This week: 39Up
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: 46
All time rank: 4614 in Pakistan Pakistan
Week rank: 216 Up5 in Pakistan Pakistan Down
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 folder image Files (3)  
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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:758
This week:0
All time:4,452
This week:39Up