OpenLanguage: abstract syntax trees

David Bovill david.bovill at gmail.com
Thu Apr 19 03:57:08 EDT 2018


I'm doing some research around languages for a new project. I'd like to get
a firmer handle on where Livecode as a language is going, and need to learn
a bit more computer science regarding compilers, abstract syntax trees and
language design.

So let's ask some dumb questions:

   1. Is there an abstract syntax tree (AST) for the Livecode language?
   2. Where can I buy it?
   3. How hard would it be to create one?

Google told me that I should use Coco, to generate an AST from the C++
code. But i don't trust Google, I much prefer Siri due to her business
model. My hope is that Mark Waddingham will explain this properly. I trust
Mark.

*Open Language*
My understanding is that we are steadily, if not slower than hoped, moving
towards open language in Livecode. It's something I need, hence my interest
in DSL's, AST's and compilers. I'd like to know more.

At the moment I believe from previous posts, it is possible to create DSL's
in Livecode, but you have to compile from source. I'd like to have a go at
that if possible, as it may well be a shorter path to creating my DSL, than
trying to get Siri to teach me about abstract syntax trees.

Mark any chance of sending the gift of your knowledge our way?



More information about the use-livecode mailing list