MuseScore  3.4
Music composition and notation
Public Member Functions | Private Member Functions | Private Attributes | List of all members
Bww::Lexer Class Reference

The bww lexer. More...

#include <lexer.h>

Public Member Functions

 Lexer (QIODevice *inDevice)
 Lexer constructor, inDevice is the input. More...
 
void getSym ()
 Get the next symbol, update type and value. More...
 
Symbol symType () const
 Return the current symbols type. More...
 
QString symValue () const
 Return the current symbols value. More...
 
int symLineNumber () const
 

Private Member Functions

void categorizeWord (QString word)
 Determine the symbol type for word. More...
 

Private Attributes

QTextStream in
 Input stream. More...
 
QString line
 The current line. More...
 
int lineNumber
 The current line number (zero-based) More...
 
QStringList list
 Unprocessed words. More...
 
Symbol type
 Last symbol type. More...
 
QString value
 Last symbol value. More...
 
QMap< QString, QString > graceMap
 Map bww embellishments to separate grace notes. More...
 

Detailed Description

The bww lexer.

Constructor & Destructor Documentation

◆ Lexer()

Bww::Lexer::Lexer ( QIODevice *  inDevice)

Lexer constructor, inDevice is the input.

Member Function Documentation

◆ categorizeWord()

void Bww::Lexer::categorizeWord ( QString  word)
private

Determine the symbol type for word.

◆ getSym()

void Bww::Lexer::getSym ( )

Get the next symbol, update type and value.

◆ symLineNumber()

int Bww::Lexer::symLineNumber ( ) const
inline

◆ symType()

Symbol Bww::Lexer::symType ( ) const

Return the current symbols type.

◆ symValue()

QString Bww::Lexer::symValue ( ) const

Return the current symbols value.

Member Data Documentation

◆ graceMap

QMap<QString, QString> Bww::Lexer::graceMap
private

Map bww embellishments to separate grace notes.

◆ in

QTextStream Bww::Lexer::in
private

Input stream.

◆ line

QString Bww::Lexer::line
private

The current line.

◆ lineNumber

int Bww::Lexer::lineNumber
private

The current line number (zero-based)

◆ list

QStringList Bww::Lexer::list
private

Unprocessed words.

◆ type

Symbol Bww::Lexer::type
private

Last symbol type.

◆ value

QString Bww::Lexer::value
private

Last symbol value.


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