Skip to content

Instantly share code, notes, and snippets.

@MLLeKander
Last active August 29, 2015 14:00
Show Gist options
  • Save MLLeKander/cac2d2d179e09beafe48 to your computer and use it in GitHub Desktop.
Save MLLeKander/cac2d2d179e09beafe48 to your computer and use it in GitHub Desktop.
stmt = make_unique<ast::Print>();
if (!SYNTAX_OPTIONAL_ADVANCE_KEYWORD(lex::KW_endl)) {
MUST_PARSE(parse_expr<CK_Regular>(r, lr, f, it,
stmt->as_a<ast::Print>().expr));
}
if (SYNTAX_OPTIONAL_ADVANCE_KEYWORD(lex::KW_endl)) {
stmt->as_a<ast::Print>().endl = true;
}
SYNTAX_ADVANCE(lex::TK_Semicolon);
break;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment