@@ 11-15 (lines=5) @@ | ||
8 | $this->input = preg_replace('/^([[:space:]]|,)*/', '', $this->input); |
|
9 | //echo "scanner: input(".$this->input.")<br>\n"; |
|
10 | switch (true) { |
|
11 | case preg_match('/^([a-zA-Z0-9_][a-zA-Z0-9._:]*)/', $this->input, $regs): |
|
12 | $this->token_ahead = T_G_IDENT; |
|
13 | $this->token_ahead_value = $regs[1]; |
|
14 | $this->input = substr($this->input, strlen($regs[1])); |
|
15 | break; |
|
16 | case preg_match('/^([]+->=(){}[])/', $this->input, $regs): |
|
17 | $this->token_ahead = $regs[1]; |
|
18 | $this->token_ahead_value = $regs[1]; |
|
@@ 16-20 (lines=5) @@ | ||
13 | $this->token_ahead_value = $regs[1]; |
|
14 | $this->input = substr($this->input, strlen($regs[1])); |
|
15 | break; |
|
16 | case preg_match('/^([]+->=(){}[])/', $this->input, $regs): |
|
17 | $this->token_ahead = $regs[1]; |
|
18 | $this->token_ahead_value = $regs[1]; |
|
19 | $this->input = substr($this->input, 1); |
|
20 | break; |
|
21 | default: |
|
22 | $this->token_ahead = 0; |
|
23 | $this->token_ahead_value = ''; |