#include <libxml/xmlreader.h>
#include <stdexcept>
#include <cstdarg>
#include <cctype>
#include <cassert>
#include <algorithm>
#include <list>
#include <vector>
#include <map>
#include <sstream>
#include "libparser.h"
#include "tags.cc"
Namespaces | |
namespace | UTAP |
Enumerations | |
enum | tag_t { TAG_NTA, TAG_IMPORTS, TAG_DECLARATION, TAG_TEMPLATE, TAG_INSTANTIATION, TAG_SYSTEM, TAG_NAME, TAG_PARAMETER, TAG_LOCATION, TAG_INIT, TAG_TRANSITION, TAG_URGENT, TAG_COMMITTED, TAG_WINNING, TAG_LOSING, TAG_SOURCE, TAG_TARGET, TAG_LABEL, TAG_NAIL } |
Enumeration type for tags. More... | |
Functions | |
static bool | isempty (string str) |
Returns TRUE if string is zero length or contains only white spaces otherwise FALSE. | |
static bool | isAlpha (char c) |
static bool | isIdChr (char c) |
static string | symbol (const char *str) |
Extracts the alpha-numerical symbol used for variable/type identifiers. | |
int32_t | parseXMLFile (const char *filename, ParserBuilder *pb, ErrorHandler *errHandler, bool newxta) |
int32_t | parseXMLBuffer (const char *buffer, ParserBuilder *pb, ErrorHandler *errHandler, bool newxta) |
|
Enumeration type for tags. We use gperf to generate a perfect hash function to map tag strings to one of these tags. |
|
|
|
Returns TRUE if string is zero length or contains only white spaces otherwise FALSE.
|
|
|
|
|
|
|
|
Extracts the alpha-numerical symbol used for variable/type identifiers. Identifier starts with alpha and further might contain digits, white spaces are ignored. Throws a TypeException is identifier is invalid or a newly allocated string to be destroyed with delete []. |