summaryrefslogtreecommitdiff
path: root/web/yacco2/qa/TS_la2a.lex
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /web/yacco2/qa/TS_la2a.lex
Initial commit
Diffstat (limited to 'web/yacco2/qa/TS_la2a.lex')
-rw-r--r--web/yacco2/qa/TS_la2a.lex35
1 files changed, 35 insertions, 0 deletions
diff --git a/web/yacco2/qa/TS_la2a.lex b/web/yacco2/qa/TS_la2a.lex
new file mode 100644
index 0000000000..d4180c5dd4
--- /dev/null
+++ b/web/yacco2/qa/TS_la2a.lex
@@ -0,0 +1,35 @@
+/*
+$echo FILE: TS_la2a.lex
+$echo Purpose: test la expr producing an empty set
+$echo LA expr: a + b - a - b
+$echo Error --- all terms specifically added and then removed
+*/
+fsm
+(fsm-id "TS_la2a.lex",fsm-filename TS_la2a,fsm-namespace NS_TS_la2a
+,fsm-class CTS_la2
+,fsm-version "1.0" ,fsm-date "17 Juin 2003",fsm-debug "true"
+,fsm-comments "end-of-line recognizer")
+parallel-parser
+(
+ parallel-thread-function
+ TH_TS_la2a
+ ***
+ parallel-la-boundary
+ a + b - a - b
+ ***
+)
+@"/usr/local/yacco2/compiler/grammars/yacco2_T_includes.T"
+
+rules{
+Reol AD AB(){
+ -> Rdelimiters
+}
+
+
+Rdelimiters AD AB()
+{
+ -> "x0a"
+ -> "x0d" |.|
+ -> "x0d" "x0a"
+}
+}// end of rules