Add source file headers to CTF lexer/parser
[babeltrace.git] / formats / ctf / metadata / ctf-parser-test.c
1 /*
2 * ctf-parser-test.c
3 *
4 * Common Trace Format Parser Test
5 *
6 * Copyright 2010 - Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
7 *
8 * Permission is hereby granted, free of charge, to any person obtaining a copy
9 * of this software and associated documentation files (the "Software"), to deal
10 * in the Software without restriction, including without limitation the rights
11 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12 * copies of the Software, and to permit persons to whom the Software is
13 * furnished to do so, subject to the following conditions:
14 *
15 * The above copyright notice and this permission notice shall be included in
16 * all copies or substantial portions of the Software.
17 */
18
19 #include <stdlib.h>
20 #include <stdio.h>
21 #include <glib.h>
22 #include "ctf-scanner.h"
23 #include "ctf-parser.h"
24 #include "ctf-ast.h"
25
26 extern int yydebug;
27
28 int main(int argc, char **argv)
29 {
30 struct ctf_scanner *scanner;
31
32 yydebug = 1;
33 scanner = ctf_scanner_alloc(stdin);
34 if (!scanner) {
35 fprintf(stderr, "Error allocating scanner\n");
36 return -1;
37 }
38 ctf_scanner_append_ast(scanner);
39 ctf_scanner_free(scanner);
40 return 0;
41 }
42
43
This page took 0.030658 seconds and 5 git commands to generate.