@@ 955-959 (lines=5) @@ | ||
952 | while ($i < $formula_length) { |
|
953 | $token .= $this->formula[$i]; |
|
954 | ||
955 | if ($i < ($formula_length - 1)) { |
|
956 | $this->lookAhead = $this->formula[$i + 1]; |
|
957 | } else { |
|
958 | $this->lookAhead = ''; |
|
959 | } |
|
960 | ||
961 | if ($this->match($token) != '') { |
|
962 | $this->currentCharacter = $i + 1; |
|
@@ 968-972 (lines=5) @@ | ||
965 | return 1; |
|
966 | } |
|
967 | ||
968 | if ($i < ($formula_length - 2)) { |
|
969 | $this->lookAhead = $this->formula[$i + 2]; |
|
970 | } else { // if we run out of characters lookAhead becomes empty |
|
971 | $this->lookAhead = ''; |
|
972 | } |
|
973 | ++$i; |
|
974 | } |
|
975 | //die("Lexical error ".$this->currentCharacter); |