75 std::ostream &
toXml (std::ostream &
str,
int indent )
const;
97 std::ostream &
toStream (std::ostream & str)
const;
98 std::ostream &
toXml (std::ostream & str,
int indent )
const;
116 std::ostream &
toStream (std::ostream & str)
const;
117 std::ostream &
toXml (std::ostream & str,
int indent )
const;
137 std::ostream &
toStream (std::ostream &
str)
const;
138 std::ostream &
toXml (std::ostream &
str,
int indent )
const;
159 std::ostream &
toStream (std::ostream &
str)
const;
160 std::ostream &
toXml (std::ostream &
str,
int indent )
const;
180 void propagate (constTypePtr from, constTypePtr to);
181 YCodePtr
value ()
const;
184 std::ostream &
toStream (std::ostream &
str)
const;
185 std::ostream &
toXml (std::ostream &
str,
int indent )
const;
207 std::ostream &
toStream (std::ostream &
str)
const;
208 std::ostream &
toXml (std::ostream &
str,
int indent )
const;
232 SymbolEntryPtr
entry ()
const;
235 YFunctionPtr
function ()
const;
238 std::ostream &
toStream (std::ostream &
str)
const;
239 std::ostream &
toXml (std::ostream &
str,
int indent )
const;
258 YSAssign (SymbolEntryPtr entry, YCodePtr code,
int line = 0);
263 std::ostream &
toStream (std::ostream &
str)
const;
264 std::ostream &
toXml (std::ostream &
str,
int indent )
const;
300 YSBracket (SymbolEntryPtr entry, YCodePtr arg, YCodePtr code,
int line = 0);
305 std::ostream &
toStream (std::ostream &
str)
const;
306 std::ostream &
toXml (std::ostream &
str,
int indent )
const;
327 YSIf (YCodePtr a_expr, YCodePtr a_true, YCodePtr a_false,
int line = 0);
332 std::ostream &
toStream (std::ostream &
str)
const;
333 std::ostream &
toXml (std::ostream &
str,
int indent )
const;
351 YSWhile (YCodePtr expr, YCodePtr loop,
int line = 0);
356 std::ostream &
toStream (std::ostream &
str)
const;
357 std::ostream &
toXml (std::ostream &
str,
int indent )
const;
380 std::ostream &
toStream (std::ostream &
str)
const;
381 std::ostream &
toXml (std::ostream &
str,
int indent )
const;
399 YSDo (YCodePtr loop, YCodePtr expr,
int line = 0);
404 std::ostream &
toStream (std::ostream &
str)
const;
405 std::ostream &
toXml (std::ostream &
str,
int indent )
const;
426 std::ostream &
toStream (std::ostream &
str)
const;
427 std::ostream &
toXml (std::ostream &
str,
int indent )
const;
452 std::ostream &
toStream (std::ostream &
str)
const;
453 std::ostream &
toXml (std::ostream &
str,
int indent )
const;
474 string name ()
const;
476 std::ostream &
toStream (std::ostream & str)
const;
477 std::ostream &
toXml (std::ostream & str,
int indent )
const;
498 std::ostream &
toStream (std::ostream &
str)
const;
499 std::ostream &
toXml (std::ostream &
str,
int indent )
const;
526 string name ()
const;
528 std::ostream &
toStream (std::ostream &
str)
const;
529 std::ostream &
toXml (std::ostream &
str,
int indent )
const;
539 #endif // YStatement_h
constTypePtr type() const
Definition: YStatement.h:359
~YSImport()
Definition: YStatement.cc:1713
std::ostream & toStream(std::ostream &str) const
Definition: YStatement.cc:1807
~YSSwitch()
Definition: YStatement.cc:1923
Definition: YStatement.h:344
SymbolEntryPtr m_entry
Definition: YStatement.h:296
SymbolEntryPtr m_entry
Definition: YStatement.h:255
~YSRepeat()
Definition: YStatement.cc:1302
string toString() const
Definition: YStatement.cc:321
~YSReturn()
Definition: YStatement.cc:374
constTypePtr type() const
Definition: YStatement.h:429
YSIf(YCodePtr a_expr, YCodePtr a_true, YCodePtr a_false, int line=0)
Definition: YStatement.cc:967
YSBreak(int line=0)
Definition: YStatement.cc:128
YCode for precompiled ycp code.
Definition: YCode.h:75
YCodePtr m_false
Definition: YStatement.h:325
constTypePtr type() const
Definition: YStatement.h:140
constTypePtr type() const
Definition: YStatement.h:407
std::ostream & toStream(std::ostream &str) const
Definition: YStatement.cc:204
Ustring m_domain
Definition: YStatement.h:419
YSymbolEntryPtr m_entry
Definition: YStatement.h:223
#define str
Definition: scanner.cc:997
string toString() const
Definition: YStatement.cc:1929
std::ostream & toStream(std::ostream &str) const
Definition: YStatement.cc:657
~YSFilename()
Definition: YStatement.cc:1862
std::ostream & toXml(std::ostream &str, int indent) const
Definition: YStatement.cc:1600
virtual ykind kind() const
Definition: YStatement.h:473
YCPValue evaluate(bool cse=false)
Definition: YStatement.cc:1835
Definition: YStatement.h:196
YSAssign(SymbolEntryPtr entry, YCodePtr code, int line=0)
Definition: YStatement.cc:624
YCPValue evaluate(bool cse=false)
Definition: YStatement.cc:1898
Ustring m_name
Definition: YStatement.h:199
virtual ykind kind() const
Definition: YStatement.h:114
Definition: YStatement.h:171
virtual ykind kind() const
Definition: YStatement.h:282
std::ostream & toXml(std::ostream &str, int indent) const
Definition: YStatement.cc:210
YCPValue evaluate(bool cse=false)
Definition: YStatement.cc:2010
YCPValue evaluate(bool cse=false)
Definition: YStatement.cc:344
YSRepeat(YCodePtr loop, YCodePtr expr, int line=0)
Definition: YStatement.cc:1282
YCPValue evaluate(bool cse=false)
Definition: YStatement.cc:1072
constTypePtr m_type
Definition: YStatement.h:200
ykind
Definition: YCode.h:90
std::ostream & toStream(std::ostream &str) const
Definition: YStatement.cc:1972
YCodePtr m_loop
Definition: YStatement.h:348
std::ostream & toXml(std::ostream &str, int indent) const
Definition: YStatement.cc:1666
string toString() const
Definition: YStatement.cc:414
DEFINE_DERIVED_POINTER(YStatement, YCode)
YBlockPtr m_block
Definition: YStatement.h:513
~YSVariable()
Definition: YStatement.cc:713
std::ostream & toStream(std::ostream &str) const
Definition: YStatement.cc:158
constTypePtr type() const
Definition: YStatement.h:531
std::ostream & toXml(std::ostream &str, int indent) const
Definition: YStatement.cc:1480
Definition: YStatement.h:441
virtual ykind kind() const
Definition: YStatement.h:525
Definition: YStatement.h:149
int line() const
Definition: YStatement.h:78
~YSTypedef()
Definition: YStatement.h:204
virtual ykind kind() const
Definition: YStatement.h:229
Definition: YStatement.h:127
std::ostream & toXml(std::ostream &str, int indent) const
Definition: YStatement.cc:666
std::ostream & toStream(std::ostream &str) const
Definition: YStatement.cc:592
Definition: YStatement.h:65
std::ostream & toXml(std::ostream &str, int indent) const
Definition: YStatement.cc:1321
YStatement(int line=0)
Definition: YStatement.cc:73
YCPValue evaluate(bool cse=false)
Definition: YStatement.cc:1357
YSFunction(YSymbolEntryPtr entry, int line=0)
Definition: YStatement.cc:479
YCodePtr m_code
Definition: YStatement.h:298
Definition: YStatement.h:488
YSImport(const string &name, int line=0)
Definition: YStatement.cc:1687
YCodePtr m_condition
Definition: YStatement.h:372
constTypePtr type() const
Definition: YStatement.h:210
Definition: YStatement.h:392
Definition: YStatement.h:368
virtual YCPValue evaluate(bool cse=false)
Definition: YStatement.cc:98
virtual string toString() const
Definition: YStatement.cc:91
constTypePtr type() const
Definition: YStatement.h:80
YBlockPtr m_block
Definition: YStatement.h:152
~YSDo()
Definition: YStatement.cc:1443
YCodePtr m_condition
Definition: YStatement.h:396
YSBlock(YBlockPtr block, int line=0)
Definition: YStatement.cc:300
virtual ykind kind() const
Definition: YStatement.h:261
YSBracket(SymbolEntryPtr entry, YCodePtr arg, YCodePtr code, int line=0)
Definition: YStatement.cc:733
~YSInclude()
Definition: YStatement.cc:1635
std::ostream & toXml(std::ostream &str, int indent) const
Definition: YStatement.cc:1045
std::ostream & toStream(std::ostream &str) const
Definition: YStatement.cc:1883
Definition: YStatement.h:89
int m_defaultcase
Definition: YStatement.h:516
Ustring m_filename
Definition: YStatement.h:444
string toString() const
Definition: YStatement.cc:240
string toString() const
Definition: YStatement.cc:1726
bool setDefaultCase()
Definition: YStatement.cc:2078
std::ostream & toStream(std::ostream &str) const
Definition: YStatement.cc:1160
YCPValue evaluate(bool cse=false)
Definition: YStatement.cc:613
string toString() const
Definition: YStatement.cc:995
YCPValue evaluate(bool cse=false)
Definition: YStatement.cc:680
virtual ykind kind() const
Definition: YStatement.h:354
~YSAssign()
Definition: YStatement.cc:640
YCPValue evaluate(bool cse=false)
Definition: YStatement.cc:453
void setBlock(YBlockPtr block)
Definition: YStatement.cc:2091
YCPValue evaluate(bool cse=false)
Definition: YStatement.cc:1610
std::ostream & toXml(std::ostream &str, int indent) const
Definition: YStatement.cc:779
string toString() const
Definition: YStatement.cc:1449
~YSBlock()
Definition: YStatement.cc:315
std::ostream & toXml(std::ostream &str, int indent) const
Definition: YStatement.cc:1994
YSSwitch(YCodePtr condition)
Definition: YStatement.cc:1914
Definition: YStatement.h:320
YCodePtr value() const
Definition: YStatement.cc:380
~YSBracket()
Definition: YStatement.cc:742
std::ostream & toStream(std::ostream &str) const
Definition: YStatement.cc:538
virtual ykind kind() const
Definition: YStatement.h:450
instantiate to import a module
Definition: Import.h:36
Definition: YStatement.h:275
constTypePtr type() const
Definition: YStatement.h:501
std::ostream & toXml(std::ostream &str, int indent) const
Definition: YStatement.cc:1174
std::ostream & toStream(std::ostream &str) const
Definition: YStatement.cc:1016
void propagate(constTypePtr from, constTypePtr to)
Definition: YStatement.cc:403
std::ostream & toStream(std::ostream &str) const
Definition: YStatement.cc:1592
virtual ykind kind() const
Definition: YStatement.h:179
int m_line
Definition: YStatement.h:68
YSInclude(const string &filename, int line=0, bool skipped=false)
Definition: YStatement.cc:1627
constTypePtr type() const
Definition: YStatement.h:311
constTypePtr type() const
Definition: YStatement.h:241
std::ostream & toStream(std::ostream &str) const
Definition: YStatement.cc:329
YCodePtr m_condition
Definition: YStatement.h:347
constTypePtr type() const
Definition: YStatement.h:335
constTypePtr type() const
Definition: YStatement.h:187
Unique strings.
Definition: Ustring.h:124
bool m_skipped
Definition: YStatement.h:445
constTypePtr type() const
Definition: YStatement.h:455
virtual bool isStatement() const
Definition: YStatement.h:77
YCPValue commit(YCPValue current, int idx, YCPList arg, YCPValue value)
Definition: YStatement.cc:797
string toString() const
Definition: YStatement.cc:1132
string toString() const
Definition: YStatement.cc:187
virtual ykind kind() const
Definition: YStatement.h:378
~YSFunction()
Definition: YStatement.cc:486
constTypePtr type() const
Definition: YStatement.h:383
YCPValue evaluate(bool cse=false)
Definition: YStatement.cc:194
string toString() const
Definition: YStatement.cc:1576
YCodePtr m_value
Definition: YStatement.h:174
std::ostream & toStream(std::ostream &str) const
Definition: YStatement.cc:769
YCodePtr m_code
Definition: YStatement.h:256
string toString() const
Definition: YStatement.cc:1868
string filename() const
Definition: YStatement.h:456
std::ostream & toStream(std::ostream &str) const
Definition: YStatement.cc:252
Wrapper for YCPListRep This class realizes an automatic memory management via YCPElement. Access the functionality of YCPListRep with the arrow operator. See YCPListRep.
Definition: YCPList.h:236
string toString() const
Definition: YStatement.cc:647
string toString() const
Definition: YStatement.cc:1641
YCodePtr m_true
Definition: YStatement.h:324
YCodePtr m_condition
Definition: YStatement.h:323
virtual ykind kind() const
Definition: YStatement.h:205
std::ostream & toStream(std::ostream &str) const
Definition: YStatement.cc:1467
constTypePtr type() const
Definition: YStatement.h:479
virtual ykind kind() const
Definition: YStatement.h:424
Definition: YStatement.h:108
YCPValue evaluate(bool cse=false)
Definition: YStatement.cc:909
YCodePtr m_expr
Definition: YStatement.h:130
YCodePtr m_condition
Definition: YStatement.h:512
YSExpression(YCodePtr expr, int line=0)
Definition: YStatement.cc:220
virtual ykind kind() const
Definition: YStatement.h:95
Definition: YStatement.h:293
void bind()
Definition: YStatement.cc:1616
string toString() const
Definition: YStatement.cc:749
YSFilename(const string &filename, int line=0)
Definition: YStatement.cc:1855
~YSWhile()
Definition: YStatement.cc:1126
YCPValue evaluate(bool cse=false)
Definition: YStatement.cc:1676
std::ostream & toXml(std::ostream &str, int indent) const
Definition: YStatement.cc:1891
YSWhile(YCodePtr expr, YCodePtr loop, int line=0)
Definition: YStatement.cc:1108
YCPValue evaluate(bool cse=false)
Definition: YStatement.cc:514
YCPValue evaluate(bool cse=false)
Definition: YStatement.cc:1190
string toString() const
Definition: YStatement.cc:1340
string toString() const
Definition: YStatement.cc:507
map< YCPValue, int, ycp_less > m_cases
Definition: YStatement.h:519
std::ostream & toXml(std::ostream &str, int indent) const
Definition: YStatement.cc:337
virtual ykind kind() const
Definition: YStatement.h:402
YSTypedef(const string &name, constTypePtr type, int line=0)
Definition: YStatement.cc:567
std::ostream & toStream(std::ostream &str) const
Definition: YStatement.cc:1308
string toString() const
Definition: YStatement.cc:584
YSContinue(int line=0)
Definition: YStatement.cc:174
const char * domain() const
Definition: YStatement.h:430
YSVariable(SymbolEntryPtr entry, YCodePtr code, int line=0)
Definition: YStatement.cc:699
Wrapper for YCPValueRep This class realizes an automatic memory management via YCPElement. Access the functionality of YCPValueRep with the arrow operator. See YCPValueRep.
Definition: YCPValue.h:275
virtual ykind kind() const
Definition: YStatement.h:330
Definition: YStatement.h:416
virtual ykind kind() const
Definition: YStatement.h:135
std::ostream & toStream(std::ostream &str) const
Definition: YStatement.cc:108
Definition: Y2Namespace.h:43
YCodePtr m_arg
Definition: YStatement.h:297
std::ostream & toXml(std::ostream &str, int indent) const
Definition: YStatement.cc:118
YSReturn(YCodePtr value, int line=0)
Definition: YStatement.cc:356
std::ostream & toXml(std::ostream &str, int indent) const
Definition: YStatement.cc:1825
~YStatement()
Definition: YStatement.h:72
std::ostream & toStream(std::ostream &str) const
Definition: YStatement.cc:428
YSDo(YCodePtr loop, YCodePtr expr, int line=0)
Definition: YStatement.cc:1423
std::ostream & toXml(std::ostream &str, int indent) const
Definition: YStatement.cc:601
An istream that remembers some data about the bytecode.
Definition: Bytecode.h:42
static const constTypePtr Void
Definition: Type.h:122
Definition: YStatement.h:251
string name() const
Definition: YStatement.cc:1719
SymbolEntryPtr entry() const
Definition: YStatement.cc:493
constTypePtr type() const
Definition: YStatement.h:162
YCodePtr m_loop
Definition: YStatement.h:371
Definition: YStatement.h:219
virtual ykind kind() const
Definition: YStatement.h:157
YCPValue evaluate(bool cse=false)
Definition: YStatement.cc:287
YCodePtr m_loop
Definition: YStatement.h:395
string toString() const
Definition: YStatement.cc:141
~YSIf()
Definition: YStatement.cc:989
std::ostream & toXml(std::ostream &str, int indent) const
Definition: YStatement.cc:552
YSTextdomain(const string &textdomain, int line=0)
Definition: YStatement.cc:1562
bool setCase(YCPValue value)
Definition: YStatement.cc:2063
YCPValue evaluate(bool cse=false)
Definition: YStatement.cc:148
Definition: YStatement.h:509
std::ostream & toStream(std::ostream &str) const
Definition: YStatement.cc:1657
~YSExpression()
Definition: YStatement.cc:234
YCPValue evaluate(bool cse=false)
Definition: YStatement.cc:1497
~YSTextdomain()
Definition: YStatement.cc:1570
virtual ykind kind() const
Definition: YStatement.h:303
void clearValue()
Definition: YStatement.cc:393
Definition: YStatement.h:465
constTypePtr conditionType() const
Definition: YStatement.h:532
std::ostream & toXml(std::ostream &str, int indent) const
Definition: YStatement.cc:441
std::ostream & toXml(std::ostream &str, int indent) const
Definition: YStatement.cc:164
std::ostream & toXml(std::ostream &str, int indent) const
Definition: YStatement.cc:260
string toString() const
Definition: YStatement.cc:719
Ustring m_filename
Definition: YStatement.h:491
virtual ykind kind() const
Definition: YStatement.h:496