aboutsummaryrefslogtreecommitdiffstats
path: root/backend/CMparser.mly
diff options
context:
space:
mode:
authorXavier Leroy <xavier.leroy@inria.fr>2014-11-03 10:11:23 +0100
committerXavier Leroy <xavier.leroy@inria.fr>2014-11-24 17:38:06 +0100
commit1e29e518e62ad88e9c2e2b180beb07434a07cdd7 (patch)
tree515e91150bc6db4910daa97ba99611192b01fe2f /backend/CMparser.mly
parent794ae6fb64e89175b40288369011f4fc51e0ac53 (diff)
downloadcompcert-1e29e518e62ad88e9c2e2b180beb07434a07cdd7.tar.gz
compcert-1e29e518e62ad88e9c2e2b180beb07434a07cdd7.zip
Record public global definitions via field "prog_public" in AST.program.
For the moment, this field is ignored.
Diffstat (limited to 'backend/CMparser.mly')
-rw-r--r--backend/CMparser.mly2
1 files changed, 2 insertions, 0 deletions
diff --git a/backend/CMparser.mly b/backend/CMparser.mly
index ad92a12e..10cf8bf4 100644
--- a/backend/CMparser.mly
+++ b/backend/CMparser.mly
@@ -400,10 +400,12 @@ let mkmatch expr cases =
prog:
EQUAL STRINGLIT global_declarations EOF
{ { prog_defs = List.rev $3;
+ prog_public = List.map fst $3; (* FIXME *)
prog_main = intern_string $2; } }
| global_declarations EOF
{ { prog_defs = List.rev $1;
+ prog_public = List.map fst $1; (* FIXME *)
prog_main = intern_string "main" } }
;