Mercurial > hg > Applications > Grep
comparison c/regexParser/main.cc @ 59:af189c727733
fix
author | Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 14 Jul 2015 14:08:36 +0900 |
parents | 4053c3e0fa7f |
children | 8616a045a7f4 |
comparison
equal
deleted
inserted
replaced
58:4053c3e0fa7f | 59:af189c727733 |
---|---|
83 } | 83 } |
84 | 84 |
85 | 85 |
86 // <or> ::= <regex>'|'<regex> | 86 // <or> ::= <regex>'|'<regex> |
87 NodePtr _or() { | 87 NodePtr _or() { |
88 ptr++; | |
88 NodePtr n = createNode('|',regexHeadNode,regex()); | 89 NodePtr n = createNode('|',regexHeadNode,regex()); |
89 return n; | 90 return n; |
90 } | 91 } |
91 | 92 |
92 // <*> ::= <regex>'*' | 93 // <*> ::= <regex>'*' |