|
A11 (C++ runtime)
Native C++ implementation of the A11 streaming action runtime
|
What to keep while lexing. More...
#include <cpp/a11/flow/lexer.h>
Public Attributes | |
| bool | keep_comments = true |
| Whether comments are tokens. | |
What to keep while lexing.
| bool a11::flow::LexOptions::keep_comments = true |
Whether comments are tokens.
On for a highlighter and a formatter, off for a parser, which has no use for them.
With them off the stream is exactly what a11.flow.lexer produces, line breaks included – which means a line holding only a comment ends nothing, because with the comment gone there was no statement on it.