src
display.cc
Go to the documentation of this file.
1 #include <iostream>
2 
3 #include "src/ir/regexp/regexp.h"
10 
11 namespace re2c
12 {
13 
14 std::ostream & operator << (std::ostream & o, const RegExp & re)
15 {
16  re.display (o);
17  return o;
18 }
19 
20 void AltOp::display (std::ostream & o) const
21 {
22  o << exp1 << "|" << exp2;
23 }
24 
25 void CatOp::display (std::ostream & o) const
26 {
27  o << exp1 << exp2;
28 }
29 
30 void CloseOp::display (std::ostream & o) const
31 {
32  o << exp << "+";
33 }
34 
35 void MatchOp::display (std::ostream & o) const
36 {
37  o << match;
38 }
39 
40 void NullOp::display (std::ostream & o) const
41 {
42  o << "_";
43 }
44 
45 void RuleOp::display (std::ostream & o) const
46 {
47  o << exp << "/" << ctx << ";";
48 }
49 
50 } // end namespace re2c
51 
void display(std::ostream &o) const
Definition: display.cc:40
void display(std::ostream &o) const
Definition: display.cc:25
void display(std::ostream &o) const
Definition: display.cc:30
Range * match
Definition: regexp_match.h:13
void display(std::ostream &o) const
Definition: display.cc:35
RegExp * ctx
Definition: regexp_rule.h:22
std::ostream & operator<<(std::ostream &o, label_t l)
Definition: label.cc:36
void display(std::ostream &o) const
Definition: display.cc:45
virtual void display(std::ostream &) const =0
Definition: bitmap.cc:10
void display(std::ostream &o) const
Definition: display.cc:20