Vijitha Kumara wrote:What are the things included in explaining about creating General Programming Languages in the book?
Burk Hufnagel wrote:So then my pizza example would be considered a valid internal DSL - right?
Burk Hufnagel wrote:Dang. I thought I was getting the hang of it. So are you saying that when creating a DSL in Java we need to pass one or more Strings to an interpreter/renderer so that we're not using the Java syntax?
Burk Hufnagel wrote:Great question Neha! Please Terence, inquiring minds want to know. Is there a mailing list or Google group for DSL designer/implemeters that you're aware of? Or, perhaps some web site where they congregate to share mistakes and successes? If not maybe you could start some centered around the book's web site.
Burk Hufnagel wrote:So if I create a pizza builder class that has a "humane" interface and lets you order a pizza like this:
Pizza myPizza = PizzaBuilder.makeA(LARGE).pizza().with(THIN_CRUST).and().with(PEPPERONI).and().with(EXTRA_CHEESE);
I've actually created a DSL for placing a pizza order.
nehaa arora wrote:Wow! that is indeed an interesting view to problem solving! but it would need a lot of experience to know you are not hammering down your screws?!
Burk Hufnagel wrote:Do they include error handling (how to deal with improper syntax, or other errors) or do they assume correct input and leave the implementing the error handling as an exercise for the reader?Burk