Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.compilers > #1869

Re: Going backwards from a Language(or set of expressions) to a Grammar

Path csiph.com!feeder.erje.net!2.us.feeder.erje.net!feeder.usenetexpress.com!feeder1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news.iecc.com!.POSTED.news.iecc.com!nerds-end
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 Sat, 06 May 2017 22:02:16 -0400
Organization A noiseless patient Spider
Lines 16
Sender news@iecc.com
Approved comp.compilers@iecc.com
Message-ID <17-05-002@comp.compilers> (permalink)
References <17-04-014@comp.compilers>
Mime-Version 1.0
Content-Type text/plain
Injection-Info miucha.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970"; logging-data="35446"; mail-complaints-to="abuse@iecc.com"
Keywords parse, comment
Posted-Date 06 May 2017 22:36:58 EDT
X-submission-address compilers@iecc.com
X-moderator-address compilers-request@iecc.com
X-FAQ-and-archives http://compilers.iecc.com
Xref csiph.com comp.compilers:1869

Show key headers only | View raw


> [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


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