summaryrefslogtreecommitdiff
path: root/Userland/Utilities/cpp-parser.cpp
AgeCommit message (Collapse)Author
2021-05-19LibCpp: Generalize ASTNode::dump() to support redirecting its outputItamar
Previously, ASTNode::dump() used outln() for output, which meant it always wrote its output to stdout. After this commit, ASTNode::dump() receives an 'output' argument (which is stdout by default). This enables writing the output to somewhere else. This will be useful for testing the LibCpp Parser with the output of ASTNode::dump.
2021-05-19Utilities: Rename CppParserTest => cpp-parserItamar
This is a utility program that runs the LibCpp parser on a program and dumps out the AST.