search for: tok_identifi

Displaying 3 results from an estimated 3 matches for "tok_identifi".

Did you mean: tok_identifier
2010 Feb 17
2
[LLVMdev] Kaleidoscope toy4 failure seg fault on llvm::ExecutionEngine::getTargetData (this=0x0)
...==// // Lexer //===----------------------------------------------------------------------===// // 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....
2010 Feb 17
0
[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 = ...
2010 Feb 17
1
[LLVMdev] Kaleidoscope toy4 failure seg fault on llvm::ExecutionEngine::getTargetData (this=0x0)
...gt; >> // 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() { &g...