mirror of
https://github.com/gcc-mirror/gcc.git
synced 2024-11-21 13:40:47 +00:00
gccrs: parser: Add peek(n) method to parser
gcc/rust/ChangeLog: * parse/rust-parse.h: New method.
This commit is contained in:
parent
6d8765d071
commit
d9fa4153c8
@ -725,6 +725,7 @@ public:
|
||||
const ManagedTokenSource &get_token_source () const { return lexer; }
|
||||
|
||||
const_TokenPtr peek_current_token () { return lexer.peek_token (0); }
|
||||
const_TokenPtr peek (int n) { return lexer.peek_token (n); }
|
||||
|
||||
private:
|
||||
// The token source (usually lexer) associated with the parser.
|
||||
|
Loading…
Reference in New Issue
Block a user