JUCE  v6.1.6 (6.0.8-1114)
JUCE API
Looking for a senior C++ dev?
I'm looking for work. Hire me!
juce::CodeTokeniser Class Referenceabstract

A base class for tokenising code so that the syntax can be displayed in a code editor. More...

#include <juce_CodeTokeniser.h>

Inheritance diagram for juce::CodeTokeniser:

Public Member Functions

 CodeTokeniser ()=default
 
virtual ~CodeTokeniser ()=default
 
virtual CodeEditorComponent::ColourScheme getDefaultColourScheme ()=0
 Returns a suggested syntax highlighting colour scheme. More...
 
virtual int readNextToken (CodeDocument::Iterator &source)=0
 Reads the next token from the source and returns its token type. More...
 

Detailed Description

A base class for tokenising code so that the syntax can be displayed in a code editor.

See also
CodeDocument, CodeEditorComponent

@tags{GUI}

Constructor & Destructor Documentation

◆ CodeTokeniser()

juce::CodeTokeniser::CodeTokeniser ( )
default

◆ ~CodeTokeniser()

virtual juce::CodeTokeniser::~CodeTokeniser ( )
virtualdefault

Member Function Documentation

◆ getDefaultColourScheme()

virtual CodeEditorComponent::ColourScheme juce::CodeTokeniser::getDefaultColourScheme ( )
pure virtual

Returns a suggested syntax highlighting colour scheme.

Implemented in juce::CPlusPlusCodeTokeniser, juce::LuaTokeniser, and juce::XmlTokeniser.

◆ readNextToken()

virtual int juce::CodeTokeniser::readNextToken ( CodeDocument::Iterator source)
pure virtual

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.

Implemented in juce::CPlusPlusCodeTokeniser, juce::LuaTokeniser, and juce::XmlTokeniser.


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