Hey

This i am having trouble trying to think what the grammar would look
like. Say i had the language:

10
1100
111000

How would i represent that in a grammar?

I've been thinking something like:

S->0S0
   | B

B-> lambda
  | 1B

>From one of my old grammars but that generates 010  or 00100 etc..
just having trouble getting my head into gear today! :)

--Phil

_______________________________________________
help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison

Reply via email to