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


Groups > comp.lang.python > #63680

Re: With this artifact, everyone can easily invent new languages

References <629488f0-0516-492e-8dcf-1fea9a53e383@googlegroups.com>
Date 2014-01-11 13:17 +1100
Subject Re: With this artifact, everyone can easily invent new languages
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.5315.1389406662.18130.python-list@python.org> (permalink)

Show all headers | View raw


On Sat, Jan 11, 2014 at 11:59 AM, Simeon Chaos <simeon.chaos@gmail.com> wrote:
> All along, the design of programming languages is a complex task. Because we need to understand the esoteric compiler theory and technology, and one of the most critical and very difficult part is to define the rules of the new language and to parse with them.To solve this problem, there have been many theories , techniques and tools . These tools can be roughly divided into two categories: one is parser generator, another is to write the parser by hand with or without a parser library.
>

No tool will change the fact that the *design* of a language is a
complex task. Long before you get to implementing anything, you have
to decide what your language will look like, what its special features
are, how it distinguishes one thing from another, etc etc etc. That
work won't change based on the tool you use - or rather, if it DOES
change, it's because the tool is too restrictive. First write some
code in your new language, then and only then work out how to
implement an interpreter/compiler. The first part of the job is pretty
complex (and extremely important), and tools don't come into play till
the second.

ChrisA

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

With this artifact, everyone can easily invent new languages Simeon Chaos <simeon.chaos@gmail.com> - 2014-01-10 16:59 -0800
  Re: With this artifact, everyone can easily invent new languages Chris Angelico <rosuav@gmail.com> - 2014-01-11 13:17 +1100
    Re: With this artifact, everyone can easily invent new languages Simeon Chaos <simeon.chaos@gmail.com> - 2014-01-10 21:43 -0800
      Re: With this artifact, everyone can easily invent new languages "James Harris" <james.harris.1@gmail.com> - 2014-01-11 07:47 +0000
        Re: With this artifact, everyone can easily invent new languages Simeon Chaos <simeon.chaos@gmail.com> - 2014-01-11 01:12 -0800
          Re: With this artifact, everyone can easily invent new languages "James Harris" <james.harris.1@gmail.com> - 2014-01-11 15:45 +0000

csiph-web