summaryrefslogtreecommitdiff
path: root/web/yacco2/diagrams/fsm_failed.txt
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/diagrams/fsm_failed.txt
Initial commit
Diffstat (limited to 'web/yacco2/diagrams/fsm_failed.txt')
-rw-r--r--web/yacco2/diagrams/fsm_failed.txt39
1 files changed, 39 insertions, 0 deletions
diff --git a/web/yacco2/diagrams/fsm_failed.txt b/web/yacco2/diagrams/fsm_failed.txt
new file mode 100644
index 0000000000..cdf6efaedf
--- /dev/null
+++ b/web/yacco2/diagrams/fsm_failed.txt
@@ -0,0 +1,39 @@
+fsm
+(fsm-id "reset_rewrite_opt.lex",fsm-filename reset_rewrite_opt
+,fsm-namespace NS_reset_rewrite_opt
+,fsm-class Creset_rewrite_opt {
+ user-prefix-declaration
+#include "integer_no.h"
+ ***
+/@
+Trap the failed option and return a bad option.
+This covers errors like the premature prefix -e where it should
+be -err. i could have been less specific to trap
+non first set options (-z) by defaulting to this
+facility but i'm teaching myself...
+As this thread is executed according to its first set ``-'',
+any failed attempt is a bad option.
+Please note the use of the |RSVP_FSM| macro.
+Its context is different than the normal Rule's
+use of |RSVP| macro.
+@/
+ failed
+ CAbs_lr1_sym* s = new LR1_err_bad_rsx_rms_opt;
+ s->set_rc(*parser()->current_token(),*parser()
+ ,"reset_rewrite_opt.lex",__LINE__);
+ RSVP_FSM(s);
+ return true;
+ ***
+}
+,fsm-version "1.1",fsm-date "18 Oct. 2003",fsm-debug "true"
+,fsm-comments "individual rsx/rms options")
+parallel-parser
+(
+ parallel-thread-function
+ TH_reset_rewrite_opt
+ ***
+ parallel-la-boundary
+ "/" + "'"
+ ***
+)
+