The syntactic grammar of almost any programming language is regular, since they allow arbitrarily deeply enclosed parentheses. Rust too:
let x = ((((()))));
But is Rust's syntactic grammar, at least context-free? If not, which element makes the grammar context-sensitive? Or is a grammar even recursively enumerable, such as C ++ syntactic grammar ?
Related: Is Rust's lexical grammar regular, context-sensitive, or context-sensitive?
Rust , .
, , - , - , , , .
, , Rust .
, , , ( ) -, .
, - Rust. , , , , bison Antlr ( ). , Rust, ; , , CF.
Rust:
-. . , r, N ( N ), , , , N . , , , N . , r ### "" ### "### .
Source: https://habr.com/ru/post/1675901/More articles:Error creating plugin: org.apache.hadoop.metrics2.sink.WasbAzureIaasSink - hadoophttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1675897/whats-a-good-way-to-pass-the-params-to-service-method-an-entire-object-or-just-some-of-its-params&usg=ALkJrhhl4nthT7cTabxtvYuJI_-aREFC9QIs rust lexical grammar regular, context-sensitive, or context-sensitive? - language-lawyerCookie expires in past in asp.net mvc - cookiesIs there a difference in complexity between std :: vector used as a stack and std :: stack? - c ++how to observe valueChanges on a control inside formGroup under dynamic formArray - angularWhy does a pattern correspond to one word while there are two identical words? - phpRandom Weighted Average Increase - performanceRegex matches and replaces operators in a mathematical operation - c #Typescript: What a "!" at the end of attribution - typescriptAll Articles