22 #ifndef UTAP_PRETTYPRINTER_H 23 #define UTAP_PRETTYPRINTER_H 37 std::vector<std::string> st;
38 std::stack<std::string> type;
39 std::stack<std::string> array;
40 std::vector<std::string> fields;
41 std::stack<std::ostream *> o;
42 std::set<std::string> types;
43 std::string branchpoints;
45 std::string committed;
47 std::string templateset;
48 int select, guard, sync, update, probability;
59 uint32_t
position, uint32_t offset, uint32_t line,
const std::string& path)
override;
64 bool isType(
const char *)
override;
81 void declVar(
const char *
id,
bool init)
override;
101 void ifEnd(
bool)
override;
106 void procBegin(
const char* name,
const bool isTA =
true,
107 const std::string type =
"",
const std::string mode =
"")
override;
108 void procState(
const char *
id,
bool hasInvariant,
bool hasExpRate)
override;
118 void procEdgeBegin(
const char *source,
const char *target,
const bool control);
119 void procEdgeBegin(
const char *source,
const char *target,
const bool control,
const char* actname)
override;
120 void procEdgeEnd(
const char *source,
const char *target)
override;
122 void exprId(
const char *
id)
override;
123 void exprNat(int32_t n)
override;
142 void exprDot(
const char *)
override;
161 void process(
const char *
id)
override;
163 void done()
override;
167 void queryFormula(
const char* formula,
const char* location)
override;
void ifCondition() override
void exprDeadlock() override
void exprSumBegin(const char *name) override
void typeClock(PREFIX) override
Called whenever a clock type is parsed.
void beforeUpdate() override
void blockBegin() override
void typeName(PREFIX, const char *type) override
Called when a type name has been parsed.
void declParameter(const char *name, bool) override
void procStateCommit(const char *id) override
void whileBegin() override
bool isType(const char *) override
Must return true if and only if name is registered in the symbol table as a named type...
void exprPostIncrement() override
void exprPreIncrement() override
void typeArrayOfSize(size_t n) override
Called to create an array type.
void typeDouble(PREFIX) override
Called whenever a double type is parsed.
void procBegin(const char *name, const bool isTA=true, const std::string type="", const std::string mode="") override
void exprFalse() override
void process(const char *id) override
void exprMitlDiamond(int, int) override
void procGuard() override
void instantiationEnd(const char *, size_t, const char *, size_t) override
void declFuncEnd() override
void returnStatement(bool hasValue) override
void typeStruct(PREFIX prefix, uint32_t n) override
Called when a struct-type has been parsed.
void iterationBegin(const char *name) override
void instantiationBegin(const char *, size_t, const char *) override
void exprNary(Constants::kind_t op, uint32_t num) override
void exprDot(const char *) override
void processListEnd() override
void exprExistsBegin(const char *name) override
void declVar(const char *id, bool init) override
Called to when a variable declaration has been parsed.
void exprAssignment(Constants::kind_t op) override
void exprInlineIf() override
void afterUpdate() override
void exprSimulate(int, bool, int) override
void typeBool(PREFIX) override
Called whenever a boolean type is parsed.
void exprId(const char *id) override
void addPosition(uint32_t position, uint32_t offset, uint32_t line, const std::string &path) override
Add mapping from an absolute position to a relative XML element.
void emptyStatement() override
void exprBuiltinFunction2(Constants::kind_t kind) override
void procSelect(const char *id) override
void exprForAllEnd(const char *name) override
void typeVoid() override
Called whenever a void type is parsed.
void procStateInit(const char *id) override
void exprNat(int32_t n) override
void iterationEnd(const char *name) override
void exprUnary(Constants::kind_t op) override
void typeBoundedInt(PREFIX) override
Called whenever an integer type with a range is parsed.
void typeChannel(PREFIX) override
Called whenever a channel type is parsed.
void procUpdate() override
void structField(const char *name) override
Called to declare a field of a structure.
void typeInt(PREFIX) override
Called whenever an integer type is parsed.
void queryBegin() override
Verification queries.
void breakStatement() override
void exprDouble(double d) override
void procEdgeBegin(const char *source, const char *target, const bool control)
void declFuncBegin(const char *name) override
void exprArray() override
void ifEnd(bool) override
void exprExistsEnd(const char *name) override
void typePop() override
Pop type at the topof the type stack.
void exprCallBegin() override
void exprProbaQuantitative(Constants::kind_t) override
void handleError(const std::string &) override
void exprBuiltinFunction3(Constants::kind_t kind) override
void procSync(Constants::synchronisation_t type) override
void declTypeDef(const char *name) override
Used when a typedef declaration was parsed.
void exprCallEnd(uint32_t n) override
void exprPostDecrement() override
void declFieldInit(const char *name) override
void exprBuiltinFunction1(Constants::kind_t kind) override
void procState(const char *id, bool hasInvariant, bool hasExpRate) override
void procBranchpoint(const char *id) override
void typeDuplicate() override
Duplicate type at the top of the type stack.
void queryFormula(const char *formula, const char *location) override
void exprStatement() override
void exprTernary(Constants::kind_t op, bool firstMissing) override
void exprMitlBox(int, int) override
void exprScenario(const char *name) override
void procStateUrgent(const char *id) override
void typeScalar(PREFIX) override
Called whenever a scalar type is parsed.
void handleWarning(const std::string &) override
void exprBinary(Constants::kind_t op) override
void declInitialiserList(uint32_t num) override
void doWhileEnd() override
PrettyPrinter(std::ostream &stream)
void exprSumEnd(const char *name) override
void exprComma() override
void typeArrayOfType(size_t n) override
Called to create an array type.
void exprPreDecrement() override
void continueStatement() override
void queryComment(const char *comment) override
void exprForAllBegin(const char *name) override
void doWhileBegin() override
void procEdgeEnd(const char *source, const char *target) override