2004-01-16 Cesar Lopez Nataren <cesar@ciencias.unam.mx>
authorCésar Natarén <cesar@mono-cvs.ximian.com>
Fri, 16 Jan 2004 08:26:30 +0000 (08:26 -0000)
committerCésar Natarén <cesar@mono-cvs.ximian.com>
Fri, 16 Jan 2004 08:26:30 +0000 (08:26 -0000)
commita7d32addb53720587cd7d39b4b62b5ecbffdffd9
tree2714bc4cc9d8e06094e2a936cfd49218d73fe85e
parent01218769e34bf5fb8b5fef8082b98fdbb9190b17
2004-01-16  Cesar Lopez Nataren  <cesar@ciencias.unam.mx>

* IdentificationTable.cs, ScriptBlock.cs: deleted debugging messages.
* jscript-lexer-parser.g: deleted debugging messages. Create a
Assign object instance of a simple Binary obj. Same case for Equality.

* expression.cs: added Exp abstract class. Classes that are ast of
language constructions that can appear as global expressions that
get evaluated and then the result is discarded inherit from this
new class. This let meee keep track of things that must get Popped
or can even avoid the evaluation of it. Wrote real Resolve method
for classes: Unary, Binary.
Implemted Emit method for some binary operations (+, -, / and *),
for other operators some more code is still missing.
Identifier: handle assignment cases and global exp cases.
Added class Assign (compisite assignment still missing tough :-(

* driver.cs: deleted debug messages, added "Compilation Succeeded"
message ;-).
* VariableStatement.cs, VariableDeclaration.cs: wrote real Resolve method.
* Literal.cs (BooleanLiteral, NumericLiteral): now inherits from
Exp and handle the case for global expressions that must be popped
after evaluation. no more invalid IL being generated! yeah!
* Block.cs: wrote real Resolve method, erased debug messages.
* BitwiseBinary.cs, InstanceOf.cs, UnaryOp.cs: : add new Resolve inherited from Exp.
* BinaryOp.cs, Conditional: now inherits from Exp.

svn path=/trunk/mcs/; revision=22151
mcs/class/Microsoft.JScript/Microsoft.JScript/BinaryOp.cs
mcs/class/Microsoft.JScript/Microsoft.JScript/BitwiseBinary.cs
mcs/class/Microsoft.JScript/Microsoft.JScript/Block.cs
mcs/class/Microsoft.JScript/Microsoft.JScript/ChangeLog
mcs/class/Microsoft.JScript/Microsoft.JScript/IdentificationTable.cs
mcs/class/Microsoft.JScript/Microsoft.JScript/Literal.cs
mcs/class/Microsoft.JScript/Microsoft.JScript/VariableDeclaration.cs
mcs/class/Microsoft.JScript/Microsoft.JScript/VariableStatement.cs
mcs/class/Microsoft.JScript/Microsoft.JScript/driver.cs
mcs/class/Microsoft.JScript/Microsoft.JScript/expression.cs
mcs/class/Microsoft.JScript/Microsoft.JScript/jscript-lexer-parser.g