Function: semantic-parse-stream
semantic-parse-stream is a byte-compiled function defined in
semantic.el.gz.
Signature
(semantic-parse-stream STREAM NONTERMINAL)
Documentation
Parse STREAM, starting at the first NONTERMINAL rule.
For bovine and wisent based parsers, STREAM is from the output of
semantic-lex, and NONTERMINAL is a rule in the appropriate language
specific rules file.
The default parser table used for bovine or wisent based parsers is
semantic--parse-table.
Must return a list: (STREAM TAGS) where STREAM is the unused elements from STREAM, and TAGS is the list of semantic tags found; usually only one tag is returned with the exception of compound statements.
Source Code
;; Defined in /usr/src/emacs/lisp/cedet/semantic.el.gz
;;; Functions of the parser plug-in API
;;
;; Overload these functions to create new types of parsers.
;;
(define-overloadable-function semantic-parse-stream (stream nonterminal)
"Parse STREAM, starting at the first NONTERMINAL rule.
For bovine and wisent based parsers, STREAM is from the output of
`semantic-lex', and NONTERMINAL is a rule in the appropriate language
specific rules file.
The default parser table used for bovine or wisent based parsers is
`semantic--parse-table'.
Must return a list: (STREAM TAGS) where STREAM is the unused elements
from STREAM, and TAGS is the list of semantic tags found; usually only
one tag is returned with the exception of compound statements.")