A11 (C++ runtime)
Native C++ implementation of the A11 streaming action runtime
Loading...
Searching...
No Matches
a11::flow::LexOptions Struct Reference

What to keep while lexing. More...

#include <cpp/a11/flow/lexer.h>

Public Attributes

bool keep_comments = true
 Whether comments are tokens.
 

Detailed Description

What to keep while lexing.

Member Data Documentation

◆ keep_comments

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.


The documentation for this struct was generated from the following file: