Moved wesley to header-only

This commit is contained in:
Jonathan Turner
2009-06-10 21:33:22 +00:00
parent 52039d7b45
commit 460146bdb7
11 changed files with 1162 additions and 1091 deletions

View File

@@ -95,11 +95,12 @@ void parse(std::vector<TokenPtr> &tokens, const char *filename) {
block = Ign(Str("{")) >> ~return_statement >> Ign(Str("}"));
return_statement = Ign(Str("return")) >> expression;
*/
/*
Rule rule(TokenType::Equation);
rule = Wrap(Str("break"));
std::cout << "Check: " << rule.impl->new_id << std::endl;
*/
/*
Rule rule = *(expression >> *Ign(Id(TokenType::Semicolon)));
expression = term >> *((Str("+") >> term) | (Str("-") >> term));
@@ -110,9 +111,9 @@ void parse(std::vector<TokenPtr> &tokens, const char *filename) {
value = funcall | Id(TokenType::Identifier) | Id(TokenType::Number) | Id(TokenType::Quoted_String) | Id(TokenType::Single_Quoted_String);
*/
/*
Rule rule = Str("x") << Id(TokenType::Semicolon);
*/
Rule rule = Str("x") >> Id(TokenType::Semicolon);
/*
Rule rule;