diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
commit | e0c6872cf40896c7be36b11dcc744620f10adf1d (patch) | |
tree | 60335e10d2f4354b0674ec22d7b53f0f8abee672 /web/yacco2/qa/test_use_cnt.lex |
Initial commit
Diffstat (limited to 'web/yacco2/qa/test_use_cnt.lex')
-rw-r--r-- | web/yacco2/qa/test_use_cnt.lex | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/web/yacco2/qa/test_use_cnt.lex b/web/yacco2/qa/test_use_cnt.lex new file mode 100644 index 0000000000..06eab253d6 --- /dev/null +++ b/web/yacco2/qa/test_use_cnt.lex @@ -0,0 +1,33 @@ +/* +$echo FILE: test_use_cnt.lex +$echo Purpose: test rules use count as an optimization +$echo Okay +*/ +fsm +(fsm-id "test_use_cnt.lex",fsm-filename test_use_cnt,fsm-namespace NS_test_use_cnt +,fsm-class CTS_la1 +,fsm-version "1.0" ,fsm-date "17 Juin 2003",fsm-debug "true" +,fsm-comments "end-of-line recognizer") +@"/usr/local/yacco2/compiler/grammars/yacco2_T_includes.T" + +/@ +@** Rules.\fbreak +@/ +rules{ +Rtest_use_cnt AD AB(){ + -> Ra Rxx Ra Rxxx eog +} +Rxx AD AB() +{ + -> x Ra x Ra b +} +Rxxx AD AB() +{ + -> x Ra x Ra x Ra +} +Ra AD AB() +{ + -> a + -> Ra a +} +}// end of rules |