Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

38 lines (27 sloc) 0.665 kb
use("core")
use("define")
use("comparison")
use("quotes")
use("patterns")
use("control-flow")
use("interpolation")
use("array")
Atomy::AST open:
NthRef = Rubinius::AST::NthRef class:
include(NodeLike)
extend(SentientNode)
attributes(.which)
generate
macro($~(x: Primitive ? @value is-a(::Integer)? and @value > 0)):
NthRef new(node line, x value)
macro-quoter(r) [r, fs]:
flags = 0
when(.m is-in fs):
flags |= Regexp::MULTILINE
when(.i is-in fs):
flags |= Regexp::IGNORECASE
when(.x is-in fs):
flags |= Regexp::EXTENDED
-- UTF8 by default
flags |= Regexp::KCODE_UTF8
`(::Regexp new(~interpolated(r), ~flags))
Jump to Line
Something went wrong with that request. Please try again.