#include <YCode.h>
Inheritance diagram for YCode:

| enum YCode::ykind |
| YCode::YCode | ( | ) |
Creates a new YCode element
| YCode::~YCode | ( | ) | [virtual] |
Cleans up
| YCode::REP_BODY | ( | YCode | ) | [private] |
| virtual ykind YCode::kind | ( | ) | const [pure virtual] |
Returns the YCode kind
Implemented in YBlock, YConst, YLocale, YFunction, YEVariable, YEReference, YETerm, YECompare, YELocale, YEList, YEMap, YEPropagate, YEUnary, YEBinary, YETriple, YEIs, YEReturn, YEBracket, YEBuiltin, YEFunction, YEFunctionPointer, YSBreak, YSContinue, YSExpression, YSBlock, YSReturn, YSTypedef, YSFunction, YSAssign, YSVariable, YSBracket, YSIf, YSWhile, YSRepeat, YSDo, YSTextdomain, YSInclude, YSImport, YSFilename, and YSSwitch.
| string YCode::toString | ( | ) | const [virtual] |
Returns an ASCII representation of the YCode.
Reimplemented in YBlock, YConst, YLocale, YFunction, YEVariable, YEReference, YETerm, YECompare, YELocale, YEList, YEMap, YEPropagate, YEUnary, YEBinary, YETriple, YEIs, YEReturn, YEBracket, YEBuiltin, YECall, YStatement, YSBreak, YSContinue, YSExpression, YSBlock, YSReturn, YSTypedef, YSFunction, YSAssign, YSVariable, YSBracket, YSIf, YSWhile, YSRepeat, YSDo, YSTextdomain, YSInclude, YSImport, YSFilename, and YSSwitch.
| string YCode::toString | ( | ykind | kind | ) | [static] |
| std::ostream & YCode::toStream | ( | std::ostream & | str | ) | const [pure virtual] |
writes YCode to a stream see Bytecode for read
Implemented in YBlock, YConst, YLocale, YFunction, YEVariable, YEReference, YETerm, YECompare, YELocale, YEList, YEMap, YEPropagate, YEUnary, YEBinary, YETriple, YEIs, YEReturn, YEBracket, YEBuiltin, YECall, YStatement, YSBreak, YSContinue, YSExpression, YSBlock, YSReturn, YSTypedef, YSFunction, YSAssign, YSBracket, YSIf, YSWhile, YSRepeat, YSDo, YSTextdomain, YSInclude, YSImport, YSFilename, and YSSwitch.
| bool YCode::isConstant | ( | ) | const [virtual] |
| bool YCode::isError | ( | ) | const |
returns true if the YCode represents an error
| bool YCode::isStatement | ( | ) | const [virtual] |
returns true if the YCode represents a statement
Reimplemented in YBlock, and YStatement.
| bool YCode::isBlock | ( | ) | const [virtual] |
| bool YCode::isReferenceable | ( | ) | const [virtual] |
returns true if the YCode represents something we can reference to
Reimplemented in YEVariable.
| YCPValue YCode::evaluate | ( | bool | cse = false |
) | [virtual] |
evaluate YCode to YCPValue if debugger == 0 called for parse time evaluation (i.e. constant subexpression elimination) else called for runtime evaluation
Reimplemented in YBlock, YConst, YLocale, YFunction, YEVariable, YEReference, YETerm, YECompare, YELocale, YEList, YEMap, YEPropagate, YEUnary, YEBinary, YETriple, YEIs, YEReturn, YEBracket, YEBuiltin, YEFunction, YEFunctionPointer, YStatement, YSBreak, YSContinue, YSExpression, YSBlock, YSReturn, YSTypedef, YSFunction, YSAssign, YSBracket, YSIf, YSWhile, YSRepeat, YSDo, YSTextdomain, YSInclude, YSImport, YSFilename, and YSSwitch.
| constTypePtr YCode::type | ( | ) | const [virtual] |
return type (interesting mostly for function calls)
Reimplemented in YBlock, YConst, YLocale, YFunction, YEVariable, YEReference, YETerm, YECompare, YELocale, YEList, YEMap, YEPropagate, YEUnary, YEBinary, YETriple, YEIs, YEReturn, YEBracket, YEBuiltin, YECall, YStatement, YSExpression, YSBlock, YSReturn, YSTypedef, YSFunction, YSBracket, YSIf, YSWhile, YSRepeat, YSDo, YSTextdomain, YSInclude, YSImport, YSFilename, and YSSwitch.
1.5.0