Package coins.casttohir

Class Summary
ConditionalReporter Reports warnings and errors according to the condition.
ConditionInverter ConditionInverter Invert comparison operator in condition expression according to De Morgan rule.
ParseString ParseString class Parse given String operand.
SideEffectBuffer SideEffectBuffer Hold side effect statements and process them (move, insert, etc.).
Side effect statement: statement that leave side effect (assign statement, call statement, etc.).
Sequence point: program point where side effect should be completed at the latest.
Swept out statement: statement moved forward or backward to perform side effect at proper point as defined by the grammar.
Sweep out backward: move a side effect statement in front of the current statement.
Sweep out forward: move a side effect statement to some position succeeding the current statement.
SideEffectCutter SideEffectCutter Cut out subexpression with side effect from given expression-statement ExtStmt.
ToC ToC Convert HIR to C source code.
ToHir ToHir Offer cooperation with other packages to all classes included in this package, for example, I/O files, compile option information, etc.
ToHirBase Convert HIR-C to HIR-base.
ToHirBaseOpt Do simple HIR-base optimizations such as elimination of useless statements, expansion of control statements with constant conditional expression.
ToHirC Convert ASTree(abstruct syntax tree) to HIR-C.
ToHirC2 Do error check, replace symbols, and convert expressions to HIR-C expressions that can be easily treated.
ToHirCast This class offers the cast function.
ToHirCOpt Do simple optimizations (optimizations of expressions and conditions) for HIR-C.
ToHirCOpt2 Do HIR-C optimization for arithmetic expression and conditional expression.
ToHirInit Converet initializer of ASTree to HIR-C expression.
ToHirSym Create symbol and register it to the symbol table.
ToHirVisit HIR tree visitor.