search for: identifierstr

Displaying 4 results from an estimated 4 matches for "identifierstr".

Did you mean: identifiers
2010 Feb 17
2
[LLVMdev] Kaleidoscope toy4 failure seg fault on llvm::ExecutionEngine::getTargetData (this=0x0)
...----------------------------===// // The lexer returns tokens [0-255] if it is an unknown character, otherwise one // of these for known things. enum Token { tok_eof = -1, // commands tok_def = -2, tok_extern = -3, // primary tok_identifier = -4, tok_number = -5, }; static std::string IdentifierStr; // Filled in if tok_identifier static double NumVal; // Filled in if tok_number /// gettok - Return the next token from standard input. static int gettok() { static int LastChar = ' '; // Skip any whitespace. while (isspace(LastChar)) LastChar = getchar(); if (...
2010 Feb 17
0
[LLVMdev] Kaleidoscope toy4 failure seg fault on llvm::ExecutionEngine::getTargetData (this=0x0)
...okens [0-255] if it is an unknown character, > otherwise one > // of these for known things. > enum Token { > tok_eof = -1, > > // commands > tok_def = -2, tok_extern = -3, > > // primary > tok_identifier = -4, tok_number = -5, > }; > > static std::string IdentifierStr; // Filled in if tok_identifier > static double NumVal; // Filled in if tok_number > > /// gettok - Return the next token from standard input. > static int gettok() { > static int LastChar = ' '; > > // Skip any whitespace. > while (isspace(LastChar)...
2010 Feb 17
1
[LLVMdev] Kaleidoscope toy4 failure seg fault on llvm::ExecutionEngine::getTargetData (this=0x0)
...; otherwise one >> // of these for known things. >> enum Token { >>  tok_eof = -1, >> >>  // commands >>  tok_def = -2, tok_extern = -3, >> >>  // primary >>  tok_identifier = -4, tok_number = -5, >> }; >> >> static std::string IdentifierStr;  // Filled in if tok_identifier >> static double NumVal;              // Filled in if tok_number >> >> /// gettok - Return the next token from standard input. >> static int gettok() { >>  static int LastChar = ' '; >> >>  // Skip any whitespace. &g...
2011 Feb 08
1
[LLVMdev] Question about linker error
...ExprAST *Init; public: GlobalExprAST(const std::string &name, ExprAST *init) : Name(name), Init(init) {} virtual Value *Codegen(); }; /// Parser /// ::= 'global' identifier ('=' expression)? static ExprAST *ParseGlobalExpr() { getNextToken(); std::string Name = IdentifierStr; getNextToken(); ExprAST *Init = 0; if (CurTok == '=') { getNextToken(); Init = ParseExpression(); if (Init == 0) return 0; } return new GlobalExprAST(Name, Init); } Any help would be much appreaciated! Anton