Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| SHA1 Hash: | 997da00871c0d6bfc4a0d96df197dc49291225f3 |
|---|---|
| Date: | 2008-06-21 10:57:50 |
| User: | stephan |
| Comment: | more tinkering |
Tags And Properties
- branch=trunk inherited from [d45e7467f2]
- sym-trunk inherited from [d45e7467f2]
Changes
[hide diffs]Changes to test.cpp
@@ -32,17 +32,18 @@
typedef r_plus< r_alpha > RAlphaPlus;
typedef rule_list< r_chi<'a'>, r_ch<'b'>, r_chi<'c'> > myr_chars;
typedef r_plus< r_and< myr_chars > > Rule2;
- typedef r_action< OneOf, MyAction > head;
+ typedef r_action< OneOf, a_actions< rule_list<MyAction,a_append> > > head;
std::string instr( "AbCabcdef ghijkl");
COUT << "input == ["<<instr<<"]\n";
- int ignored;
- bool worked = parse<head>( instr, ignored );
+ std::string cstate;
+ bool worked = parse<head>( instr, cstate );
COUT << "worked == " << worked << '\n';
+ COUT << "cstate == ["<<cstate<<"]\n";
}
void do_calc()
{
using namespace Ps;