Skip to content

Instantly share code, notes, and snippets.

@pmurias
pmurias / p6.p6
Last active August 10, 2016 15:55 — forked from zoffixznet/p6.p6
use NQPHLL;
grammar Rubyish::Grammar is HLL::Grammar {
token TOP { <statementlist> }
rule statementlist { [ <statement> \n+ ]* }
proto token statement {*}
token statement:sym<puts> {
<sym> <.ws> <?["]> <quote_EXPR: ':q'>