| File | tables.str |
| Author | Eric Bouwers |
| Since | unknown |
Module containing information and strategies to find/open the parse-table to use.
| General | |
| Lines of code | 77 |
| Stratego | |
| Module number | 1 (100% documented) |
| Constructor number | 0 |
| Overlay number | 0 |
| Strategy number | 7 (100% documented) |
| Rule number | 0 |
| DynamicRule number | 3 (0% documented) |
Strategy summary |
||
| get-base-part | Constructs the base-part of the parse table to find based on the version to parse | tables.str |
| get-parse-table(ATerm symbol) | Will find tha parse table that is needed in order to parse the given start-symbol | tables.str |
| get-table-extension(ATerm symbol) | Constructs the extensions based on the start-symbol to parse | tables.str |
| php-open-parse-table | Opens the right parse table for parsing PHP sources | tables.str |
| php-open-parse-table(Strategy finder) | Uses the given strategy to find the parse that should be opened | tables.str |
| using-php4(Strategy s) | Forces a strategy to be evaluated under the assumption of PHP version 4 | tables.str |
| using-php5(Strategy s) | Forces a strategy to be evaluated under the assumption of PHP version 5 | tables.str |
Strategy details |
|||||||||||||||
| ATerm | get-base-part | ||||||||||||||
Constructs the base-part of the parse table to findbased on the version to parse.
|
|||||||||||||||
| ATerm | get-parse-table(ATerm symbol) | ||||||||||||||
Will find tha parse table that is needed in order toparse the given start-symbol.
|
|||||||||||||||
| ATerm | get-table-extension(ATerm symbol) | ||||||||||||||
Constructs the extensions based on the start-symbol to parse. The extension will be nothing or 'Test'.
|
|||||||||||||||
| ATerm | php-open-parse-table | ||||||||||||||
Opens the right parse table for parsing PHP sources. |
|||||||||||||||
| ATerm | php-open-parse-table(Strategy finder) | ||||||||||||||
Uses the given strategy to find the parse that should be opened. Will memorize the parse table that it opens.
|
|||||||||||||||
| ATerm | using-php4(Strategy s) | ||||||||||||||
Forces a strategy to be evaluated under the assumption of PHP version 4. |
|||||||||||||||
| ATerm | using-php5(Strategy s) | ||||||||||||||
Forces a strategy to be evaluated under the assumption of PHP version 5. |
|||||||||||||||