[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

7. Compiling a language file with the bovinator

From a program you can use the function semantic-bovinate-toplevel. This function takes one optional parameter specifying if the cache should be refreshed. By default, the cached results of the last parse are always used. Specifying that the cache should be checked will cause it to be flushed if it is out of date.

Another function you can use is semantic-bovinate-nonterminal. This command takes a token stream returned by the function semantic-flex followed by a DEPTH (as above). This takes an additional optional argument of NONTERMINAL which is the nonterminal in your table it is to start parsing with.

Command: bovinate &optional clear
Bovinate the current buffer. Show output in a temp buffer. Optional argument CLEAR will clear the cache before bovinating.

Command: semantic-clear-toplevel-cache
Clear the toplevel bovine cache for the current buffer. Clearing the cache will force a complete reparse next time a token stream is requested.

Function: semantic-bovinate-toplevel &optional checkcache
Bovinate the entire current buffer. If the optional argument CHECKCACHE is non-nil, then flush the cache iff there has been a size change.

[ << ] [ >> ]           [Top] [Contents] [Index] [ ? ]

This document was generated by XEmacs Webmaster on October, 2 2007 using texi2html