Lexer

Search for usage in LXR

#include <lexer.h>

Public Types

enum  Tokens {
  Tok_none , Tok_exec = 256 , Tok_pass , Tok_delCmd ,
  Tok_ping , Tok_str , Tok_num , Tok_stop ,
  Tok_set , Tok_get , Tok_delVar , Tok_delGroup ,
  Tok_host , Tok_prio , Tok_sched , Tok_getKeys ,
  Tok_chkGroup , Tok_delSpecialKey , Tok_exit
}
 

Public Member Functions

 Lexer (const Lexer &)=delete
 
 Lexer (const QByteArray &input)
 
int lex ()
 
QByteArraylval ()
 
Lexeroperator= (const Lexer &)=delete
 

Detailed Description

This is a lexer for the kdesud protocol.

Definition at line 16 of file lexer.h.

Member Enumeration Documentation

◆ Tokens

enum Lexer::Tokens

Definition at line 31 of file lexer.h.

Constructor & Destructor Documentation

◆ Lexer()

Lexer::Lexer ( const QByteArray & input)

Definition at line 14 of file lexer.cpp.

◆ ~Lexer()

Lexer::~Lexer ( )

Definition at line 20 of file lexer.cpp.

Member Function Documentation

◆ lex()

int Lexer::lex ( )

Read next token.

Definition at line 37 of file lexer.cpp.

◆ lval()

QByteArray & Lexer::lval ( )

Return the token's value.

Definition at line 27 of file lexer.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Jul 19 2024 11:54:52 by doxygen 1.11.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.