cppannotations/annotations/yo/concrete/unrestricted/semantic/semantic1.cc
Frank B. Brokken 777b182edd Moved all files but 'excluded', 'sf', and 'sourcetar' to ./annotations
This allowed me to standardize the sourcetar and sf/* scripts: the base
    directory (containing ./git) is now empty, except for maintenance scripts,
    while the source files and build scripts of the annotations are stored in
    a subdirectory of their own.
2013-05-29 20:44:08 +02:00

14 lines
267 B
C++

#include "semantic.ih"
Semantic::Semantic(Type type, char const *txt)
{
d_int.first = static_cast<int>(type);
if (type == IDENTIFIER)
new (&d_str.second) string(txt);
else
{
istringstream in(txt);
in >> d_int.second;
}
}