Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Aleph::Compiler_Lexer_Options Struct Reference

Configuration options for lexer behavior. More...

#include <Compiler_Lexer.H>

Public Attributes

bool keep_comments = false
 If true, comments are returned as tokens.
 
bool allow_block_comments = true
 If false, /* is treated as / followed by *.
 

Detailed Description

Configuration options for lexer behavior.

Allows adjusting which parts of the source code are ignored and which comment rules apply.

Note
Thread-safety: Thread-safe (POD).
Complexity: O(1).

Definition at line 75 of file Compiler_Lexer.H.

Member Data Documentation

◆ allow_block_comments

bool Aleph::Compiler_Lexer_Options::allow_block_comments = true

If false, /* is treated as / followed by *.

Definition at line 78 of file Compiler_Lexer.H.

Referenced by Aleph::Compiler_Lexer::lex_token(), and TEST().

◆ keep_comments

bool Aleph::Compiler_Lexer_Options::keep_comments = false

If true, comments are returned as tokens.

Definition at line 77 of file Compiler_Lexer.H.

Referenced by Aleph::Compiler_Lexer::lex_token(), and TEST().


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