diff options
author | Yann Herklotz <ymherklotz@gmail.com> | 2017-02-17 10:55:21 +0000 |
---|---|---|
committer | Yann Herklotz <ymherklotz@gmail.com> | 2017-02-17 10:55:21 +0000 |
commit | a60337264c2551fffc2b5aeea12f40a06b7cb0e9 (patch) | |
tree | f9898cfcfed008a001bb03e3f8919f889107e469 /c_parser/test | |
parent | 392805699c8d411400901b8e3d7298f0f9198bb5 (diff) | |
download | Compiler-a60337264c2551fffc2b5aeea12f40a06b7cb0e9.tar.gz Compiler-a60337264c2551fffc2b5aeea12f40a06b7cb0e9.zip |
Working variables finally by adding mutable
Diffstat (limited to 'c_parser/test')
-rw-r--r-- | c_parser/test/output.xml | 13 | ||||
-rw-r--r-- | c_parser/test/test_parser.c | 3 |
2 files changed, 15 insertions, 1 deletions
diff --git a/c_parser/test/output.xml b/c_parser/test/output.xml new file mode 100644 index 0000000..852ed49 --- /dev/null +++ b/c_parser/test/output.xml @@ -0,0 +1,13 @@ +<?xml version="1.0"?> +<Program> +<Variable id="a" /> +<Variable id="b" /> +<Variable id="c" /> +<Variable id="yann" /> +<Variable id="is" /> +<Variable id="the" /> +<Variable id="best" /> +<Variable id="d" /> +<Variable id="hello" /> +<Variable id="asd" /> +</Program> diff --git a/c_parser/test/test_parser.c b/c_parser/test/test_parser.c index a685aff..557fd56 100644 --- a/c_parser/test/test_parser.c +++ b/c_parser/test/test_parser.c @@ -2,4 +2,5 @@ int a; int b; int c; int yann, is, the, best; -int hello = 0; +int d = 0; +int hello = 123, asd = 123; |