Sha256: 50082602e8bcafb47ded2c8ca475dbc1cd8b29096829f69487e82f1fa4c37596

Contents?: true

Size: 520 Bytes

Versions: 5

Compression:

Stored size: 520 Bytes

Contents

-- https://github.com/Cirru/cirru-gopher/blob/master/code/scope.cr

set a (int 2)

print (self)

set c (child)

under c
  under parent
    print a

print $ get c a

set c x (int 3)
print $ get c x

set just-print $ code
  print a

print just-print

eval (self) just-print
eval just-print

print (string "string with space")
print (string "escapes \n \"\\")

brackets ((((()))))

"eval" $ string "eval"

print (add $ (int 1) (int 2))

print $ unwrap $
  map (a $ int 1) (b $ int 2)

print a
  int 1
  , b c
  int 2
  , d

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
tdiary-4.2.1 vendor/bundle/ruby/2.2.0/gems/pygments.rb-0.6.3/vendor/pygments-main/tests/examplefiles/scope.cirru
pygments.rb-0.6.3 vendor/pygments-main/tests/examplefiles/scope.cirru
pygments.rb-0.6.2 vendor/pygments-main/tests/examplefiles/scope.cirru
pygments.rb-0.6.1 vendor/pygments-main/tests/examplefiles/scope.cirru
pygments.rb-0.6.0 vendor/pygments-main/tests/examplefiles/scope.cirru