• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Implementing General Programming Languages

 
Bartender
Posts: 4116
72
Mac TypeScript Chrome Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Terence,

What are the things included in explaining about creating General Programming Languages in the book?

Thanks,
 
Ranch Hand
Posts: 883
3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Vijitha,
Good question, we've been focusing on DSLs for most of the week. I'd forgotten the title even mentioned General Programming Languages. Did you look at the table of contents? I posted a link to the full one in another thread and it got copied into the Welcome-Terence-Parr thread at the top of the forum.

Burk
 
author
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Vijitha Kumara wrote:What are the things included in explaining about creating General Programming Languages in the book?



Implementing DSLs and general-purpose programming languages have a huge amount, hence, it makes a lot of sense to deal with them together in the implementation patterns book. The difference lies largely in degree. For example, in a simple scripting language, you might only have one scope of variables whereas in Java you have all sorts of nested scopes. The book identifies the various symbol table patterns common to most programming languages and scripting languages. Either you have a single monolithic scope, nested scopes like C, data aggregate scopes like C structs, and finally class hierarchies and object-oriented languages like C++. I think of configuration files such as property files as being scripts. There is a single global scope in which we put all the properties.
 
Burk Hufnagel
Ranch Hand
Posts: 883
3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Terence Parr wrote:Implementing DSLs and general-purpose programming languages have a huge amount, hence, it makes a lot of sense to deal with them together in the implementation patterns book.



Terrence,

I'm guessing you meant to say that DSLs and GPLs have a huge amount of overlap.

Burk
 
reply
    Bookmark Topic Watch Topic
  • New Topic