reglibcpp  1.0.0
(Naïve) C++ implementation of models for regular languages
Public Member Functions | Public Attributes | List of all members
reg::expression::literals Struct Reference

Token literals as used in Introduction to Automata Theory, Languages, and Computation by Hopcroft, Motwani and Ullman. More...

#include <expression.h>

Public Member Functions

 literals (char32_t plus=U'+', char32_t empty=U '∅', char32_t epsilon=U 'ε', char32_t star=U' *', char32_t rPar=U')', char32_t lPar=U'(')
 

Public Attributes

char32_t const L
 The left parenthesis. More...
 
char32_t const R
 The right parenthesis. More...
 
char32_t const S
 The Kleene star. More...
 
char32_t const P
 The alternation symbol. More...
 
char32_t const EPSILON
 Neutral element of concatenation, a.k.a. empty string. More...
 
char32_t const EMPTY
 Neutral element of alternation and annihilating element of concatenation, a.k.a. empty set. One may supply one's own literals for operators. More...
 

Detailed Description

Token literals as used in Introduction to Automata Theory, Languages, and Computation by Hopcroft, Motwani and Ullman.

Definition at line 52 of file expression.h.

Constructor & Destructor Documentation

◆ literals()

reg::expression::literals::literals ( char32_t  plus = U'+',
char32_t  empty = U'∅',
char32_t  epsilon = U'ε',
char32_t  star = U'*',
char32_t  rPar = U')',
char32_t  lPar = U'(' 
)
inline
Parameters
plusliteral for alternation symbol
emptyliteral for the empty set
epsilonliteral for the empty string
starliteral for the kleene star
rParliteral for the right parenthesis
lParliteral for the left parenthesis

Definition at line 69 of file expression.h.

71  : L(lPar), R(rPar), S(star), P(plus), EPSILON(epsilon), EMPTY(empty){}
char32_t const S
The Kleene star.
Definition: expression.h:53
char32_t const EMPTY
Neutral element of alternation and annihilating element of concatenation, a.k.a. empty set...
Definition: expression.h:53
char32_t const L
The left parenthesis.
Definition: expression.h:53
char32_t const P
The alternation symbol.
Definition: expression.h:53
char32_t const EPSILON
Neutral element of concatenation, a.k.a. empty string.
Definition: expression.h:53
char32_t const R
The right parenthesis.
Definition: expression.h:53

Member Data Documentation

◆ EMPTY

char32_t const reg::expression::literals::EMPTY

Neutral element of alternation and annihilating element of concatenation, a.k.a. empty set. One may supply one's own literals for operators.

Definition at line 53 of file expression.h.

◆ EPSILON

char32_t const reg::expression::literals::EPSILON

Neutral element of concatenation, a.k.a. empty string.

Definition at line 53 of file expression.h.

◆ L

char32_t const reg::expression::literals::L

The left parenthesis.

Definition at line 53 of file expression.h.

◆ P

char32_t const reg::expression::literals::P

The alternation symbol.

Definition at line 53 of file expression.h.

◆ R

char32_t const reg::expression::literals::R

The right parenthesis.

Definition at line 53 of file expression.h.

◆ S

char32_t const reg::expression::literals::S

The Kleene star.

Definition at line 53 of file expression.h.


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