Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWWDillingham WesleyDillingham <wwdillingham@sugarlabs.org>2009-07-07 00:48:37 (GMT)
committer WWDillingham WesleyDillingham <wwdillingham@sugarlabs.org>2009-07-07 00:48:37 (GMT)
commit6007226e37b067be9bc0c672bede2f404c552db5 (patch)
treefd3211935930a5157b7e7899d60c04cb8bc2702f
parentef9251e44750e08bc3600815e427b140d3d139c2 (diff)
Added Regular expression Key
//Addition = /\+/ //Subtraction = /[0-9]\-[0-9]/ //Division = /\// //Multiplication= /\*/
-rw-r--r--order_of_operations_parser.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/order_of_operations_parser.php b/order_of_operations_parser.php
index 1d5b320..f4525db 100644
--- a/order_of_operations_parser.php
+++ b/order_of_operations_parser.php
@@ -66,8 +66,13 @@ for (i=0;i<=$numRecords;i++)
while ($tok !== false)
{
$equation = $tok[2];
-
+/**********REGULAR EXPRESSION KEY*********/
+//Addition = /\+/
+//Subtraction = /[0-9]\-[0-9]/
+//Division = /\//
+//Multiplication= /\*/
+
// ` ********************************ADDITION*************************