Using Prolog as the AST

The author of this web content discusses their experience using Prolog as the abstract syntax tree (AST) in Coil, noting that it has been enjoyable. They provide an example of Coil code and its corresponding Prolog AST, highlighting the difference in relationship preservation between the two approaches. The author then explores the querying capabilities of Prolog, demonstrating how to retrieve variable names and values from the AST. They also mention creating helper predicates for more complex queries. Lastly, the author expresses their fascination with using Prolog and their future goal of developing a linter system for Coil using Prolog. Overall, the author finds working with Prolog in Coil to be exciting and looks forward to potential future applications.

https://marcellerusu.com/using_prolog_as_the_ast.html

To top