/* ** tests/test_locations.h -- struct loc_capture shared between the ** test driver and the grammar's %extra_argument. */ #ifndef TEST_LOCATIONS_H #define TEST_LOCATIONS_H struct loc_capture { int s_loc; /* @ for s = the merged LHS location */ int e_loc; /* @ for the topmost e reduction */ int a_loc; /* @ for A in `e ::= opt_sign A` */ int sign_loc; /* @ for opt_sign (empty in test 1) */ }; #endif