Programming Thread

Viewing single post

Started by the-pi-guy, Mar 13, 2016, 10:39 PM

previous topic - next topic

the-pi-guy

Well to be frank, what is a grammar?
They're a collection of rules that make words.  

S -> SS
S -> a

The words this grammar produces are a, aa, aaa, aaaa, aaaaa, aaaaaa, aaaaaa, etc onto infinity.