Mercurial > projects > dang
diff parser/Parser.d @ 102:cd066f3b539a new_gen
Parsing methods in structs - error on semantics though.
author | Anders Johnsen <skabet@gmail.com> |
---|---|
date | Thu, 08 May 2008 10:32:41 +0200 |
parents | 5f258eaf9517 |
children | 7ff4bc2accf2 |
line wrap: on
line diff
--- a/parser/Parser.d Wed May 07 19:58:13 2008 +0200 +++ b/parser/Parser.d Thu May 08 10:32:41 2008 +0200 @@ -210,7 +210,9 @@ while(lexer.peek.isBasicType || lexer.peek.isIdentifier) { - Id var_type = Id(lexer.next); + auto m_decl = parseDecl(); + action.actOnStructMember(decl, m_decl); +/* Id var_type = Id(lexer.next); Id var_iden = Id(require(Tok.Identifier)); Token next = lexer.peek(); if (next.type == Tok.Seperator) @@ -227,7 +229,7 @@ action.actOnStructMember(decl, var_type, var_iden, exp); continue; } - messages.report(UnexpectedTok, next.location).arg(next.getType); + messages.report(UnexpectedTok, next.location).arg(next.getType);*/ } require(Tok.CloseBrace);