--- parser3/src/include/pa_operation.h 2003/07/24 11:31:21 1.2 +++ parser3/src/include/pa_operation.h 2012/03/16 09:24:09 1.8 @@ -1,7 +1,7 @@ /** @file Parser: compiled code related decls. - Copyright (c) 2001-2003 ArtLebedev Group (http://www.artlebedev.com) + Copyright (c) 2001-2012 Art. Lebedev Studio (http://www.artlebedev.com) Author: Alexandr Petrosian (http://paf.design.ru) */ @@ -9,7 +9,7 @@ #ifndef OPERATION_H #define OPERATION_H -static const char* IDENT_OPERATION_H="$Date: 2003/07/24 11:31:21 $"; +#define IDENT_PA_OPERATION_H "$Id: pa_operation.h,v 1.8 2012/03/16 09:24:09 moko Exp $" #include "pa_array.h" #include "pa_opcode.h" @@ -40,21 +40,18 @@ union Operation { static Origin create(uint afile_no, uint aline, uint acol) { Origin result={afile_no, aline, acol}; - return result;/* - result.file_no=afile_no; - result.line=aline; - result.col=acol;*/ + return result; } }; - OPCODE code; ///< operation code + OP::OPCODE code; ///< operation code Origin origin; ///< not an operation, but rather debug information: [OP_VALUE; debug_info; Value*] Value* value; ///< not an operation, but rather value stored after argumented op ArrayOperation* ops; ///< not an operation, but rather code array stored after argumented op /// needed to fill unused Array entries Operation() {} - Operation(OPCODE acode): code(acode) {} + Operation(OP::OPCODE acode): code(acode) {} Operation(uint afile_no, uint aline, uint acol): origin(Origin::create(afile_no, aline, acol)) {} Operation(Value* avalue): value(avalue) {}