Home | History | Annotate | Download | only in sepolgen

Lines Matching refs:lookahead

182         lookahead = None                 # Current lookahead symbol
183 lookaheadstack = [ ] # Stack of lookahead symbols
220 # Get the next symbol on the input. If a lookahead symbol
225 if not lookahead:
227 lookahead = get_token() # Get the next token
229 lookahead = lookaheadstack.pop()
230 if not lookahead:
231 lookahead = YaccSymbol()
232 lookahead.type = '$end'
234 errorlead = ("%s . %s" % (" ".join([xx.type for xx in symstack][1:]), str(lookahead))).lstrip()
238 ltype = lookahead.type
253 symstack.append(lookahead)
254 lookahead = None
297 lookaheadstack.append(lookahead)
300 lookahead = None
326 errtoken = lookahead
340 # returned token is the next lookahead
341 lookahead = tok
346 if hasattr(errtoken,"lineno"): lineno = lookahead.lineno
363 if len(statestack) <= 1 and lookahead.type != '$end':
364 lookahead = None
374 if lookahead.type == '$end':
378 if lookahead.type != 'error':
383 lookahead = None
387 if hasattr(lookahead
388 t.lineno = lookahead.lineno
389 t.value = lookahead
390 lookaheadstack.append(lookahead)
391 lookahead = t
540 # lookaheads - LALR lookahead symbols for this item
1273 # lookahead set that incorporates the state of the LR(0) machine is utilized.
1274 # Thus, we mainly just have to focus on calculating the lookahead sets.
1279 # Lookahead Sets", ACM Transactions on Programming Languages and Systems,
1567 # Attaches the lookahead symbols to grammar rules.
1589 # This function does all of the work of adding lookahead information for use