Related articles |
---|
syntax complexity gah4@u.washington.edu (gah4) (2023-02-15) |
Re: syntax complexity tkoenig@netcologne.de (Thomas Koenig) (2023-02-16) |
Re: syntax complexity DrDiettrich1@netscape.net (Hans-Peter Diettrich) (2023-02-16) |
Re: syntax complexity gah4@u.washington.edu (gah4) (2023-02-16) |
Re: syntax complexity gah4@u.washington.edu (gah4) (2023-02-16) |
Re: syntax complexity costello@mitre.org (Roger L Costello) (2023-02-20) |
Re: syntax complexity gah4@u.washington.edu (gah4) (2023-02-20) |
Re: syntax complexity gneuner2@comcast.net (George Neuner) (2023-02-20) |
Re: syntax complexity anton@mips.complang.tuwien.ac.at (2023-02-21) |
syntax complexity christopher.f.clark@compiler-resources.com (Christopher F Clark) (2023-02-21) |
Re: syntax complexity nmh@t3x.org (Nils M Holm) (2023-02-21) |
Re: syntax complexity anton@mips.complang.tuwien.ac.at (2023-02-21) |
From: | George Neuner <gneuner2@comcast.net> |
Newsgroups: | comp.compilers |
Date: | Mon, 20 Feb 2023 13:49:19 -0500 |
Organization: | A noiseless patient Spider |
References: | 23-02-045 23-02-047 23-02-050 <29156_1676600565_63EEE4F4_29156_1009_1_23-02-051@comp.compilers> 23-02-052 |
Injection-Info: | gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970"; logging-data="52881"; mail-complaints-to="abuse@iecc.com" |
Keywords: | syntax, design |
Posted-Date: | 21 Feb 2023 00:51:17 EST |
On Mon, 20 Feb 2023 15:09:18 +0000, Roger L Costello
<costello@mitre.org> wrote:
>Hello Compiler Experts!
>
>Scenario: you have a language that has a BNF. You write a statement in
>the language. It is a relatively simple, basic statement. The
>statement conforms to the BNF. To show its conformance, you write the
>derivation of the statement. Surprisingly, deriving the statement
>takes many, many rules. Does that signify that the language's syntax
>is too complex?
>
>/Roger
Not necessarily.
What makes a language complicated (not "complex") is ambiguity, not
the number of grammar rules needed to recognize some particular
expression.
If you are restricted to BNF ... i.e. your tool does not allow
specifying precedence ... then recognizing even relatively simple
arithmetic expressions can (perhaps recursively) involve several
rules.
George
Return to the
comp.compilers page.
Search the
comp.compilers archives again.