Variable: srecode-template-wy--parse-table
srecode-template-wy--parse-table is a variable defined in
srt-wy.el.gz.
Value
Large value
[[((default . error)
(SET . 1)
(SHOW . 2)
(CONTEXT . 3)
(TEMPLATE . 4)
(PROMPT . 5)
(newline . 6))
((default . error)
(symbol . 11))
((default . error)
(symbol . 12))
((default . error)
(symbol . 13))
((default . error)
(SET . 14)
(MACRO . 15)
(CONTEXT . 16)
(TEMPLATE . 17)
(PROMPT . 18)
(DEFAULT . 19)
(DEFAULTMACRO . 20)
(READ . 21)
(symbol . 22))
((default . error)
(symbol . 24))
((default . template_file:0))
((default . template_file:1))
((default . template_file:2))
((default . template_file:3))
((default . template_file:4))
((default . error)
(MACRO . 25)
(string . 26)
(number . 27))
((default . error)
(newline . 30))
((default . error)
(newline . 31))
((default . templatename:8))
((default . templatename:5))
((default . templatename:2))
((default . templatename:3))
((default . templatename:1))
((default . templatename:4))
((default . templatename:6))
((default . templatename:7))
((default . templatename:0))
((default . opt-dynamic-arguments:1)
(property . 32))
((default . error)
(string . 34))
((default . error)
(string . 35))
((default . insertable-string:0))
((default . error)
(newline . 36))
((default . error)
(MACRO . 25)
(newline . 37)
(string . 26))
((default . insertable-string-list:0))
((default . variable:2))
((default . context:0))
((default . opt-dynamic-arguments:1)
(property . 32))
((default . error)
(newline . 40))
((default . opt-default-fcn:3)
(DEFAULT . 41)
(DEFAULTMACRO . 42))
((default . insertable-string:1))
((default . variable:1))
((default . variable:0))
((default . insertable-string-list:1))
((default . opt-dynamic-arguments:0))
((default . opt-string:1)
(string . 44))
((default . error)
(symbol . 46)
(string . 47))
((default . error)
(string . 48))
((default . opt-read-fcn:1)
(READ . 49))
((default . error)
(newline . 51))
((default . section-dictionary-list:0))
((default . opt-default-fcn:0))
((default . opt-default-fcn:1))
((default . opt-default-fcn:2))
((default . error)
(symbol . 53))
((default . error)
(newline . 54))
((default . opt-string:0))
((default . error)
(SECTIONDICTIONARY . 55)
(SECTION . 56)
(TEMPLATE_BLOCK . 57))
((default . opt-read-fcn:0))
((default . prompt:0))
((default . error)
(string . 60))
((default . error)
(string . 61))
((default . error)
(newline . 62))
((default . section-dictionary-list:1))
((default . section-dictionary-list:2))
((default . error)
(newline . 63))
((default . error)
(newline . 64))
((default . opt-bind:1)
(BIND . 65))
((default . flat-dictionary-entry-list:0))
((default . dictionary-entry-list:0))
((default . error)
(string . 69))
((default . template:0))
((default . flat-section-dictionary:0)
(SET . 1)
(SHOW . 2))
((default . error)
(SET . 1)
(SHOW . 2)
(SECTION . 56)
(END . 72))
((default . error)
(newline . 76))
((default . flat-dictionary-entry:0))
((default . flat-dictionary-entry-list:1))
((default . error)
(newline . 77))
((default . dictionary-entry:0))
((default . dictionary-entry:1))
((default . dictionary-entry-list:1))
((default . opt-bind:0))
((default . section-dictionary:0))
((default . error)
($EOI . 79))
((default . error)
($EOI . 80))
((default . accept))]
[((template . 10)
(variable . 9)
(prompt . 8)
(context . 7)
(template_file . 78))
nil nil nil
((templatename . 23))
nil nil nil nil nil nil
((insertable-string . 29)
(insertable-string-list . 28))
nil nil nil nil nil nil nil nil nil nil nil
((opt-dynamic-arguments . 33))
nil nil nil nil
((insertable-string . 38))
nil nil nil
((opt-dynamic-arguments . 39))
nil
((opt-default-fcn . 43))
nil nil nil nil nil
((opt-string . 45))
nil nil
((opt-read-fcn . 50))
nil
((section-dictionary-list . 52))
nil nil nil nil nil nil
((section-dictionary . 59)
(flat-section-dictionary . 58))
nil nil nil nil nil nil nil nil nil
((opt-bind . 66))
((flat-dictionary-entry-list . 67))
((dictionary-entry-list . 68))
nil nil
((flat-dictionary-entry . 71)
(variable . 70))
((dictionary-entry . 75)
(section-dictionary . 74)
(variable . 73))
nil nil nil nil nil nil nil nil nil nil nil nil]
nil
[dictionary-entry:0 flat-dictionary-entry:0 flat-dictionary-entry-list:0 flat-dictionary-entry-list:1 opt-default-fcn:1 prompt:0 section-dictionary:0 template:0 variable:1 dictionary-entry:1 dictionary-entry-list:0 dictionary-entry-list:1 opt-bind:0]]
Documentation
Parser table.
Source Code
;; Defined in /usr/src/emacs/lisp/cedet/srecode/srt-wy.el.gz
(defconst srecode-template-wy--parse-table
(wisent-compiled-grammar
((SET SHOW MACRO CONTEXT TEMPLATE SECTIONDICTIONARY SECTION END PROMPT DEFAULT DEFAULTMACRO READ BIND newline TEMPLATE_BLOCK property symbol string number)
nil
(template_file
((newline)
nil)
((context))
((prompt))
((variable))
((template)))
(context
((CONTEXT symbol newline)
(wisent-raw-tag
(semantic-tag $2 'context))))
(prompt
((PROMPT symbol string opt-default-fcn opt-read-fcn newline)
(wisent-raw-tag
(semantic-tag $2 'prompt :text
(read $3)
:default $4 :read $5))))
(opt-default-fcn
((DEFAULT symbol)
(progn
(read $2)))
((DEFAULT string)
(progn
(read $2)))
((DEFAULTMACRO string)
(progn
(cons 'macro
(read $2))))
(nil nil))
(opt-read-fcn
((READ symbol)
(progn
(read $2)))
(nil nil))
(variable
((SET symbol insertable-string-list newline)
(wisent-raw-tag
(semantic-tag-new-variable $2 nil $3)))
((SET symbol number newline)
(wisent-raw-tag
(semantic-tag-new-variable $2 nil
(list $3))))
((SHOW symbol newline)
(wisent-raw-tag
(semantic-tag-new-variable $2 nil t))))
(insertable-string-list
((insertable-string)
(list $1))
((insertable-string-list insertable-string)
(append $1
(list $2))))
(insertable-string
((string)
(read $1))
((MACRO string)
(cons 'macro
(read $2))))
(template
((TEMPLATE templatename opt-dynamic-arguments newline opt-string section-dictionary-list TEMPLATE_BLOCK newline opt-bind)
(wisent-raw-tag
(semantic-tag-new-function $2 nil $3 :documentation $5 :code $7 :dictionaries $6 :binding $9))))
(templatename
((symbol))
((PROMPT))
((CONTEXT))
((TEMPLATE))
((DEFAULT))
((MACRO))
((DEFAULTMACRO))
((READ))
((SET)))
(opt-dynamic-arguments
((property opt-dynamic-arguments)
(cons $1 $2))
(nil nil))
(opt-string
((string newline)
(read $1))
(nil nil))
(section-dictionary-list
(nil nil)
((section-dictionary-list flat-section-dictionary)
(append $1
(list $2)))
((section-dictionary-list section-dictionary)
(append $1
(list $2))))
(flat-section-dictionary
((SECTIONDICTIONARY string newline flat-dictionary-entry-list)
(cons
(read $2)
$4)))
(flat-dictionary-entry-list
(nil nil)
((flat-dictionary-entry-list flat-dictionary-entry)
(append $1 $2)))
(flat-dictionary-entry
((variable)
(wisent-cook-tag $1)))
(section-dictionary
((SECTION string newline dictionary-entry-list END newline)
(cons
(read $2)
$4)))
(dictionary-entry-list
(nil nil)
((dictionary-entry-list dictionary-entry)
(append $1 $2)))
(dictionary-entry
((variable)
(wisent-cook-tag $1))
((section-dictionary)
(list $1)))
(opt-bind
((BIND string newline)
(read $2))
(nil nil)))
(template_file))
"Parser table.")