Function: wisent-python-wy--install-parser
wisent-python-wy--install-parser is a byte-compiled function defined
in python-wy.el.gz.
Signature
(wisent-python-wy--install-parser)
Documentation
Setup the Semantic Parser.
Source Code
;; Defined in /usr/src/emacs/lisp/cedet/semantic/wisent/python-wy.el.gz
(defun wisent-python-wy--install-parser ()
"Setup the Semantic Parser."
(semantic-install-function-overrides
'((semantic-parse-stream . wisent-parse-stream)))
(setq semantic-parser-name "LALR"
semantic--parse-table wisent-python-wy--parse-table
semantic-debug-parser-source "python.wy"
semantic-flex-keywords-obarray wisent-python-wy--keyword-table
semantic-lex-types-obarray wisent-python-wy--token-table)
;; Collect unmatched syntax lexical tokens
(add-hook 'wisent-discarding-token-functions
#'wisent-collect-unmatched-syntax nil t))