What about a subset of C? Most people will recognize C and be able to make the connection between the source and the IR. A procedural language would be the most straight forward. If you make up a language, you may spend more time explaining the rules of the language and lose book space. Also if you do a procedural language that can do something somewhat useful the reader understands, the reader will get excited and want to do more on their own. Effectively the base becomes an logical Erector Set.
A Smalltalk or Java type language subset might be nice but overly complex, possibly loosing your reader. As long as we get the base and the pattern, we can build from there. Ecstatic that there will be an LLVM example for the book! W. -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Terence Parr Sent: Tuesday, June 23, 2009 7:34 PM To: [email protected] ANTLR Subject: [antlr-interest] ok, will build an LLVM example for book so, what kind of small language should I translate to LLVM IR format? Ter List: http://www.antlr.org/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address List: http://www.antlr.org/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "il-antlr-interest" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/il-antlr-interest?hl=en -~----------~----~----~----~------~----~------~--~---
