search for: tokprec

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

2010 Feb 17
2
[LLVMdev] Kaleidoscope toy4 failure seg fault on llvm::ExecutionEngine::getTargetData (this=0x0)
...another token from the /// lexer and updates CurTok with its results. static int CurTok; static int getNextToken() { return CurTok = gettok(); } /// BinopPrecedence - This holds the precedence for each binary operator that is /// defined. static std::map<char, int> BinopPrecedence; /// GetTokPrecedence - Get the precedence of the pending binary operator token. static int GetTokPrecedence() { if (!isascii(CurTok)) return -1; // Make sure it's a declared binop. int TokPrec = BinopPrecedence[CurTok]; if (TokPrec <= 0) return -1; return TokPrec; } /// Error* - These are l...
2010 Feb 17
0
[LLVMdev] Kaleidoscope toy4 failure seg fault on llvm::ExecutionEngine::getTargetData (this=0x0)
...with its results. > static int CurTok; > static int getNextToken() { > return CurTok = gettok(); > } > > /// BinopPrecedence - This holds the precedence for each binary operator > that is > /// defined. > static std::map<char, int> BinopPrecedence; > > /// GetTokPrecedence - Get the precedence of the pending binary operator > token. > static int GetTokPrecedence() { > if (!isascii(CurTok)) > return -1; > > // Make sure it's a declared binop. > int TokPrec = BinopPrecedence[CurTok]; > if (TokPrec <= 0) return -1; > retur...
2010 Feb 17
1
[LLVMdev] Kaleidoscope toy4 failure seg fault on llvm::ExecutionEngine::getTargetData (this=0x0)
...; >> static int getNextToken() { >>  return CurTok = gettok(); >> } >> >> /// BinopPrecedence - This holds the precedence for each binary operator >> that is >> /// defined. >> static std::map<char, int> BinopPrecedence; >> >> /// GetTokPrecedence - Get the precedence of the pending binary operator >> token. >> static int GetTokPrecedence() { >>  if (!isascii(CurTok)) >>    return -1; >> >>  // Make sure it's a declared binop. >>  int TokPrec = BinopPrecedence[CurTok]; >>  if (TokPrec...