mirror of
https://gitlab.com/fbb-git/cppannotations
synced 2024-11-18 10:06:54 +01:00
777b182edd
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.
14 lines
267 B
C++
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;
|
|
}
|
|
}
|