blob: 5e19dbcd4a3e1759b4c5a487bf04ea137a02ecad [file] [log] [blame]
Andreas Huberc9410c72016-07-28 12:18:40 -07001#include "AST.h"
2
3#include "Formatter.h"
4
5#include <stdio.h>
6
7using namespace android;
8
9int main(int argc, const char *const argv[]) {
Andreas Hubereb1081f2016-07-28 13:13:24 -070010 for (int i = 1; i < argc; ++i) {
11 AST *ast = AST::Parse(argv[i]);
Andreas Huberc9410c72016-07-28 12:18:40 -070012
Andreas Hubereb1081f2016-07-28 13:13:24 -070013 Formatter out;
Andreas Huberc9410c72016-07-28 12:18:40 -070014
Andreas Hubereb1081f2016-07-28 13:13:24 -070015 printf("========================================\n");
Andreas Huberc9410c72016-07-28 12:18:40 -070016
Andreas Hubereb1081f2016-07-28 13:13:24 -070017 ast->dump(out);
Andreas Huberc9410c72016-07-28 12:18:40 -070018
Andreas Hubereb1081f2016-07-28 13:13:24 -070019 delete ast;
20 ast = NULL;
21 }
Andreas Huberc9410c72016-07-28 12:18:40 -070022
23 return 0;
24}