absyntax/absyntax.hh
changeset 913 1c74da17cb61
parent 889 5f380b99e95e
child 936 0f7bcc160568
--- a/absyntax/absyntax.hh	Sun Jul 20 03:14:57 2014 +0100
+++ b/absyntax/absyntax.hh	Sun Jul 20 16:45:45 2014 +0100
@@ -107,9 +107,9 @@
     virtual const char *absyntax_cname(void) {return "symbol_c";};
 
     /*
-     * Line number for the purposes of error checking.
-     * Annotated (inserted) by stage1_2
-     */
+     * Annotations produced during stage 1_2
+     */    
+    /* Line number for the purposes of error checking.  */
     int first_line;
     int first_column;
     const char *first_file;  /* filename referenced by first line/column */
@@ -171,6 +171,16 @@
      */
     typedef std::multimap<std::string, symbol_c *, nocasecmp_c> enumvalue_symtable_t;
     
+    /*
+     * Annotations produced during stage 4
+     */
+    /* Since we support several distinct stage_4 implementations, having explicit entries for each
+     * possible use would quickly get out of hand.
+     * We therefore simply add a map, that each stage 4 may use for all its needs.
+     */
+    typedef std::map<std::string, symbol_c *> anotations_map_t;
+    anotations_map_t anotations_map;
+    
 
   public:
     /* default constructor */