sim_codec_python/grammar.rs
1//! Frozen Python syntax authority and coverage inventory.
2
3/// Exact Python patch release targeted by this frontend.
4pub const PYTHON_VERSION: &str = "3.14.6";
5/// SHA-256 of `grammar/python-3.14.6.gram`.
6pub const GRAMMAR_SHA256: &str = "e202af7e205b898d38676e6ce5aa211bc80cdb27635efc5d386bd571fefb50c1";
7/// SHA-256 of `grammar/corpus-3.14.6.txt`.
8pub const CORPUS_SHA256: &str = "628c172d99c245b204c8a2891e996e50624f8c372a0248d3a3d18e445dd49392";
9
10/// Frozen production names checked by the syntax corpus.
11#[must_use]
12pub fn frozen_productions() -> &'static [&'static str] {
13 include!(concat!(
14 env!("CARGO_MANIFEST_DIR"),
15 "/grammar/productions.rs"
16 ))
17}