]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: Add Lexer for Rust front-end
authorJoel Phillips <simplytheother@gmail.com>
Tue, 23 Aug 2022 15:11:00 +0000 (16:11 +0100)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 13 Dec 2022 13:00:04 +0000 (14:00 +0100)
commit18f6990f842d0bdcb2cf9541ca98d67b414d5802
tree6a9cc48fb9b8eadf5c967d5ab7625f710833f99c
parent5b981e9c7411e68bdd73365dbd94ed3844bce2c8
gccrs: Add Lexer for Rust front-end

The lexer is referred to as a ManagedTokenSource within the parser. This
lexer does not currently support Unicode, but serves as a starting point
to do so.

gcc/rust/
* lex/rust-codepoint.h: New.
* lex/rust-lex.cc: New.
* lex/rust-lex.h: New.
* lex/rust-token.cc: New.
* lex/rust-token.h: New.
* rust-buffered-queue.h: New.

Co-authored-by: Philip Herron <philip.herron@embecosm.com>
Co-authored-by: Arthur Cohen <arthur.cohen@embecosm.com>
Co-authored-by: Mark Wielaard <mark@klomp.org>
Signed-off-by: Joel Phillips <simplytheother@gmail.com>
gcc/rust/lex/rust-codepoint.h [new file with mode: 0644]
gcc/rust/lex/rust-lex.cc [new file with mode: 0644]
gcc/rust/lex/rust-lex.h [new file with mode: 0644]
gcc/rust/lex/rust-token.cc [new file with mode: 0644]
gcc/rust/lex/rust-token.h [new file with mode: 0644]
gcc/rust/rust-buffered-queue.h [new file with mode: 0644]