summaryrefslogtreecommitdiff
path: root/src/pdacodegen.h
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@colm.net>2020-04-10 11:45:21 +0000
committerAdrian Thurston <thurston@colm.net>2020-04-10 11:45:21 +0000
commit9760b2b3d8477ffb4228ac3db976e2ed3abb8905 (patch)
treec2b19fe75d3a7101539667d300fb21fd5334e150 /src/pdacodegen.h
parent848214fa4af44056315df6bc34f1fcaccf6d09aa (diff)
downloadcolm-9760b2b3d8477ffb4228ac3db976e2ed3abb8905.tar.gz
making exported vars available from C code
Addes an array of exports to runtime data. Also declares each export as an integer. The value of the export can be passed to colm_get_gloal(). They are named colm_export_<export-name>. refs #116.
Diffstat (limited to 'src/pdacodegen.h')
-rw-r--r--src/pdacodegen.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pdacodegen.h b/src/pdacodegen.h
index 759dd6e0..e965af7d 100644
--- a/src/pdacodegen.h
+++ b/src/pdacodegen.h
@@ -83,6 +83,7 @@ struct PdaCodeGen
String litlen() { return PARSER() + "litlen"; }
String literals() { return PARSER() + "literals"; }
String fsmTables() { return PARSER() + "fsmTables"; }
+ String exportInfo() { return PARSER() + "exportInfo"; }
/*
* Graphviz Generation