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


Groups > comp.compilers > #1853

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

From Seima Rao <seimarao@gmail.com>
Newsgroups comp.compilers
Subject Going backwards from a Language(or set of expressions) to a Grammar
Date 2017-04-16 19:01 +0530
Organization Compilers Central
Message-ID <17-04-014@comp.compilers> (permalink)

Show all headers | View raw


Hi,

    Is it possible generally to arrive at a grammar from
    a language or set of expressions ?

    How so?

--
Sincerely,
Seima Rao.
[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
  ...

Of course, that's not very useful if you want to parse other sentences.

If you're asking whether it's possible to come up with a grammar that
describes the language that a human would expect the sentences or
expressions to have come from, I recall some work but it wasn't very
satisfactory. -John]

Back to comp.compilers | Previous | Next — Next 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