Lines Matching refs:example
60 example 'flat token list' do
72 example 'token list in a single-alternative subrule' do
84 example "simple root at the outer level via the `^' operator" do
96 example "outer-level root changing token order from the `^' operator" do
108 example "leaving out tokens using the `!' operator" do
121 example "tokens in `(...)?' optional subrule" do
133 example "labeled literal-string root token" do
145 example 'rule with token wildcard' do
157 example "token wildcard as root via the `^' operator" do
169 example "labeled token wildcard as root via the `^' operator" do
182 example "token wildcard as root (with list label)" do
195 example "trashed token wildcard" do
208 example "multiple occurences of the `^' operator in a list of tokens" do
221 example "another case of multiple occurences of the `^' operator" do
234 example "root-hoist using `^' from within a (...)+ block" do
247 example "nested subrules without any AST ops resulting in a flat list" do
262 example "invoking another rule without any AST ops, resulting in a flat list" do
278 example "hoisting the results of another rule as root using the `^' operator" do
294 example "hoisting another rule's true as root using the `^' operator (with a label)" do
310 …example "hoisting another rule's result tree as root using the `^' operator (with a list += label)…
326 example "root-hoist via `^' within a (...)* loop resulting in a deeply-nested tree" do
339 …example "hoisting another rule's result tree as root from within a (...)* loop resulting in a deep…
355 example "using tail recursion to build deeply-nested expression trees" do
370 example "simple token node from a token type set" do
382 example "hoisting a token-type set token as root with `^'" do
395 example "hoisting a token-type set token as root with `^' (with a label)" do
408 example "hoisting a token-type set token as root from within a (...)* loop" do
421 example "an `~' inverted token-type set element" do
434 example "a `~' inverted token-type set in a rule (with a label)" do
447 example "a `~' inverted token-type set element in a rule (with a list += label)" do
460 example "a `~' inverted token-type set element hoisted to root via `^'" do
473 example "hoisting a `~' inverted token-type set to root using `^' (with label)" do
485 example "hoisting a `~' inverted token-type set to root using `^' (with list += label)" do
497 example "hoisting a `~' inverted token-type set to root from within a (...)* loop" do
511 example "multiple tokens with the same label in a rule" do
526 example "multiple tokens with the same label in a rule (with a `^' root hoist)" do
539 example "extra token in a simple declaration" do
554 example "missing ID in a simple declaration" do
569 example "missing token of a token-type set in a simple declaration" do
585 example "missing INT token simulated with a `<missing INT>' error node" do
599 example "missing token from invoked rule results in error node with a resync attribute" do
614 example "extraneous ID token displays error and is ignored in AST output" do
630 example "missing ID token simulated with a `<missing ID>' error node" do
644 example "another case where a missing ID token is simulated with a `<missing ID>' error node" do
660 …example "no viable alternative for rule is represented as a single `<unexpected: ...>' error node"…
676 example "token with a `+=' list label hoisted to root with `^'" do
689 example "token with a list `+=' label trashed with `!'" do
702 example "using list `+=' labels to collect trees of invoked rules" do
719 example "using a list `+=' label to collect the trees of invoked rules within a (...)+ block" do
735 …example "trashing the tree of an invoked rule with `!' while collecting the tree with a list `+=' …
751 example "a whole bunch of different elements" do
765 example "rule return values in addition to AST output" do
779 example "a (...)+ loop containing a token-type set" do