diff -r 252a69d6ecae -r 1c74da17cb61 absyntax/absyntax.hh --- 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 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 anotations_map_t; + anotations_map_t anotations_map; + public: /* default constructor */