Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Regular grammar
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Extended regular grammars == An ''extended right-regular grammar'' is one in which all rules obey one of # ''A'' β ''w'', where ''A'' is a non-terminal in ''N'' and ''w'' is in a (possibly empty) string of terminals Ξ£<sup>*</sup> # ''A'' β ''wB'', where ''A'' and ''B'' are in ''N'' and ''w'' is in Ξ£<sup>*</sup>. Some authors call this type of grammar a ''right-regular grammar'' (or ''right-linear grammar'')<ref>{{cite book | isbn=0-201-02988-X | author=John E. Hopcroft and Jeffrey D. Ullman | title=Introduction to Automata Theory, Languages, and Computation | location=Reading/MA | publisher=Addison-Wesley | year=1979 | url-access=registration | url=https://archive.org/details/introductiontoau00hopc }} Here: p.217 (left, right-regular grammars as subclasses of [[context-free grammar]]s), p.79 (context-free grammars)</ref> and the type above a ''strictly right-regular grammar'' (or ''strictly right-linear grammar'').<ref>Hopcroft and Ullman 1979 (p.229, exercise 9.2) call it a normal form for right-linear grammars.</ref> An ''extended left-regular grammar'' is one in which all rules obey one of # ''A'' β ''w'', where ''A'' is a non-terminal in ''N'' and ''w'' is in Ξ£<sup>*</sup> # ''A'' β ''Bw'', where ''A'' and ''B'' are in ''N'' and ''w'' is in Ξ£<sup>*</sup>.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)