#include <juce_CPlusPlusCodeTokeniser.h>
|
enum | TokenType {
tokenType_error = 0,
tokenType_comment,
tokenType_keyword,
tokenType_operator,
tokenType_identifier,
tokenType_integer,
tokenType_float,
tokenType_string,
tokenType_bracket,
tokenType_punctuation,
tokenType_preprocessor
} |
|
A simple lexical analyser for syntax colouring of C++ code.
- See also
- CodeEditorComponent, CodeDocument
◆ TokenType
The token values returned by this tokeniser.
Enumerator |
---|
tokenType_error | |
tokenType_comment | |
tokenType_keyword | |
tokenType_operator | |
tokenType_identifier | |
tokenType_integer | |
tokenType_float | |
tokenType_string | |
tokenType_bracket | |
tokenType_punctuation | |
tokenType_preprocessor | |
◆ CPlusPlusCodeTokeniser()
CPlusPlusCodeTokeniser::CPlusPlusCodeTokeniser |
( |
| ) |
|
◆ ~CPlusPlusCodeTokeniser()
CPlusPlusCodeTokeniser::~CPlusPlusCodeTokeniser |
( |
| ) |
|
◆ getDefaultColourScheme()
Returns a suggested syntax highlighting colour scheme.
Implements CodeTokeniser.
◆ isReservedKeyword()
bool CPlusPlusCodeTokeniser::isReservedKeyword |
( |
const String & |
token | ) |
|
|
staticnoexcept |
This is a handy method for checking whether a string is a c++ reserved keyword.
◆ readNextToken()
Reads the next token from the source and returns its token type.
This must leave the source pointing to the first character in the next token.
Implements CodeTokeniser.
The documentation for this class was generated from the following files: