Mercurial > hg > octave-lyh
changeset 16150:891a2a4df71f
* lex.ll: Use C-style comments in preamble.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 27 Feb 2013 18:52:46 -0500 |
parents | 49dfba4fd3c5 |
children | e309eb7940be |
files | libinterp/parse-tree/lex.ll |
diffstat | 1 files changed, 10 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/parse-tree/lex.ll +++ b/libinterp/parse-tree/lex.ll @@ -20,14 +20,16 @@ */ -// We are using the pure parser interface and the reentrant lexer -// interface but the Octave parser and lexer are NOT properly -// reentrant because both still use many global variables. It should be -// safe to create a parser object and call it while anotehr parser -// object is active (to parse a callback function while the main -// interactive parser is waiting for input, for example) if you take -// care to properly save and restore (typically with an unwind_protect -// object) relevant global values before and after the nested call. +/* +We are using the pure parser interface and the reentrant lexer +interface but the Octave parser and lexer are NOT properly +reentrant because both still use many global variables. It should be +safe to create a parser object and call it while anotehr parser +object is active (to parse a callback function while the main +interactive parser is waiting for input, for example) if you take +care to properly save and restore (typically with an unwind_protect +object) relevant global values before and after the nested call. +*/ %option prefix = "octave_" %option noyywrap