Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created June 6, 2023 00:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Whateverable/8072e53f693718ae298b62cecb9ada0e to your computer and use it in GitHub Desktop.
Save Whateverable/8072e53f693718ae298b62cecb9ada0e to your computer and use it in GitHub Desktop.
evalable6
say “1+2”.AST
RakuAST::StatementList.new(
RakuAST::Statement::Expression.new(
expression => RakuAST::ApplyInfix.new(
left => RakuAST::IntLiteral.new(1),
infix => RakuAST::Infix.new("+"),
right => RakuAST::IntLiteral.new(2)
)
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment