Swift's Abstract Syntax Tree
ankit.im
Swift's Abstract Syntax Tree
1–10 of 36 posts
Re: Swift's Abstract Syntax Tree
#2Re: Swift's Abstract Syntax Tree
#3That looks like lisp?
Re: Swift's Abstract Syntax Tree
#4Wish I could live the rest of my life in Sexp-land.
Re: Swift's Abstract Syntax Tree
#5That looks like lisp?
Re: Swift's Abstract Syntax Tree
#6That looks like lisp?
Re: Swift's Abstract Syntax Tree
#7I've discovered few weeks ago the same feature (a bit hidden) in GCC:
gcc -fdump-translation-unit=ast.txt file.c
It gives the AST in a flat map (parent/child with ids).Re: Swift's Abstract Syntax Tree
#8After learning lisp, I just feel like every other language is a weird set of macros. Looking at this AST confirms that. Wish I could live the rest of my life in Sexp-land.
I could add a stack-based language like Factor too.
Re: Swift's Abstract Syntax Tree
#9After learning lisp, I just feel like every other language is a weird set of macros. Looking at this AST confirms that. Wish I could live the rest of my life in Sexp-land.
Some of it's just habit, of course, but the lightness and simplicity also seem objective to me. It becomes hard to understand why everyone else keeps jumping through all those pointless hoops, you get ever more impatient and irritable with it all, and one day you fall prey to full smugweeniness.