]> git.ipfire.org Git - thirdparty/gcc.git/commit
fmt: Start working on format_args!() parser
authorArthur Cohen <arthur.cohen@embecosm.com>
Thu, 9 Nov 2023 17:32:52 +0000 (18:32 +0100)
committerCohenArthur <arthur.cohen@embecosm.com>
Mon, 26 Feb 2024 17:32:38 +0000 (17:32 +0000)
commit486b2043a08ff49605ea7d52fc2c3f5403d72079
treee6b83c192c1803eae2c924369194ed6e66d706b8
parent84477fc83223a883bbb53a31b4cbc08eee02af85
fmt: Start working on format_args!() parser

This commit adds a base class for parsing the various constructs of a
Rust format string, according to the grammar in the reference:

https://doc.rust-lang.org/std/fmt/index.html#syntax

gcc/rust/ChangeLog:

* Make-lang.in: Compile rust-fmt object
* ast/rust-fmt.cc: New file.
* ast/rust-fmt.h: New file.
gcc/rust/Make-lang.in
gcc/rust/ast/rust-fmt.cc [new file with mode: 0644]
gcc/rust/ast/rust-fmt.h [new file with mode: 0644]