29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
optional< TermLoc > consume();
// Consume the next token. No resolution is performed on identifiers.
optional< TermLoc > consumeUnresolved();
optional< TermLoc > lookAhead( size_t distance = 0 );
optional< TermLoc > lookAheadUnresolved( size_t distance = 0 );
optional< TermLoc > lookAheadRaw( size_t distance = 0 );
// Consume the next unit from the provider and yield each token that it contains.
// An unit is:
// - any brace, paren or bracket block and every unit they contain
// - any other token
Generator< TermLoc > consumeUnit();
|
<
|
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
optional< TermLoc > consume();
// Consume the next token. No resolution is performed on identifiers.
optional< TermLoc > consumeUnresolved();
optional< TermLoc > lookAhead( size_t distance = 0 );
optional< TermLoc > lookAheadUnresolved( size_t distance = 0 );
// Consume the next unit from the provider and yield each token that it contains.
// An unit is:
// - any brace, paren or bracket block and every unit they contain
// - any other token
Generator< TermLoc > consumeUnit();
|