Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.compilers > #1869
| From | Stefan Monnier <monnier@iro.umontreal.ca> |
|---|---|
| Newsgroups | comp.compilers |
| Subject | Re: Going backwards from a Language(or set of expressions) to a Grammar |
| Date | 2017-05-06 22:02 -0400 |
| Organization | A noiseless patient Spider |
| Message-ID | <17-05-002@comp.compilers> (permalink) |
| References | <17-04-014@comp.compilers> |
> [Depends what you mean by language. If you mean from a set of sentences,
> sure, it's this:
> lang ::= sentence1 | sentence2 | ...
> sentence1 ::= tokens in sentence1
> sentence2 ::= tokens in sentence2
> ...
Indeed. Actually, there's a more concise grammar that also accepts those
same sentences:
lang = .*
-- Stefan
[Well, yeah, but that's a little overgeneral. -John]
Back to comp.compilers | Previous | Next — Previous in thread | Find similar | Unroll thread
Going backwards from a Language(or set of expressions) to a Grammar Seima Rao <seimarao@gmail.com> - 2017-04-16 19:01 +0530 Re: Going backwards from a Language(or set of expressions) to a Grammar Seima Rao <seimarao@gmail.com> - 2017-04-17 08:31 +0530 Re: Going backwards from a Language(or set of expressions) to a Grammar Tom <treid3@centurylink.net> - 2017-04-17 03:19 +0000 Re: Going backwards from a Language(or set of expressions) to a Grammar Alain Ketterlin <alain@universite-de-strasbourg.fr> - 2017-04-17 12:57 +0200 Re: Going backwards from a Language(or set of expressions) to a Grammar "Derek M. Jones" <derek@_NOSPAM_knosof.co.uk> - 2017-04-17 15:29 +0100 Re: Going backwards from a Language(or set of expressions) to a Grammar Stefan Monnier <monnier@iro.umontreal.ca> - 2017-05-06 22:02 -0400
csiph-web