diff options
author | Arthur Cohen <arthur.cohen@embecosm.com> | 2022-02-26 11:10:38 +0100 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2022-02-26 13:21:46 +0100 |
commit | ede68b7ba64ace5fbcb900b37c7e8572a2ddefb5 (patch) | |
tree | 94bd8e33757e8e019143fa8177e7d79ec8e6cd5d /gcc/rust/parse/rust-cfg-parser.cc | |
parent | bf92a1012264f2544e73a7a8dd0ac1e473c7f658 (diff) | |
download | gcc-ede68b7ba64ace5fbcb900b37c7e8572a2ddefb5.zip gcc-ede68b7ba64ace5fbcb900b37c7e8572a2ddefb5.tar.gz gcc-ede68b7ba64ace5fbcb900b37c7e8572a2ddefb5.tar.bz2 |
lexer: Add ability to lex strings directly
By allowing us to parse strings directly instead of necessarily a
filename, we are now able to reuse the parser and lexer in various
places of the compiler. This is useful for -frust-cfg, but may also come
in handy for
other compiler mechanics such as the include!() builtin macro, where we
do not actually want location info but just a stream of tokens.
Diffstat (limited to 'gcc/rust/parse/rust-cfg-parser.cc')
0 files changed, 0 insertions, 0 deletions