Page 1 of 1

We also reviewed the following “prototypical” languages ​​expressed in algebraic form:

Posted: Thu Jan 30, 2025 6:09 am
by sujonkumar6300
The Hierarchy shows a significant growth in the complexity of the rule structure (or, put another way, a significant decrease in the restrictions on that structure). In it, it occurs (with some clarifications) that Lgs 3 ⊂≠ Lgs 2 ⊂≠ Lgs 1 ⊂≠ Lgs dec ⊂≠ Lgs 0 ⊂≠ Lgs grals .



L 1 : a m b n c k d i , for m, n, i, k ≥ 0 and independent of each other:
This is a Regular Grammar. This type of grammar has the same expressive power singapore email list to define languages ​​as the well-known regular expressions , and is sufficient to specify the “ scanners ” of the compilers, which are in charge of lexicographic analysis.

L 2 : a m b i c i d m , for m, i ≥ 0 that appear in pairs and are “nested”:
This is a “classic” example of a Context Free Grammar.

These types of grammars have the same expressive power to define languages ​​as the well-known syntax graphs , and are sufficient to specify the “ parsers ” of the compilers, which are in charge of the syntactic analysis.