Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
37 lines (26 sloc) 663 Bytes
use("core")
use("define")
use("comparison")
use("quotes")
use("patterns")
use("control-flow")
use("interpolation")
Atomy::AST open:
NthRef = Rubinius::AST::NthRef class:
include(NodeLike)
extend(SentientNode)
attributes(.which)
generate
macro($~(x: Primitive ? @value is-a(::Integer)? && @value > 0)):
NthRef new(node line, x value)
macro-quoter(r) [r, fs]:
flags = 0
when(fs include(.m)?):
flags |= Regexp::MULTILINE
when(fs include(.i)?):
flags |= Regexp::IGNORECASE
when(fs include(.x)?):
flags |= Regexp::EXTENDED
-- UTF8 by default
flags |= Regexp::KCODE_UTF8
`(::Regexp new(~interpolated(r), ~flags))
Something went wrong with that request. Please try again.