Created
January 11, 2019 10:28
-
-
Save pmurias/292b3ac5b672d9e690d823aca1ecc767 to your computer and use it in GitHub Desktop.
Ruby style dsls and ast tree correspondence.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Q::Block.new(Q::Statement::Expr.new(Q::Postfix::Call.new( | |
Q::Identifier.new("say"), | |
Q::Literal::Str.new("OH HAI") | |
))); | |
block { | |
expr { | |
call { | |
identifier "say"; | |
str "OH HAI"; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment