Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
xcap
xcap-capability-linux
Commits
b7ddc26c
Commit
b7ddc26c
authored
Jul 11, 2014
by
Sarah Spall
Committed by
Vikram Narayanan
Oct 25, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
committing new main file
parent
03407376
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
tools/lcd/idl/lcd_compiler.cpp
tools/lcd/idl/lcd_compiler.cpp
+26
-0
No files found.
tools/lcd/idl/lcd_compiler.cpp
0 → 100644
View file @
b7ddc26c
#include "lcd_ast.h"
#include "lcd_idl.h"
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
int
main
(
int
argc
,
char
**
argv
)
{
if
(
argc
!=
2
)
{
printf
(
"error in number of args
\n
"
);
exit
(
0
);
}
try
{
char
*
file
=
argv
[
1
];
Module
*
tree
=
(
Module
*
)
Parser
::
parse
(
std
::
string
(
file
));
printf
(
"we have a tree
\n
"
);
}
catch
(
const
Parser
::
ParseException
e
)
{
printf
(
"caught an exception
\n
"
);
std
::
cout
<<
e
.
getReason
();
exit
(
0
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment