[fine] starting to work on methods
This commit is contained in:
parent
fde5579479
commit
0d48bfb113
4 changed files with 22 additions and 8 deletions
|
|
@ -570,6 +570,8 @@ fn class(p: &mut CParser) {
|
|||
while !p.at(TokenKind::RightBrace) && !p.eof() {
|
||||
if p.at(TokenKind::Identifier) {
|
||||
field_decl(p);
|
||||
} else if p.at(TokenKind::Fun) {
|
||||
function(p);
|
||||
} else {
|
||||
p.advance_with_error("expected a field declaration");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue