Changeset View
Changeset View
Standalone View
Standalone View
support/xhpast/parser.y
| Show First 20 Lines • Show All 63 Lines • ▼ Show 20 Lines | |||||
| } | } | ||||
| */ | */ | ||||
| %} | %} | ||||
| %expect 5 | %expect 5 | ||||
| // 2: PHP's if/else grammar | // 2: PHP's if/else grammar | ||||
| // 7: expr '[' dim_offset ']' -- shift will default to first grammar | // 7: expr '[' dim_offset ']' -- shift will default to first grammar | ||||
| %name-prefix = "xhpast" | %name-prefix "xhpast" | ||||
| %pure-parser | %pure-parser | ||||
| %parse-param { void* yyscanner } | %parse-param { void* yyscanner } | ||||
| %parse-param { xhpast::Node** root } | %parse-param { xhpast::Node** root } | ||||
| %lex-param { void* yyscanner } | %lex-param { void* yyscanner } | ||||
| %error-verbose | %error-verbose | ||||
| %left T_INCLUDE T_INCLUDE_ONCE T_EVAL T_REQUIRE T_REQUIRE_ONCE | %left T_INCLUDE T_INCLUDE_ONCE T_EVAL T_REQUIRE T_REQUIRE_ONCE | ||||
| %left ',' | %left ',' | ||||
| ▲ Show 20 Lines • Show All 2,654 Lines • Show Last 20 Lines | |||||