Last change
on this file since 185 was 2, checked in by Rick van der Zwet, 15 years ago |
Initial import of data of old repository ('data') worth keeping (e.g. tracking
means of URL access statistics)
|
File size:
469 bytes
|
Rev | Line | |
---|
[2] | 1 | #ifndef LOOKUP_H
|
---|
| 2 | #define LOOKUP_H
|
---|
| 3 |
|
---|
| 4 | #include "types.h"
|
---|
| 5 | #include "Symbol.h"
|
---|
| 6 | #include <string>
|
---|
| 7 |
|
---|
| 8 | /* Lookup id in the symbol table and return it.
|
---|
| 9 | * If symbol can't be found, a new symbol is created with symbol type
|
---|
| 10 | * default_type and added to the symbol table and returned.
|
---|
| 11 | */
|
---|
| 12 | Symbol *lookup(const std::string& id, SymbolType default_type);
|
---|
| 13 |
|
---|
| 14 | /* Checks if the id already exists and gives an error if it does */
|
---|
| 15 | void check_id(const std::string& id);
|
---|
| 16 |
|
---|
| 17 | #endif /* LOOKUP_H */
|
---|
Note:
See
TracBrowser
for help on using the repository browser.