summaryrefslogtreecommitdiff
path: root/src/parser/bounded_token_buffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser/bounded_token_buffer.h')
-rw-r--r--src/parser/bounded_token_buffer.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/parser/bounded_token_buffer.h b/src/parser/bounded_token_buffer.h
index fad5edc1e..a29462687 100644
--- a/src/parser/bounded_token_buffer.h
+++ b/src/parser/bounded_token_buffer.h
@@ -18,6 +18,11 @@
** an exception. Only use this factory if you *know* that the grammar
** has bounded lookahead (e.g., if you've set the k parameter in the
** parser.
+ **
+ ** NOTE: ANTLR3 puts "hidden" tokens into this buffer too, so
+ ** pathological inputs can exceed the k token lookahead, even if
+ ** your grammar really is LL(k). Be sure that irrelevant tokens
+ ** are SKIP()'d and not "hidden".
**/
#ifndef __CVC4__PARSER__BOUNDED_TOKEN_BUFFER_H
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback