Changes in src/Parser/ParseNode.h [25bca42:401e61f]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/ParseNode.h
r25bca42 r401e61f 10 10 // Created On : Sat May 16 13:28:16 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed Jun 6 16:17:18201813 // Update Count : 8 4312 // Last Modified On : Mon Jun 4 22:21:04 2018 13 // Update Count : 832 14 14 // 15 15 … … 77 77 78 78 ParseNode * next = nullptr; 79 conststd::string * name = nullptr;79 std::string * name = nullptr; 80 80 CodeLocation location = yylloc; 81 81 }; // ParseNode … … 171 171 }; 172 172 173 Expression * build_constantInteger( std::string & str ); // these 4 routines modify the string174 Expression * build_constantFloat( std::string & 175 Expression * build_constantChar( std::string & 176 Expression * build_constantStr( std::string & 173 Expression * build_constantInteger( std::string &str ); 174 Expression * build_constantFloat( std::string &str ); 175 Expression * build_constantChar( std::string &str ); 176 Expression * build_constantStr( std::string &str ); 177 177 Expression * build_field_name_FLOATING_FRACTIONconstant( const std::string & str ); 178 178 Expression * build_field_name_FLOATING_DECIMALconstant( const std::string & str ); … … 230 230 static DeclarationNode * newBuiltinType( BuiltinType ); 231 231 static DeclarationNode * newForall( DeclarationNode * ); 232 static DeclarationNode * newFromTypedef( conststd::string * );233 static DeclarationNode * newFunction( conststd::string * name, DeclarationNode * ret, DeclarationNode * param, StatementNode * body );232 static DeclarationNode * newFromTypedef( std::string * ); 233 static DeclarationNode * newFunction( std::string * name, DeclarationNode * ret, DeclarationNode * param, StatementNode * body ); 234 234 static DeclarationNode * newAggregate( Aggregate kind, const std::string * name, ExpressionNode * actuals, DeclarationNode * fields, bool body ); 235 static DeclarationNode * newEnum( conststd::string * name, DeclarationNode * constants, bool body );236 static DeclarationNode * newEnumConstant( conststd::string * name, ExpressionNode * constant );237 static DeclarationNode * newName( conststd::string * );238 static DeclarationNode * newFromTypeGen( conststd::string *, ExpressionNode * params );239 static DeclarationNode * newTypeParam( TypeClass, conststd::string * );235 static DeclarationNode * newEnum( std::string * name, DeclarationNode * constants, bool body ); 236 static DeclarationNode * newEnumConstant( std::string * name, ExpressionNode * constant ); 237 static DeclarationNode * newName( std::string * ); 238 static DeclarationNode * newFromTypeGen( std::string *, ExpressionNode * params ); 239 static DeclarationNode * newTypeParam( TypeClass, std::string * ); 240 240 static DeclarationNode * newTrait( const std::string * name, DeclarationNode * params, DeclarationNode * asserts ); 241 241 static DeclarationNode * newTraitUse( const std::string * name, ExpressionNode * params ); 242 static DeclarationNode * newTypeDecl( conststd::string * name, DeclarationNode * typeParams );242 static DeclarationNode * newTypeDecl( std::string * name, DeclarationNode * typeParams ); 243 243 static DeclarationNode * newPointer( DeclarationNode * qualifiers, OperKinds kind ); 244 244 static DeclarationNode * newArray( ExpressionNode * size, DeclarationNode * qualifiers, bool isStatic ); … … 247 247 static DeclarationNode * newTuple( DeclarationNode * members ); 248 248 static DeclarationNode * newTypeof( ExpressionNode * expr ); 249 static DeclarationNode * newAttr( conststd::string *, ExpressionNode * expr ); // @ attributes250 static DeclarationNode * newAttr( conststd::string *, DeclarationNode * type ); // @ attributes251 static DeclarationNode * newAttribute( conststd::string *, ExpressionNode * expr = nullptr ); // gcc attributes249 static DeclarationNode * newAttr( std::string *, ExpressionNode * expr ); // @ attributes 250 static DeclarationNode * newAttr( std::string *, DeclarationNode * type ); // @ attributes 251 static DeclarationNode * newAttribute( std::string *, ExpressionNode * expr = nullptr ); // gcc attributes 252 252 static DeclarationNode * newAsmStmt( StatementNode * stmt ); // gcc external asm statement 253 253 static DeclarationNode * newStaticAssert( ExpressionNode * condition, Expression * message );
Note: See TracChangeset
for help on using the changeset viewer.