mirror of
https://github.com/alecthomas/chroma.git
synced 2025-03-29 21:56:56 +02:00
4182 lines
164 KiB
Plaintext
4182 lines
164 KiB
Plaintext
[
|
|
{"type":"CommentHashbang","value":"#!/usr/bin/env raku"},
|
|
{"type":"Text","value":"\n\n"},
|
|
{"type":"Keyword","value":"=begin"},
|
|
{"type":"LiteralStringDoc","value":" "},
|
|
{"type":"Keyword","value":"pod"},
|
|
{"type":"LiteralStringDoc","value":"\n"},
|
|
{"type":"Keyword","value":"=head1"},
|
|
{"type":"GenericHeading","value":" Some test data for "},
|
|
{"type":"Keyword","value":"B"},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"GenericStrong","value":"Chroma"},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"GenericHeading","value":"\n\n"},
|
|
{"type":"Keyword","value":"=head2"},
|
|
{"type":"GenericHeading","value":" Multi-line\nheading\n\n"},
|
|
{"type":"Keyword","value":"=head2"},
|
|
{"type":"GenericHeading","value":" One-line heading\n"},
|
|
{"type":"Keyword","value":"=begin code"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":":"},
|
|
{"type":"NameAttribute","value":"lang"},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"LiteralString","value":"go"},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"NameOther","value":"fmt"},
|
|
{"type":"Punctuation","value":"."},
|
|
{"type":"NameFunction","value":"Println"},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"LiteralString","value":"\"Hello from Go\""},
|
|
{"type":"Punctuation","value":")"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"Keyword","value":"=end code"},
|
|
{"type":"LiteralStringDoc","value":"\n\n"},
|
|
{"type":"Comment","value":" "},
|
|
{"type":"Keyword","value":"=begin"},
|
|
{"type":"LiteralStringDoc","value":" "},
|
|
{"type":"Keyword","value":"DESCRIPTION"},
|
|
{"type":"LiteralStringDoc","value":"\n Some description\n"},
|
|
{"type":"Comment","value":" "},
|
|
{"type":"Keyword","value":"=item"},
|
|
{"type":"LiteralStringDoc","value":" one item\n"},
|
|
{"type":"Keyword","value":" =end DESCRIPTION"},
|
|
{"type":"LiteralStringDoc","value":"\n\n"},
|
|
{"type":"Keyword","value":"=for"},
|
|
{"type":"LiteralStringDoc","value":" "},
|
|
{"type":"Keyword","value":"defn"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":":"},
|
|
{"type":"NameAttribute","value":"numbered"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"LiteralStringDoc","value":" We\n Need\n Numbers\n\n"},
|
|
{"type":"Keyword","value":"=end pod"},
|
|
{"type":"Text","value":"\n\n"},
|
|
{"type":"NameBuiltin","value":"say"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"$=pod"},
|
|
{"type":"Operator","value":"["},
|
|
{"type":"LiteralNumberInteger","value":"0"},
|
|
{"type":"Operator","value":"]."},
|
|
{"type":"NameBuiltin","value":"config"},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"LiteralString","value":"numbered"},
|
|
{"type":"Punctuation","value":"\u003e;"},
|
|
{"type":"Text","value":"\n\n"},
|
|
{"type":"Keyword","value":"sub"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameFunction","value":"f1"},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"NameVariable","value":"$a"},
|
|
{"type":"Punctuation","value":")"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"NameVariable","value":"$a"},
|
|
{"type":"Operator","value":"+"},
|
|
{"type":"LiteralNumberInteger","value":"1"},
|
|
{"type":"Punctuation","value":";"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"CommentSingle","value":"#=\u003e Comment looking like a pod declaration, but with a closing bracket!"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"Text","value":"\n\n"},
|
|
{"type":"LiteralNumberInteger","value":"2"},
|
|
{"type":"Operator","value":".\u0026"},
|
|
{"type":"NameFunction","value":"f1"},
|
|
{"type":"Punctuation","value":";"},
|
|
{"type":"Text","value":"\n\n"},
|
|
{"type":"Keyword","value":"sub"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameFunction","value":"f2"},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"NameVariable","value":"$a"},
|
|
{"type":"Operator","value":","},
|
|
{"type":"NameVariable","value":"$b"},
|
|
{"type":"Punctuation","value":")"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"NameVariable","value":"$a"},
|
|
{"type":"Operator","value":"+"},
|
|
{"type":"LiteralNumberInteger","value":"1"},
|
|
{"type":"Punctuation","value":";"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"Text","value":"\n\n"},
|
|
{"type":"LiteralNumberInteger","value":"2"},
|
|
{"type":"Operator","value":".\u0026"},
|
|
{"type":"NameFunction","value":"f2"},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"LiteralNumberInteger","value":"3"},
|
|
{"type":"Punctuation","value":");"},
|
|
{"type":"Text","value":"\n\n"},
|
|
{"type":"NameFunction","value":"Module::function"},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"NameVariable","value":"$var"},
|
|
{"type":"Punctuation","value":");"},
|
|
{"type":"Text","value":"\n\n"},
|
|
{"type":"Keyword","value":"#| "},
|
|
{"type":"LiteralStringDoc","value":"Fibonacci with Multiple dispatch\n"},
|
|
{"type":"Keyword","value":"multi"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Keyword","value":"sub"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameFunction","value":"fib"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"LiteralNumberInteger","value":"0"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Keyword","value":"--\u003e"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"LiteralNumberInteger","value":"0"},
|
|
{"type":"Punctuation","value":")"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"{}"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"Keyword","value":"multi"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Keyword","value":"sub"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameFunction","value":"fib"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"LiteralNumberInteger","value":"1"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Keyword","value":"--\u003e"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"LiteralNumberInteger","value":"1"},
|
|
{"type":"Punctuation","value":")"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"{}"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"Keyword","value":"multi"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Keyword","value":"sub"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameFunction","value":"fib"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"Text","value":"\\"},
|
|
{"type":"Name","value":"n"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Keyword","value":"where"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"*"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"\u003e"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"LiteralNumberInteger","value":"1"},
|
|
{"type":"Punctuation","value":")"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"NameFunction","value":"fib"},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"Name","value":"n"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"-"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"LiteralNumberInteger","value":"1"},
|
|
{"type":"Punctuation","value":")"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"+"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameFunction","value":"fib"},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"Name","value":"n"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"-"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"LiteralNumberInteger","value":"2"},
|
|
{"type":"Punctuation","value":")"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"NameBuiltin","value":"say"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Name","value":"fib"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"LiteralNumberInteger","value":"10"},
|
|
{"type":"Punctuation","value":";"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"CommentSingle","value":"# OUTPUT: 55"},
|
|
{"type":"Text","value":"\n\n"},
|
|
{"type":"Keyword","value":"#| B"},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"GenericStrong","value":"A "},
|
|
{"type":"Keyword","value":"C"},
|
|
{"type":"Punctuation","value":"\u003c\u003c"},
|
|
{"type":"LiteralStringOther","value":"uh "},
|
|
{"type":"Keyword","value":"U"},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"GenericUnderline","value":"Shape"},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"LiteralStringOther","value":" umm"},
|
|
{"type":"Punctuation","value":"\u003e\u003e"},
|
|
{"type":"GenericStrong","value":" role"},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"LiteralStringDoc","value":"\n"},
|
|
{"type":"Keyword","value":"role"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameClass","value":"Shape"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"Keyword","value":"method"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameFunction","value":"area"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"..."},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"Text","value":"\n\n "},
|
|
{"type":"Keyword","value":"method"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameFunction","value":"print_area"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"NameBuiltin","value":"say"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"\""},
|
|
{"type":"LiteralStringDouble","value":"Area of "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"NameBuiltin","value":"self"},
|
|
{"type":"Operator","value":".^"},
|
|
{"type":"NameBuiltin","value":"name"},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"LiteralStringDouble","value":" is "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"NameBuiltin","value":"self"},
|
|
{"type":"Operator","value":"."},
|
|
{"type":"NameFunction","value":"area"},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"LiteralStringDouble","value":"."},
|
|
{"type":"Punctuation","value":"\";"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"Text","value":"\n\n"},
|
|
{"type":"Keyword","value":"class"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameClass","value":"Rectangle"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Keyword","value":"does"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameClass","value":"Shape"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"Keyword","value":"has"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"$.width"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Keyword","value":"is"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Keyword","value":"required"},
|
|
{"type":"Punctuation","value":";"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"Keyword","value":"has"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"$.height"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Keyword","value":"is"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Keyword","value":"required"},
|
|
{"type":"Punctuation","value":";"},
|
|
{"type":"Text","value":"\n\n "},
|
|
{"type":"Keyword","value":"method"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameFunction","value":"area"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"NameVariable","value":"$!width"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"*"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"$!height"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"Text","value":"\n\n"},
|
|
{"type":"Name","value":"Rectangle"},
|
|
{"type":"Operator","value":"."},
|
|
{"type":"NameBuiltin","value":"new"},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"LiteralString","value":"width"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"=\u003e"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"LiteralNumberInteger","value":"5"},
|
|
{"type":"Operator","value":","},
|
|
{"type":"Text","value":" "},
|
|
{"type":"LiteralString","value":"height"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"=\u003e"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"LiteralNumberInteger","value":"7"},
|
|
{"type":"Punctuation","value":")"},
|
|
{"type":"Operator","value":"."},
|
|
{"type":"NameFunction","value":"print_area"},
|
|
{"type":"Punctuation","value":";"},
|
|
{"type":"Text","value":"\n\n"},
|
|
{"type":"CommentSingle","value":"# Inifinite and lazy list"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"Keyword","value":"my"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"@fib"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"="},
|
|
{"type":"Text","value":" "},
|
|
{"type":"LiteralNumberInteger","value":"0"},
|
|
{"type":"Operator","value":","},
|
|
{"type":"Text","value":" "},
|
|
{"type":"LiteralNumberInteger","value":"1"},
|
|
{"type":"Operator","value":","},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"*"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"+"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"*"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"..."},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameConstant","value":"∞"},
|
|
{"type":"Punctuation","value":";"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"NameBuiltin","value":"say"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"@fib"},
|
|
{"type":"Operator","value":"[^"},
|
|
{"type":"LiteralNumberInteger","value":"11"},
|
|
{"type":"Operator","value":"]"},
|
|
{"type":"Punctuation","value":";"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"CommentSingle","value":"# OUTPUT: (0 1 1 2 3 5 8 13 21 34 55)"},
|
|
{"type":"Text","value":"\n\n"},
|
|
{"type":"CommentSingle","value":"# Feed operator"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"NameVariable","value":"@fib"},
|
|
{"type":"Operator","value":"[^"},
|
|
{"type":"LiteralNumberInteger","value":"20"},
|
|
{"type":"Operator","value":"]"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"==\u003e"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameBuiltin","value":"grep"},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"NameVariable","value":"\u0026is-prime"},
|
|
{"type":"Punctuation","value":")"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"==\u003e"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameBuiltin","value":"say"},
|
|
{"type":"Punctuation","value":"();"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"CommentSingle","value":"# OUTPUT: (2 3 5 13 89 233 1597)"},
|
|
{"type":"Text","value":"\n\n"},
|
|
{"type":"CommentSingle","value":"# Function composition"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"Keyword","value":"my"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"\u0026reverse_primes"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"="},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"\u0026reverse"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"∘"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"\u0026grep"},
|
|
{"type":"Operator","value":"."},
|
|
{"type":"NameBuiltin","value":"assuming"},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"NameVariable","value":"\u0026is-prime"},
|
|
{"type":"Punctuation","value":");"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"NameBuiltin","value":"say"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Name","value":"reverse_primes"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"^"},
|
|
{"type":"LiteralNumberInteger","value":"20"},
|
|
{"type":"Punctuation","value":";"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"CommentSingle","value":"# OUTPUT: (19 17 13 11 7 5 3 2)"},
|
|
{"type":"Text","value":"\n\n"},
|
|
{"type":"Keyword","value":"my"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"@a"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"="},
|
|
{"type":"Text","value":" "},
|
|
{"type":"LiteralNumberInteger","value":"1"},
|
|
{"type":"Operator","value":".."},
|
|
{"type":"LiteralNumberInteger","value":"4"},
|
|
{"type":"Punctuation","value":";"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"Keyword","value":"my"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"@b"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"="},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringSingle","value":"a"},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"Operator","value":".."},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringSingle","value":"d"},
|
|
{"type":"Punctuation","value":"';"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"CommentSingle","value":"# Zip two lists using Z meta operator"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"NameBuiltin","value":"say"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"@a"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"OperatorWord","value":"Z"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"@b"},
|
|
{"type":"Punctuation","value":";"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"CommentSingle","value":"# OUTPUT: ((1 a) (2 b) (3 c) (4 d))"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"NameBuiltin","value":"say"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"@a"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"OperatorWord","value":"Z"},
|
|
{"type":"Operator","value":"=\u003e"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"@b"},
|
|
{"type":"Punctuation","value":";"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"CommentSingle","value":"# OUTPUT: (1 =\u003e a 2 =\u003e b 3 =\u003e c 4 =\u003e d)"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"NameBuiltin","value":"say"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"["},
|
|
{"type":"Text","value":"\\"},
|
|
{"type":"OperatorWord","value":"R"},
|
|
{"type":"Operator","value":"\u003c]"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"LiteralNumberInteger","value":"1"},
|
|
{"type":"Operator","value":","},
|
|
{"type":"Text","value":" "},
|
|
{"type":"LiteralNumberInteger","value":"5"},
|
|
{"type":"Operator","value":","},
|
|
{"type":"Text","value":" "},
|
|
{"type":"LiteralNumberInteger","value":"6"},
|
|
{"type":"Punctuation","value":";"},
|
|
{"type":"Text","value":"\n\n"},
|
|
{"type":"CommentSingle","value":"# Hyper Operators"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"NameBuiltin","value":"say"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"@b"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"«~»"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"@a"},
|
|
{"type":"Punctuation","value":";"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"CommentSingle","value":"# OUTPUT: [a1 b2 c3 d4]"},
|
|
{"type":"Text","value":"\n\n"},
|
|
{"type":"CommentSingle","value":"# Junctions"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"NameBuiltin","value":"say"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringSingle","value":"Find all the words starting with a lowercase vowel"},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"Operator","value":"."},
|
|
{"type":"NameBuiltin","value":"words"},
|
|
{"type":"Operator","value":"."},
|
|
{"type":"NameBuiltin","value":"grep"},
|
|
{"type":"Operator","value":":"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"*."},
|
|
{"type":"NameBuiltin","value":"starts-with"},
|
|
{"type":"Operator","value":":"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameBuiltin","value":"any"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"LiteralString","value":"a e i o u"},
|
|
{"type":"Punctuation","value":"\u003e;"},
|
|
{"type":"Text","value":"\n\n"},
|
|
{"type":"Keyword","value":"sub"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameBuiltin","value":"MAIN"},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"KeywordType","value":"Str"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"$file"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Keyword","value":"where"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"*."},
|
|
{"type":"KeywordType","value":"IO"},
|
|
{"type":"Operator","value":"."},
|
|
{"type":"NameBuiltin","value":"f"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"="},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringSingle","value":"file.dat"},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"Operator","value":","},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Keyword","value":"#= "},
|
|
{"type":"LiteralStringDoc","value":"an existing file to frobnicate\n"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"KeywordType","value":"Int"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":":"},
|
|
{"type":"LiteralString","value":"size"},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"Operator","value":":"},
|
|
{"type":"NameVariable","value":"$length"},
|
|
{"type":"Punctuation","value":")"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"="},
|
|
{"type":"Text","value":" "},
|
|
{"type":"LiteralNumberInteger","value":"24"},
|
|
{"type":"Operator","value":","},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Keyword","value":"#= "},
|
|
{"type":"LiteralStringDoc","value":"length/size needed for frobnication\n"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"KeywordType","value":"Bool"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":":"},
|
|
{"type":"NameVariable","value":"$verbose"},
|
|
{"type":"Operator","value":","},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Keyword","value":"#= "},
|
|
{"type":"LiteralStringDoc","value":"required verbosity\n"},
|
|
{"type":"Punctuation","value":")"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"NameBuiltin","value":"say"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"$length"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Keyword","value":"if"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"$length"},
|
|
{"type":"Operator","value":"."},
|
|
{"type":"NameBuiltin","value":"defined"},
|
|
{"type":"Punctuation","value":";"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"NameBuiltin","value":"say"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"$file"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Keyword","value":"if"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"$file"},
|
|
{"type":"Operator","value":"."},
|
|
{"type":"NameBuiltin","value":"defined"},
|
|
{"type":"Punctuation","value":";"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"NameBuiltin","value":"say"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringSingle","value":"Verbosity "},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"Operator","value":","},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"NameVariable","value":"$verbose"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"??"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringSingle","value":"on"},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"!!"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringSingle","value":"off"},
|
|
{"type":"Punctuation","value":"');"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"Text","value":"\n\n"},
|
|
{"type":"Keyword","value":"#|"},
|
|
{"type":"Punctuation","value":"「"},
|
|
{"type":"LiteralStringDoc","value":"[\nINI Parser\n"},
|
|
{"type":"Keyword","value":"C"},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"LiteralStringOther","value":"SomeCode"},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"LiteralStringDoc","value":"\n=head1 heading\n]"},
|
|
{"type":"Punctuation","value":"」"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"Keyword","value":"grammar"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameClass","value":"INIParser"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"Keyword","value":"token"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameFunction","value":"TOP"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"NameFunction","value":"block"},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"NameFunction","value":"section"},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"Operator","value":"*"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"Keyword","value":"token"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameFunction","value":"section"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"NameFunction","value":"header"},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"NameFunction","value":"block"},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"Keyword","value":"token"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameFunction","value":"header"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringSingle","value":"["},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Operator","value":"~"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringSingle","value":"]"},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"LiteralStringEscape","value":"\\w"},
|
|
{"type":"Operator","value":"+"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"LiteralStringEscape","value":"\\n"},
|
|
{"type":"Operator","value":"+"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"Keyword","value":"token"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameFunction","value":"block"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"[\u003c"},
|
|
{"type":"NameFunction","value":"pair"},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Operator","value":"|"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"NameFunction","value":"comment"},
|
|
{"type":"Punctuation","value":"\u003e]"},
|
|
{"type":"Operator","value":"*"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"Keyword","value":"rule"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameFunction","value":"pair"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"NameFunction","value":"key"},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringSingle","value":"="},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"NameFunction","value":"value"},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"Keyword","value":"token"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameFunction","value":"comment"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringSingle","value":";"},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"LiteralStringEscape","value":"\\N"},
|
|
{"type":"Operator","value":"*"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"LiteralStringEscape","value":"\\n"},
|
|
{"type":"Operator","value":"+"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"Keyword","value":"token"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameFunction","value":"key"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"LiteralStringEscape","value":"\\w"},
|
|
{"type":"Operator","value":"+"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"Keyword","value":"token"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameFunction","value":"value"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"Operator","value":"-"},
|
|
{"type":"Punctuation","value":"["},
|
|
{"type":"LiteralStringEscape","value":"\\n"},
|
|
{"type":"LiteralStringRegex","value":" ;"},
|
|
{"type":"Punctuation","value":"]\u003e"},
|
|
{"type":"Operator","value":"+"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"Text","value":"\n\n"},
|
|
{"type":"Keyword","value":"my"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"$match"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"="},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Name","value":"INIParser"},
|
|
{"type":"Operator","value":"."},
|
|
{"type":"NameBuiltin","value":"parse"},
|
|
{"type":"Operator","value":":"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Keyword","value":"q"},
|
|
{"type":"LiteralStringAffix","value":":to"},
|
|
{"type":"Punctuation","value":"/END/;"},
|
|
{"type":"LiteralString","value":"\n; Comment\nkey1=value1\nkey2 = value2\n\n; Section 1\n[section1]\nkey3=value3\n"},
|
|
{"type":"Punctuation","value":"END"},
|
|
{"type":"Text","value":"\n\n"},
|
|
{"type":"Keyword","value":"grammar"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameClass","value":"Nested"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"Keyword","value":"token"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameFunction","value":"TOP"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"NameFunction","value":"block"},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"NameFunction","value":"section"},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"Operator","value":"*"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Keyword","value":"if"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"$/"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameBuiltin","value":"say"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"$/"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"Keyword","value":"token"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameFunction","value":"block"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"Operator","value":"?"},
|
|
{"type":"OperatorWord","value":"before"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"Operator","value":"."},
|
|
{"type":"Punctuation","value":"["},
|
|
{"type":"LiteralStringEscape","value":"\\"},
|
|
{"type":"LiteralStringRegex","value":")"},
|
|
{"type":"LiteralStringEscape","value":"\\"},
|
|
{"type":"LiteralStringRegex","value":"]"},
|
|
{"type":"LiteralStringEscape","value":"\\"},
|
|
{"type":"LiteralStringRegex","value":"}"},
|
|
{"type":"Punctuation","value":"]\u003e\u003e"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"Text","value":"\n\n "},
|
|
{"type":"Keyword","value":"token"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameFunction","value":"you_are_here"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"Operator","value":"?"},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameFunction","value":"nqp::getlexdyn"},
|
|
{"type":"Punctuation","value":"('"},
|
|
{"type":"LiteralStringSingle","value":"$?FILES"},
|
|
{"type":"Punctuation","value":"')"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"~~"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"/"},
|
|
{"type":"LiteralStringEscape","value":"\\"},
|
|
{"type":"LiteralStringRegex","value":".setting"},
|
|
{"type":"NameEntity","value":"$"},
|
|
{"type":"Punctuation","value":"/"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"}\u003e"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Operator","value":"||"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"LiteralStringEscape","value":"\\w"},
|
|
{"type":"Operator","value":"+"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringSingle","value":"some text"},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"LiteralStringEscape","value":"\\d"},
|
|
{"type":"Operator","value":"+"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameBuiltin","value":"self"},
|
|
{"type":"Operator","value":"."},
|
|
{"type":"NameFunction","value":"typed_panic"},
|
|
{"type":"Punctuation","value":"('"},
|
|
{"type":"LiteralStringSingle","value":"X::Syntax::Reserved"},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"Operator","value":","},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"LiteralString","value":"reserved"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"=\u003e"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringSingle","value":"use of {YOU_ARE_HERE} outside of a setting"},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"Operator","value":","},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"LiteralString","value":"instead"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"=\u003e"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringSingle","value":" (use whitespace if not a setting, or rename file with .setting extension?)"},
|
|
{"type":"Punctuation","value":"');"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"Text","value":"\n\n "},
|
|
{"type":"Keyword","value":"rule"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameFunction","value":"statement_control"},
|
|
{"type":"Punctuation","value":":"},
|
|
{"type":"NameAttribute","value":"sym"},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"LiteralString","value":"if"},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"NameVariable","value":"$\u003csym\u003e"},
|
|
{"type":"Operator","value":"="},
|
|
{"type":"Punctuation","value":"["},
|
|
{"type":"LiteralStringRegex","value":"if"},
|
|
{"type":"Operator","value":"|"},
|
|
{"type":"LiteralStringRegex","value":"with"},
|
|
{"type":"Punctuation","value":"]\u003c"},
|
|
{"type":"Operator","value":"."},
|
|
{"type":"NameFunction","value":"kok"},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"{}"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"NameFunction","value":"xblock"},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"Operator","value":"~"},
|
|
{"type":"NameVariable","value":"$\u003csym\u003e"},
|
|
{"type":"Operator","value":"["},
|
|
{"type":"LiteralNumberInteger","value":"0"},
|
|
{"type":"Operator","value":"]"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"~~"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"/"},
|
|
{"type":"LiteralStringRegex","value":"with"},
|
|
{"type":"Punctuation","value":"/"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"??"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"$PBLOCK_REQUIRED_TOPIC"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"!!"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"$PBLOCK_NO_TOPIC"},
|
|
{"type":"Punctuation","value":")\u003e"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"Punctuation","value":"["},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"Punctuation","value":"["},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"Operator","value":"|"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringSingle","value":"else"},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringEscape","value":"\\h"},
|
|
{"type":"Operator","value":"*"},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringSingle","value":"if"},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"Operator","value":"."},
|
|
{"type":"NameFunction","value":"typed_panic"},
|
|
{"type":"Punctuation","value":":"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringSingle","value":"X::Syntax::Malformed::Elsif"},
|
|
{"type":"Punctuation","value":"'\u003e"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"Operator","value":"|"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringSingle","value":"elif"},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"$/"},
|
|
{"type":"Operator","value":"."},
|
|
{"type":"NameFunction","value":"typed_panic"},
|
|
{"type":"Punctuation","value":"('"},
|
|
{"type":"LiteralStringSingle","value":"X::Syntax::Malformed::Elsif"},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"Operator","value":","},
|
|
{"type":"Text","value":" "},
|
|
{"type":"LiteralString","value":"what"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"=\u003e"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"\""},
|
|
{"type":"LiteralStringDouble","value":"elif"},
|
|
{"type":"Punctuation","value":"\")"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"Operator","value":"|"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"NameVariable","value":"$\u003csym\u003e"},
|
|
{"type":"Operator","value":"="},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringSingle","value":"elsif"},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"NameFunction","value":"xblock"},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"Operator","value":"|"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"NameVariable","value":"$\u003csym\u003e"},
|
|
{"type":"Operator","value":"="},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringSingle","value":"orwith"},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"NameFunction","value":"xblock"},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"NameVariable","value":"$PBLOCK_REQUIRED_TOPIC"},
|
|
{"type":"Punctuation","value":")\u003e"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"Punctuation","value":"]"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"Punctuation","value":"]"},
|
|
{"type":"Operator","value":"*"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"Punctuation","value":"{}"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"Punctuation","value":"["},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringSingle","value":"else"},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"NameVariable","value":"else"},
|
|
{"type":"Operator","value":"=."},
|
|
{"type":"NameFunction","value":"pblock"},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"Operator","value":"~"},
|
|
{"type":"NameVariable","value":"$\u003csym\u003e"},
|
|
{"type":"Operator","value":"[-"},
|
|
{"type":"LiteralNumberInteger","value":"1"},
|
|
{"type":"Operator","value":"]"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"~~"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"/"},
|
|
{"type":"LiteralStringRegex","value":"with"},
|
|
{"type":"Punctuation","value":"/"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"??"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"$PBLOCK_REQUIRED_TOPIC"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"!!"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"$PBLOCK_NO_TOPIC"},
|
|
{"type":"Punctuation","value":")\u003e"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"Punctuation","value":"]"},
|
|
{"type":"Operator","value":"?"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"Text","value":"\n\n "},
|
|
{"type":"Keyword","value":"token"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameFunction","value":"special_variable"},
|
|
{"type":"Punctuation","value":":"},
|
|
{"type":"NameAttribute","value":"sym"},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"LiteralString","value":"$\\\\"},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringSingle","value":"$"},
|
|
{"type":"LiteralStringEscape","value":"\\"},
|
|
{"type":"LiteralStringSingle","value":"\\"},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"Operator","value":"?"},
|
|
{"type":"OperatorWord","value":"before"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"LiteralStringEscape","value":"\\s"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Operator","value":"|"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringSingle","value":","},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Operator","value":"|"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringSingle","value":"="},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Operator","value":"|"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"Operator","value":"."},
|
|
{"type":"NameFunction","value":"terminator"},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"Operator","value":"."},
|
|
{"type":"NameFunction","value":"obsvar"},
|
|
{"type":"Punctuation","value":"('"},
|
|
{"type":"LiteralStringSingle","value":"$"},
|
|
{"type":"LiteralStringEscape","value":"\\"},
|
|
{"type":"LiteralStringSingle","value":"\\"},
|
|
{"type":"Punctuation","value":"')\u003e"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"Text","value":"\n\n "},
|
|
{"type":"Keyword","value":"token"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameFunction","value":"type_declarator"},
|
|
{"type":"Punctuation","value":":"},
|
|
{"type":"NameAttribute","value":"sym"},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"LiteralString","value":"enum"},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"Operator","value":":"},
|
|
{"type":"KeywordDeclaration","value":"my"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariableGlobal","value":"%*MYSTERY"},
|
|
{"type":"Punctuation","value":";"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"Punctuation","value":"["},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"Operator","value":"?"},
|
|
{"type":"Punctuation","value":"["},
|
|
{"type":"LiteralStringRegex","value":"\u003c(«"},
|
|
{"type":"Punctuation","value":"]\u003e"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"NameFunction","value":"term"},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"Operator","value":"."},
|
|
{"type":"OperatorWord","value":"ws"},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Operator","value":"||"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"Operator","value":"."},
|
|
{"type":"NameFunction","value":"panic"},
|
|
{"type":"Punctuation","value":":"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringSingle","value":"An enum must supply an expression using \u003c\u003e, «», or ()"},
|
|
{"type":"Punctuation","value":"'\u003e"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"]"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"Operator","value":"."},
|
|
{"type":"NameFunction","value":"explain_mystery"},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"Operator","value":"."},
|
|
{"type":"NameFunction","value":"cry_sorrows"},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"Operator","value":"?"},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"Keyword","value":"elsif"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"!"},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"NameVariable","value":"$text"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"~~"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"/"},
|
|
{"type":"NameEntity","value":"^"},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"LiteralStringEscape","value":"\\w"},
|
|
{"type":"Operator","value":"|"},
|
|
{"type":"LiteralStringEscape","value":"\\"},
|
|
{"type":"LiteralStringRegex","value":":"},
|
|
{"type":"Punctuation","value":")"},
|
|
{"type":"Operator","value":"+"},
|
|
{"type":"NameEntity","value":"$"},
|
|
{"type":"Punctuation","value":"/)"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"NameVariable","value":"$/"},
|
|
{"type":"Operator","value":"."},
|
|
{"type":"NameFunction","value":"obs"},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"NameVariable","value":"$bad"},
|
|
{"type":"Operator","value":","},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"\""},
|
|
{"type":"NameVariable","value":"$sigil"},
|
|
{"type":"LiteralStringDouble","value":"\\("},
|
|
{"type":"NameVariable","value":"$text"},
|
|
{"type":"LiteralStringDouble","value":") for hard ref or "},
|
|
{"type":"NameVariable","value":"$sigil"},
|
|
{"type":"LiteralStringDouble","value":"\\::("},
|
|
{"type":"NameVariable","value":"$text"},
|
|
{"type":"LiteralStringDouble","value":") for symbolic ref"},
|
|
{"type":"Punctuation","value":"\");"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"Punctuation","value":"}\u003e"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"Text","value":"\n\n "},
|
|
{"type":"Keyword","value":"token"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameFunction","value":"rad_number"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"Operator","value":":"},
|
|
{"type":"KeywordDeclaration","value":"my"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"$rad_digits"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":":="},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Keyword","value":"token"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameFunction","value":"rad_digits"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"NameFunction","value":"rad_digit"},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"Operator","value":"+"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"["},
|
|
{"type":"LiteralStringRegex","value":" _ "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"NameFunction","value":"rad_digit"},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"Operator","value":"+"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"]"},
|
|
{"type":"Operator","value":"*"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"};"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"NameFunction","value":"O"},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"Operator","value":"|"},
|
|
{"type":"NameVariable","value":"%methodcall"},
|
|
{"type":"Punctuation","value":")\u003e"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"NameVariable","value":"O"},
|
|
{"type":"Operator","value":"=."},
|
|
{"type":"NameFunction","value":"revO"},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"NameVariable","value":"$\u003cinfixish\u003e"},
|
|
{"type":"Punctuation","value":")\u003e"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"NameVariable","value":"code"},
|
|
{"type":"Operator","value":"="},
|
|
{"type":"Punctuation","value":"["},
|
|
{"type":"LiteralStringRegex","value":"A"},
|
|
{"type":"Operator","value":".."},
|
|
{"type":"LiteralStringRegex","value":"Z"},
|
|
{"type":"Punctuation","value":"]\u003e"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"Text","value":"\n\n "},
|
|
{"type":"Keyword","value":"token"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameFunction","value":"pod_balanced_braces"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"Operator","value":"?"},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameFunction","value":"nqp::chars"},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"NameVariable","value":"$\u003cstart\u003e"},
|
|
{"type":"Punctuation","value":")"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"=="},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariableGlobal","value":"$*POD_ANGLE_COUNT"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"||"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariableGlobal","value":"$*POD_ANGLE_COUNT"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"\u003c"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"LiteralNumberInteger","value":"0"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"}\u003e"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"Text","value":"\n\n "},
|
|
{"type":"Keyword","value":"token"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameFunction","value":"routine_declarator"},
|
|
{"type":"Punctuation","value":":"},
|
|
{"type":"NameAttribute","value":"sym"},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"LiteralString","value":"macro"},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"Operator","value":":"},
|
|
{"type":"KeywordDeclaration","value":"my"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariableGlobal","value":"$*LINE_NO"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":":="},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Name","value":"HLL::Compiler"},
|
|
{"type":"Operator","value":"."},
|
|
{"type":"NameFunction","value":"lineof"},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"NameBuiltin","value":"self"},
|
|
{"type":"Operator","value":"."},
|
|
{"type":"NameBuiltin","value":"orig"},
|
|
{"type":"Punctuation","value":"()"},
|
|
{"type":"Operator","value":","},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameBuiltin","value":"self"},
|
|
{"type":"Operator","value":"."},
|
|
{"type":"NameBuiltin","value":"from"},
|
|
{"type":"Punctuation","value":"()"},
|
|
{"type":"Operator","value":","},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":":"},
|
|
{"type":"LiteralString","value":"cache"},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"LiteralNumberInteger","value":"1"},
|
|
{"type":"Punctuation","value":"));"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"Operator","value":"!!"},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameFunction","value":"nqp::rebless"},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"NameVariable","value":"$/"},
|
|
{"type":"Operator","value":","},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameBuiltin","value":"self"},
|
|
{"type":"Operator","value":"."},
|
|
{"type":"NameFunction","value":"slang_grammar"},
|
|
{"type":"Punctuation","value":"('"},
|
|
{"type":"LiteralStringSingle","value":"MAIN"},
|
|
{"type":"Punctuation","value":"'));"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"LiteralNumberInteger","value":"1"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"}\u003e"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"NameFunction","value":"sym"},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"Operator","value":"."},
|
|
{"type":"NameFunction","value":"end_keyword"},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"NameFunction","value":"macro_def"},
|
|
{"type":"Punctuation","value":"()\u003e"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"Text","value":"\n\n "},
|
|
{"type":"Keyword","value":"token"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameFunction","value":"routine_declarator"},
|
|
{"type":"Punctuation","value":":"},
|
|
{"type":"NameAttribute","value":"sym"},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"LiteralString","value":"macro"},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"Operator","value":":"},
|
|
{"type":"KeywordDeclaration","value":"my"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariableGlobal","value":"$*LINE_NO"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":":="},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Name","value":"HLL::Compiler"},
|
|
{"type":"Operator","value":"."},
|
|
{"type":"NameFunction","value":"lineof"},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"NameBuiltin","value":"self"},
|
|
{"type":"Operator","value":"."},
|
|
{"type":"NameBuiltin","value":"orig"},
|
|
{"type":"Punctuation","value":"()"},
|
|
{"type":"Operator","value":","},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameBuiltin","value":"self"},
|
|
{"type":"Operator","value":"."},
|
|
{"type":"NameBuiltin","value":"from"},
|
|
{"type":"Punctuation","value":"()"},
|
|
{"type":"Operator","value":","},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":":"},
|
|
{"type":"LiteralString","value":"cache"},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"LiteralNumberInteger","value":"1"},
|
|
{"type":"Punctuation","value":"));"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"NameFunction","value":"sym"},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"Operator","value":"."},
|
|
{"type":"NameFunction","value":"end_keyword"},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"NameFunction","value":"macro_def"},
|
|
{"type":"Punctuation","value":"()\u003e"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"Text","value":"\n\n "},
|
|
{"type":"Keyword","value":"token"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameFunction","value":"integer"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"Operator","value":"!!"},
|
|
{"type":"OperatorWord","value":"before"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"['"},
|
|
{"type":"LiteralStringSingle","value":"."},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"Operator","value":"?"},
|
|
{"type":"OperatorWord","value":"before"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"LiteralStringEscape","value":"\\s"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Operator","value":"|"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringSingle","value":","},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Operator","value":"|"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringSingle","value":"="},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Operator","value":"|"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringSingle","value":":"},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"Operator","value":"!"},
|
|
{"type":"OperatorWord","value":"before"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"NameFunction","value":"coloncircumfix"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"NameVariable","value":"OPER"},
|
|
{"type":"Operator","value":"="},
|
|
{"type":"NameFunction","value":"prefix"},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Operator","value":"|"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"Operator","value":"."},
|
|
{"type":"NameFunction","value":"terminator"},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Operator","value":"|"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"NameEntity","value":"$"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"Operator","value":"."},
|
|
{"type":"NameFunction","value":"typed_sorry"},
|
|
{"type":"Punctuation","value":":"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringSingle","value":"X::Syntax::Number::IllegalDecimal"},
|
|
{"type":"Punctuation","value":"'\u003e]"},
|
|
{"type":"Operator","value":"?"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"Punctuation","value":"["},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"Operator","value":"?"},
|
|
{"type":"OperatorWord","value":"before"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringSingle","value":"_"},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringSingle","value":"_"},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"Operator","value":"+"},
|
|
{"type":"LiteralStringEscape","value":"\\d"},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"Operator","value":"."},
|
|
{"type":"NameFunction","value":"sorry"},
|
|
{"type":"Punctuation","value":":"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"\""},
|
|
{"type":"LiteralStringDouble","value":"Only isolated underscores are allowed inside numbers"},
|
|
{"type":"Punctuation","value":"\"\u003e"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"]"},
|
|
{"type":"Operator","value":"?"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"Text","value":"\n\n"},
|
|
{"type":"NameBuiltin","value":"say"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"$match"},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"LiteralString","value":"block"},
|
|
{"type":"Punctuation","value":"\u003e\u003c"},
|
|
{"type":"LiteralString","value":"pair"},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"Operator","value":"["},
|
|
{"type":"LiteralNumberInteger","value":"0"},
|
|
{"type":"Operator","value":"]"},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"LiteralString","value":"value"},
|
|
{"type":"Punctuation","value":"\u003e;"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"CommentSingle","value":"# OUTPUT: 「value1」"},
|
|
{"type":"Text","value":"\n\n"},
|
|
{"type":"NameBuiltin","value":"say"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"$match"},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"LiteralString","value":"section"},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"Operator","value":"["},
|
|
{"type":"LiteralNumberInteger","value":"0"},
|
|
{"type":"Operator","value":"]"},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"LiteralString","value":"block"},
|
|
{"type":"Punctuation","value":"\u003e\u003c"},
|
|
{"type":"LiteralString","value":"pair"},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"Operator","value":"["},
|
|
{"type":"LiteralNumberInteger","value":"0"},
|
|
{"type":"Operator","value":"]"},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"LiteralString","value":"value"},
|
|
{"type":"Punctuation","value":"\u003e;"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"CommentSingle","value":"# OUTPUT: 「value3」"},
|
|
{"type":"Text","value":"\n\n"},
|
|
{"type":"CommentSingle","value":"# Promise"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"Keyword","value":"my"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"$promise"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"="},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Keyword","value":"start"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"Keyword","value":"my"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"$i"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"="},
|
|
{"type":"Text","value":" "},
|
|
{"type":"LiteralNumberInteger","value":"0"},
|
|
{"type":"Punctuation","value":";"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"Keyword","value":"for"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"LiteralNumberInteger","value":"1"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":".."},
|
|
{"type":"Text","value":" "},
|
|
{"type":"LiteralNumberInteger","value":"10"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"NameVariable","value":"$i"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"+="},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"$_"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"NameVariable","value":"$i"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"Keyword","value":"my"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"$result"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"="},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameBuiltin","value":"await"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"$promise"},
|
|
{"type":"Punctuation","value":";"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"NameBuiltin","value":"say"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"$result"},
|
|
{"type":"Punctuation","value":";"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"CommentSingle","value":"# OUTPUT: 55"},
|
|
{"type":"Text","value":"\n\n"},
|
|
{"type":"CommentSingle","value":"# Supply"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"Keyword","value":"my"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"$bread-supplier"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"="},
|
|
{"type":"Text","value":" "},
|
|
{"type":"KeywordType","value":"Supplier"},
|
|
{"type":"Operator","value":"."},
|
|
{"type":"NameBuiltin","value":"new"},
|
|
{"type":"Punctuation","value":";"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"Keyword","value":"my"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"$vegetable-supplier"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"="},
|
|
{"type":"Text","value":" "},
|
|
{"type":"KeywordType","value":"Supplier"},
|
|
{"type":"Operator","value":"."},
|
|
{"type":"NameBuiltin","value":"new"},
|
|
{"type":"Punctuation","value":";"},
|
|
{"type":"Text","value":"\n\n"},
|
|
{"type":"Keyword","value":"my"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"$supply"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"="},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Keyword","value":"supply"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"Keyword","value":"whenever"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"$bread-supplier"},
|
|
{"type":"Operator","value":"."},
|
|
{"type":"KeywordType","value":"Supply"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"NameBuiltin","value":"emit"},
|
|
{"type":"Punctuation","value":"(\""},
|
|
{"type":"LiteralStringDouble","value":"We've got bread: "},
|
|
{"type":"Punctuation","value":"\""},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"~"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"$_"},
|
|
{"type":"Punctuation","value":");"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"Punctuation","value":"};"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"Keyword","value":"whenever"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"$vegetable-supplier"},
|
|
{"type":"Operator","value":"."},
|
|
{"type":"KeywordType","value":"Supply"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"NameBuiltin","value":"emit"},
|
|
{"type":"Punctuation","value":"(\""},
|
|
{"type":"LiteralStringDouble","value":"We've got a vegetable: "},
|
|
{"type":"Punctuation","value":"\""},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"~"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"$_"},
|
|
{"type":"Punctuation","value":");"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"Punctuation","value":"};"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"NameVariable","value":"$supply"},
|
|
{"type":"Operator","value":"."},
|
|
{"type":"NameBuiltin","value":"tap"},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"Keyword","value":"-\u003e"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"$v"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameBuiltin","value":"say"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"\""},
|
|
{"type":"NameVariable","value":"$v"},
|
|
{"type":"Punctuation","value":"\""},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"});"},
|
|
{"type":"Text","value":"\n\n"},
|
|
{"type":"NameVariable","value":"$vegetable-supplier"},
|
|
{"type":"Operator","value":"."},
|
|
{"type":"NameBuiltin","value":"emit"},
|
|
{"type":"Punctuation","value":"(\""},
|
|
{"type":"LiteralStringDouble","value":"Radish"},
|
|
{"type":"Punctuation","value":"\");"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"CommentSingle","value":"# OUTPUT: «We've got a vegetable: Radish»"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"NameVariable","value":"$bread-supplier"},
|
|
{"type":"Operator","value":"."},
|
|
{"type":"NameBuiltin","value":"emit"},
|
|
{"type":"Punctuation","value":"(\""},
|
|
{"type":"LiteralStringDouble","value":"Thick sliced"},
|
|
{"type":"Punctuation","value":"\");"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"CommentSingle","value":"# OUTPUT: «We've got bread: Thick sliced»"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"NameVariable","value":"$vegetable-supplier"},
|
|
{"type":"Operator","value":"."},
|
|
{"type":"NameBuiltin","value":"emit"},
|
|
{"type":"Punctuation","value":"(\""},
|
|
{"type":"LiteralStringDouble","value":"Lettuce"},
|
|
{"type":"Punctuation","value":"\");"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"CommentSingle","value":"# OUTPUT: «We've got a vegetable: Lettuce»"},
|
|
{"type":"Text","value":"\n\n"},
|
|
{"type":"NameBuiltin","value":"say"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"LiteralNumberInteger","value":"1"},
|
|
{"type":"Operator","value":","},
|
|
{"type":"Text","value":" "},
|
|
{"type":"LiteralNumberInteger","value":"2"},
|
|
{"type":"Operator","value":","},
|
|
{"type":"Text","value":" "},
|
|
{"type":"LiteralNumberInteger","value":"3"},
|
|
{"type":"Punctuation","value":")"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"»+«"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"LiteralNumberInteger","value":"4"},
|
|
{"type":"Operator","value":","},
|
|
{"type":"Text","value":" "},
|
|
{"type":"LiteralNumberInteger","value":"5"},
|
|
{"type":"Operator","value":","},
|
|
{"type":"Text","value":" "},
|
|
{"type":"LiteralNumberInteger","value":"6"},
|
|
{"type":"Punctuation","value":");"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"NameBuiltin","value":"say"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"LiteralNumberInteger","value":"1"},
|
|
{"type":"Operator","value":","},
|
|
{"type":"Text","value":" "},
|
|
{"type":"LiteralNumberInteger","value":"2"},
|
|
{"type":"Operator","value":","},
|
|
{"type":"Text","value":" "},
|
|
{"type":"LiteralNumberInteger","value":"3"},
|
|
{"type":"Operator","value":","},
|
|
{"type":"Text","value":" "},
|
|
{"type":"LiteralNumberInteger","value":"4"},
|
|
{"type":"Punctuation","value":")"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"»~»"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"LiteralString","value":"a b"},
|
|
{"type":"Punctuation","value":"\u003e;"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"NameBuiltin","value":"say"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"NameVariable","value":"\u0026sin"},
|
|
{"type":"Operator","value":","},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"\u0026cos"},
|
|
{"type":"Operator","value":","},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"\u0026sqrt"},
|
|
{"type":"Punctuation","value":")"},
|
|
{"type":"Operator","value":"»."},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"LiteralNumberFloat","value":"0.5"},
|
|
{"type":"Punctuation","value":");"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"NameBuiltin","value":"say"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"(\u003c"},
|
|
{"type":"LiteralString","value":"a b"},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"Operator","value":","},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"LiteralString","value":"c d e"},
|
|
{"type":"Punctuation","value":"\u003e)"},
|
|
{"type":"Operator","value":"».\u0026"},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"."},
|
|
{"type":"NameBuiltin","value":"elems"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"};"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"NameBuiltin","value":"say"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"\u003c\u003c"},
|
|
{"type":"LiteralStringDouble","value":" "},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringSingle","value":"\u003e\u003e"},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringDouble","value":" "},
|
|
{"type":"Punctuation","value":"\u003e\u003e;"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"NameBuiltin","value":"say"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"\""},
|
|
{"type":"LiteralStringDouble","value":"stuff here!!!"},
|
|
{"type":"Punctuation","value":"\""},
|
|
{"type":"Operator","value":"."},
|
|
{"type":"NameBuiltin","value":"subst"},
|
|
{"type":"Punctuation","value":"(:"},
|
|
{"type":"LiteralString","value":"g"},
|
|
{"type":"Operator","value":","},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"/"},
|
|
{"type":"Operator","value":"\u003c\u003c"},
|
|
{"type":"Punctuation","value":"/"},
|
|
{"type":"Operator","value":","},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringSingle","value":"|"},
|
|
{"type":"Punctuation","value":"');"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"Keyword","value":"my"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"@array"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"="},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"\u003c\u003c"},
|
|
{"type":"LiteralStringDouble","value":"an "},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringSingle","value":"array of"},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringDouble","value":" "},
|
|
{"type":"Punctuation","value":"{\""},
|
|
{"type":"LiteralStringDouble","value":"many"},
|
|
{"type":"Punctuation","value":"\"}"},
|
|
{"type":"LiteralStringDouble","value":" items"},
|
|
{"type":"Punctuation","value":"\u003e\u003e;"},
|
|
{"type":"Text","value":"\n\n"},
|
|
{"type":"NameBuiltin","value":"say"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"["},
|
|
{"type":"LiteralNumberInteger","value":"1"},
|
|
{"type":"Operator","value":","},
|
|
{"type":"LiteralNumberInteger","value":"2"},
|
|
{"type":"Operator","value":","},
|
|
{"type":"LiteralNumberInteger","value":"3"},
|
|
{"type":"Operator","value":"]"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"OperatorWord","value":"(\u0026)"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"["},
|
|
{"type":"LiteralNumberInteger","value":"2"},
|
|
{"type":"Operator","value":","},
|
|
{"type":"LiteralNumberInteger","value":"5"},
|
|
{"type":"Operator","value":","},
|
|
{"type":"LiteralNumberInteger","value":"7"},
|
|
{"type":"Operator","value":"]"},
|
|
{"type":"Punctuation","value":";"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"NameBuiltin","value":"say"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"["},
|
|
{"type":"LiteralNumberInteger","value":"1"},
|
|
{"type":"Operator","value":","},
|
|
{"type":"LiteralNumberInteger","value":"2"},
|
|
{"type":"Operator","value":","},
|
|
{"type":"LiteralNumberInteger","value":"3"},
|
|
{"type":"Operator","value":"]"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"∩"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"["},
|
|
{"type":"LiteralNumberInteger","value":"2"},
|
|
{"type":"Operator","value":","},
|
|
{"type":"LiteralNumberInteger","value":"5"},
|
|
{"type":"Operator","value":","},
|
|
{"type":"LiteralNumberInteger","value":"7"},
|
|
{"type":"Operator","value":"]"},
|
|
{"type":"Punctuation","value":";"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"NameBuiltin","value":"say"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"LiteralNumberInteger","value":"2"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"=:="},
|
|
{"type":"Text","value":" "},
|
|
{"type":"LiteralNumberInteger","value":"3"},
|
|
{"type":"Punctuation","value":";"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"NameBuiltin","value":"say"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"["},
|
|
{"type":"LiteralNumberInteger","value":"1"},
|
|
{"type":"Operator","value":","},
|
|
{"type":"LiteralNumberInteger","value":"2"},
|
|
{"type":"Operator","value":","},
|
|
{"type":"LiteralNumberInteger","value":"3"},
|
|
{"type":"Operator","value":"]"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"OperatorWord","value":"Z"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"["},
|
|
{"type":"LiteralNumberInteger","value":"4"},
|
|
{"type":"Operator","value":","},
|
|
{"type":"LiteralNumberInteger","value":"5"},
|
|
{"type":"Operator","value":","},
|
|
{"type":"LiteralNumberInteger","value":"6"},
|
|
{"type":"Operator","value":"]"},
|
|
{"type":"Punctuation","value":";"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"Operator","value":"["},
|
|
{"type":"LiteralNumberInteger","value":"1"},
|
|
{"type":"Operator","value":","},
|
|
{"type":"LiteralNumberInteger","value":"2"},
|
|
{"type":"Operator","value":","},
|
|
{"type":"LiteralNumberInteger","value":"3"},
|
|
{"type":"Operator","value":"]"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"OperatorWord","value":"RZ"},
|
|
{"type":"Punctuation","value":"["},
|
|
{"type":"Operator","value":"=\u003e"},
|
|
{"type":"Punctuation","value":"]"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"["},
|
|
{"type":"LiteralNumberInteger","value":"4"},
|
|
{"type":"Operator","value":","},
|
|
{"type":"LiteralNumberInteger","value":"5"},
|
|
{"type":"Operator","value":","},
|
|
{"type":"LiteralNumberInteger","value":"6"},
|
|
{"type":"Operator","value":"]"},
|
|
{"type":"Punctuation","value":";"},
|
|
{"type":"Text","value":"\n\n"},
|
|
{"type":"Keyword","value":"rx"},
|
|
{"type":"Punctuation","value":"/:"},
|
|
{"type":"NameAttribute","value":"i"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"LiteralStringEscape","value":"\\w"},
|
|
{"type":"Operator","value":"+"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"CommentSingle","value":"# some comment\n"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringSingle","value":"text"},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"LiteralStringEscape","value":"\\d"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Operator","value":"**"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"LiteralNumberInteger","value":"2"},
|
|
{"type":"Operator","value":".."},
|
|
{"type":"LiteralNumberInteger","value":"5"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"Punctuation","value":"\""},
|
|
{"type":"LiteralStringDouble","value":"double quotes!"},
|
|
{"type":"Punctuation","value":"\""},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"NameFunction","value":"alnum"},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"Punctuation","value":"\u003c:"},
|
|
{"type":"NameAttribute","value":"N"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"+"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameBuiltin","value":"alpha"},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"Operator","value":"+"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"Punctuation","value":"\u003c{"},
|
|
{"type":"LiteralNumberInteger","value":"1"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"+"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"LiteralNumberInteger","value":"2"},
|
|
{"type":"Punctuation","value":"}\u003e"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"Punctuation","value":"\u003c:"},
|
|
{"type":"NameAttribute","value":"madeup"},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringSingle","value":"["},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"LiteralStringEscape","value":"\\w"},
|
|
{"type":"Operator","value":"+"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringSingle","value":"]"},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Operator","value":"||"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"LiteralStringEscape","value":"\\S"},
|
|
{"type":"Operator","value":"+"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"LiteralStringEscape","value":"\\s"},
|
|
{"type":"Operator","value":"*"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringSingle","value":"="},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"LiteralStringEscape","value":"\\s"},
|
|
{"type":"Operator","value":"*"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"LiteralStringEscape","value":"\\S"},
|
|
{"type":"Operator","value":"*"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"Operator","value":"||"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringSingle","value":"["},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"LiteralStringEscape","value":"\\w"},
|
|
{"type":"Operator","value":"+"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringSingle","value":"]"},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"Operator","value":"||"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"LiteralStringEscape","value":"\\S"},
|
|
{"type":"Operator","value":"+"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"LiteralStringEscape","value":"\\s"},
|
|
{"type":"Operator","value":"*"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringSingle","value":"="},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"LiteralStringEscape","value":"\\s"},
|
|
{"type":"Operator","value":"*"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"LiteralStringEscape","value":"\\S"},
|
|
{"type":"Operator","value":"*"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"Punctuation","value":"\u003c:"},
|
|
{"type":"NameAttribute","value":"Script"},
|
|
{"type":"Punctuation","value":"('"},
|
|
{"type":"LiteralStringSingle","value":"Latin"},
|
|
{"type":"Punctuation","value":"')\u003e"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"Punctuation","value":"\u003c:"},
|
|
{"type":"NameAttribute","value":"Block"},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"LiteralString","value":"Basic Latin"},
|
|
{"type":"Punctuation","value":"\u003e\u003e"},
|
|
{"type":"LiteralStringRegex","value":"\n if "},
|
|
{"type":"Operator","value":"|"},
|
|
{"type":"LiteralStringRegex","value":" if "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"Operator","value":"."},
|
|
{"type":"OperatorWord","value":"ws"},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"LiteralStringRegex","value":" else "},
|
|
{"type":"NameVariable","value":"$0"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"Punctuation","value":"\u003c:"},
|
|
{"type":"NameAttribute","value":"Lu"},
|
|
{"type":"Operator","value":"+"},
|
|
{"type":"Punctuation","value":":"},
|
|
{"type":"NameAttribute","value":"N"},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"LiteralStringRegex","value":"f"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"LiteralStringRegex","value":"fo"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"LiteralStringRegex","value":"foo"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"LiteralStringRegex","value":"food"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"Punctuation","value":"\u003c:"},
|
|
{"type":"NameAttribute","value":"L"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"+"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":":"},
|
|
{"type":"Operator","value":"!"},
|
|
{"type":"NameAttribute","value":"N"},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"Punctuation","value":"\u003c["},
|
|
{"type":"LiteralStringRegex","value":" a "},
|
|
{"type":"Operator","value":".."},
|
|
{"type":"LiteralStringRegex","value":" c "},
|
|
{"type":"LiteralNumberInteger","value":"1"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"LiteralNumberInteger","value":"2"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"LiteralNumberInteger","value":"3"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"]\u003e"},
|
|
{"type":"Operator","value":"*"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"NameVariable","value":"@variable"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"Punctuation","value":"\u003c["},
|
|
{"type":"LiteralStringEscape","value":"\\d"},
|
|
{"type":"Punctuation","value":"]"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"-"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"["},
|
|
{"type":"LiteralNumberInteger","value":"13579"},
|
|
{"type":"Punctuation","value":"]\u003e"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"Operator","value":"?"},
|
|
{"type":"OperatorWord","value":"before"},
|
|
{"type":"LiteralStringRegex","value":" a "},
|
|
{"type":"NameVariable","value":"$0"},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Operator","value":"\u0026\u0026"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"NameEntity","value":"."},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"Punctuation","value":"\u003c:"},
|
|
{"type":"NameAttribute","value":"Zs"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"+"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"["},
|
|
{"type":"LiteralStringEscape","value":"\\x"},
|
|
{"type":"LiteralNumberHex","value":"9"},
|
|
{"type":"Punctuation","value":"]"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"-"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"["},
|
|
{"type":"LiteralStringEscape","value":"\\x"},
|
|
{"type":"LiteralNumberHex","value":"A0"},
|
|
{"type":"Punctuation","value":"]\u003e"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"NameEntity","value":"^"},
|
|
{"type":"LiteralStringRegex","value":" raku "},
|
|
{"type":"NameEntity","value":"$"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"NameEntity","value":"^"},
|
|
{"type":"LiteralStringRegex","value":" raku"},
|
|
{"type":"NameEntity","value":"$"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"Punctuation","value":"["},
|
|
{"type":"NameEntity","value":"^"},
|
|
{"type":"LiteralStringRegex","value":"raku"},
|
|
{"type":"NameEntity","value":"$"},
|
|
{"type":"Operator","value":"|"},
|
|
{"type":"LiteralStringRegex","value":"something"},
|
|
{"type":"NameEntity","value":"$"},
|
|
{"type":"Punctuation","value":"]"},
|
|
{"type":"LiteralStringRegex","value":"else"},
|
|
{"type":"NameEntity","value":"$"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"Punctuation","value":"\u003c["},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"LiteralStringEscape","value":"\\x"},
|
|
{"type":"Punctuation","value":"["},
|
|
{"type":"LiteralNumberHex","value":"00C0"},
|
|
{"type":"Punctuation","value":"]"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Operator","value":".."},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"LiteralStringEscape","value":"\\x"},
|
|
{"type":"Punctuation","value":"["},
|
|
{"type":"LiteralNumberHex","value":"00C6"},
|
|
{"type":"Punctuation","value":"]"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"]\u003e"},
|
|
{"type":"Operator","value":"*"},
|
|
{"type":"LiteralStringRegex","value":"\n two"},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"Operator","value":"|"},
|
|
{"type":"OperatorWord","value":"w"},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"LiteralStringEscape","value":"\\"},
|
|
{"type":"LiteralStringRegex","value":"-"},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"Operator","value":"|"},
|
|
{"type":"OperatorWord","value":"w"},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"LiteralStringRegex","value":"words\n "},
|
|
{"type":"Punctuation","value":"\u003c["},
|
|
{"type":"LiteralStringEscape","value":"\\c"},
|
|
{"type":"Punctuation","value":"["},
|
|
{"type":"LiteralString","value":"GREEK SMALL LETTER ALPHA"},
|
|
{"type":"Punctuation","value":"]"},
|
|
{"type":"Operator","value":".."},
|
|
{"type":"LiteralStringEscape","value":"\\c"},
|
|
{"type":"Punctuation","value":"["},
|
|
{"type":"LiteralString","value":"GREEK SMALL LETTER GAMMA"},
|
|
{"type":"Punctuation","value":"]]\u003e"},
|
|
{"type":"Operator","value":"*"},
|
|
{"type":"LiteralStringRegex","value":"\n two"},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"Operator","value":"!|"},
|
|
{"type":"OperatorWord","value":"w"},
|
|
{"type":"Punctuation","value":"\u003e\u003c"},
|
|
{"type":"Operator","value":"!|"},
|
|
{"type":"OperatorWord","value":"w"},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"LiteralStringRegex","value":"words\n "},
|
|
{"type":"Operator","value":"\u003c\u003c"},
|
|
{"type":"LiteralStringRegex","value":" br "},
|
|
{"type":"Operator","value":"\u003e\u003e"},
|
|
{"type":"LiteralStringRegex","value":"\n own "},
|
|
{"type":"Operator","value":"»"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"NameEntity","value":"^^"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"Operator","value":"?"},
|
|
{"type":"NameFunction","value":"alnum"},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"LiteralStringEscape","value":"\\d"},
|
|
{"type":"Operator","value":"+"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"NameEntity","value":"^^"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"LiteralStringEscape","value":"\\d"},
|
|
{"type":"Operator","value":"+"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"Operator","value":"!"},
|
|
{"type":"Punctuation","value":":"},
|
|
{"type":"NameAttribute","value":"Script"},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"LiteralString","value":"Tamil"},
|
|
{"type":"Punctuation","value":"\u003e\u003e"},
|
|
{"type":"LiteralStringRegex","value":"\n abc "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"Operator","value":"?"},
|
|
{"type":"Punctuation","value":"["},
|
|
{"type":"LiteralStringRegex","value":" d"},
|
|
{"type":"Operator","value":".."},
|
|
{"type":"LiteralStringRegex","value":"f "},
|
|
{"type":"Punctuation","value":"]\u003e"},
|
|
{"type":"LiteralStringRegex","value":"\n abc "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"Operator","value":"?"},
|
|
{"type":"NameVariable","value":"@some-array"},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"Operator","value":"?"},
|
|
{"type":"OperatorWord","value":"after"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"NameEntity","value":"^^"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Operator","value":"|"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"\""},
|
|
{"type":"LiteralStringDouble","value":"."},
|
|
{"type":"Punctuation","value":"\""},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"LiteralStringEscape","value":"\\s"},
|
|
{"type":"Operator","value":"+"},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"\u003c:"},
|
|
{"type":"NameAttribute","value":"Lu"},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"LiteralStringEscape","value":"\\S"},
|
|
{"type":"Operator","value":"+"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"Punctuation","value":"["},
|
|
{"type":"LiteralStringRegex","value":" ab "},
|
|
{"type":"Operator","value":"||"},
|
|
{"type":"LiteralStringRegex","value":" cbc "},
|
|
{"type":"Punctuation","value":"]"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"LiteralStringRegex","value":"a "},
|
|
{"type":"Operator","value":"||"},
|
|
{"type":"LiteralStringRegex","value":" b"},
|
|
{"type":"Punctuation","value":")"},
|
|
{"type":"Operator","value":"+"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"Punctuation","value":"["},
|
|
{"type":"LiteralStringRegex","value":"a"},
|
|
{"type":"Operator","value":"||"},
|
|
{"type":"LiteralStringRegex","value":"b"},
|
|
{"type":"Punctuation","value":"]"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"LiteralStringRegex","value":"c"},
|
|
{"type":"Punctuation","value":")"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"LiteralStringEscape","value":"\\d"},
|
|
{"type":"Punctuation","value":")"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"NameVariable","value":"$0"},
|
|
{"type":"Punctuation","value":")"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"LiteralStringEscape","value":"\\d"},
|
|
{"type":"Punctuation","value":")"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"{}"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Operator","value":":"},
|
|
{"type":"KeywordDeclaration","value":"my"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"$c"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"="},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"$0"},
|
|
{"type":"Punctuation","value":";"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"NameVariable","value":"$c"},
|
|
{"type":"Punctuation","value":")"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"Operator","value":":"},
|
|
{"type":"KeywordDeclaration","value":"my"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"$counter"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"="},
|
|
{"type":"Text","value":" "},
|
|
{"type":"LiteralNumberInteger","value":"0"},
|
|
{"type":"Punctuation","value":";"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"LiteralStringEscape","value":"\\V"},
|
|
{"type":"Operator","value":"*"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"++"},
|
|
{"type":"NameVariable","value":"$counter"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":")"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Operator","value":"*"},
|
|
{"type":"NameVariable","value":"%%"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"LiteralStringEscape","value":"\\n"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"LiteralStringRegex","value":"a"},
|
|
{"type":"Punctuation","value":")"},
|
|
{"type":"LiteralStringRegex","value":" b "},
|
|
{"type":"Punctuation","value":"{}"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Operator","value":":"},
|
|
{"type":"KeywordDeclaration","value":"my"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"$c2"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"="},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"$/"},
|
|
{"type":"Punctuation","value":";"},
|
|
{"type":"LiteralStringRegex","value":"\n test\n "},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"LiteralStringRegex","value":"a"},
|
|
{"type":"Punctuation","value":")"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"NameBuiltin","value":"say"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"\""},
|
|
{"type":"LiteralStringDouble","value":"Check so far "},
|
|
{"type":"Punctuation","value":"\""},
|
|
{"type":"Operator","value":","},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"~"},
|
|
{"type":"NameVariable","value":"$/"},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"LiteralStringRegex","value":" b "},
|
|
{"type":"Operator","value":":"},
|
|
{"type":"KeywordDeclaration","value":"my"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"$c3"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"="},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"~"},
|
|
{"type":"NameVariable","value":"$0"},
|
|
{"type":"Punctuation","value":";"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameBuiltin","value":"say"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringSingle","value":"hi"},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"LiteralStringRegex","value":"\n\n "},
|
|
{"type":"NameVariable","value":"$\u003cmyname\u003e"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Operator","value":"="},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"["},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"LiteralStringEscape","value":"\\w"},
|
|
{"type":"Operator","value":"+"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"]"},
|
|
{"type":"LiteralStringRegex","value":"\n\n "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"Operator","value":"!!"},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariableGlobal","value":"$*LANG"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":":="},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariableGlobal","value":"$*LEAF"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":":="},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"$/"},
|
|
{"type":"Operator","value":"."},
|
|
{"type":"NameFunction","value":"clone_braid_from"},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"NameBuiltin","value":"self"},
|
|
{"type":"Punctuation","value":");"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"LiteralNumberInteger","value":"1"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"}\u003e"},
|
|
{"type":"LiteralStringRegex","value":"\n\n "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"Operator","value":"?"},
|
|
{"type":"OperatorWord","value":"before"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"Operator","value":"."},
|
|
{"type":"Punctuation","value":"["},
|
|
{"type":"LiteralStringEscape","value":"\\"},
|
|
{"type":"LiteralStringRegex","value":")"},
|
|
{"type":"LiteralStringEscape","value":"\\"},
|
|
{"type":"LiteralStringRegex","value":"]"},
|
|
{"type":"LiteralStringEscape","value":"\\"},
|
|
{"type":"LiteralStringRegex","value":"}"},
|
|
{"type":"Punctuation","value":"]\u003e\u003e"},
|
|
{"type":"LiteralStringRegex","value":"\n\n "},
|
|
{"type":"LiteralStringEscape","value":"\\"},
|
|
{"type":"LiteralStringRegex","value":"/\n\n "},
|
|
{"type":"NameVariable","value":"$\u003cstring\u003e"},
|
|
{"type":"Operator","value":"="},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"["},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"NameVariable","value":"$\u003cpart\u003e"},
|
|
{"type":"Operator","value":"="},
|
|
{"type":"Punctuation","value":"["},
|
|
{"type":"LiteralStringRegex","value":"abc"},
|
|
{"type":"Punctuation","value":"]"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"]"},
|
|
{"type":"Operator","value":"*"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"NameVariable","value":"%"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringSingle","value":"-"},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":")"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"NameVariable","value":"$\u003cvariable\u003e"},
|
|
{"type":"Operator","value":"="},
|
|
{"type":"LiteralStringEscape","value":"\\w"},
|
|
{"type":"Operator","value":"+"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringSingle","value":"="},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"NameVariable","value":"$\u003cvalue\u003e"},
|
|
{"type":"Operator","value":"="},
|
|
{"type":"LiteralStringEscape","value":"\\w"},
|
|
{"type":"Operator","value":"+"},
|
|
{"type":"LiteralStringRegex","value":"\n a "},
|
|
{"type":"Operator","value":"\u003c("},
|
|
{"type":"LiteralStringRegex","value":" b "},
|
|
{"type":"Operator","value":")\u003e"},
|
|
{"type":"LiteralStringRegex","value":" c\n "},
|
|
{"type":"Operator","value":"\u003c("},
|
|
{"type":"LiteralStringRegex","value":"a "},
|
|
{"type":"Operator","value":"\u003c("},
|
|
{"type":"LiteralStringRegex","value":" b "},
|
|
{"type":"Operator","value":")\u003e"},
|
|
{"type":"LiteralStringRegex","value":" c"},
|
|
{"type":"Operator","value":")\u003e"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringSingle","value":"("},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Operator","value":"~"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringSingle","value":")"},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"NameFunction","value":"expression"},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"NameVariable","value":"$\u003cOPEN\u003e"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Operator","value":"="},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringSingle","value":"("},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"NameFunction","value":"SETGOAL"},
|
|
{"type":"Punctuation","value":":"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringSingle","value":")"},
|
|
{"type":"Punctuation","value":"'\u003e"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"NameFunction","value":"some-expression"},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"["},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"NameVariable","value":"$GOAL"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Operator","value":"||"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"NameFunction","value":"FAILGOAL"},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"]"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"Operator","value":"?"},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Operator","value":"~"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringSingle","value":")"},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"LiteralStringEscape","value":"\\d"},
|
|
{"type":"Operator","value":"+"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringSingle","value":"("},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"Operator","value":"-"},
|
|
{"type":"Punctuation","value":"["},
|
|
{"type":"LiteralStringRegex","value":"()"},
|
|
{"type":"Punctuation","value":"]\u003e"},
|
|
{"type":"Operator","value":"*"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringSingle","value":")"},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Operator","value":"||"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringSingle","value":"("},
|
|
{"type":"Punctuation","value":"'["},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"Operator","value":"-"},
|
|
{"type":"Punctuation","value":"["},
|
|
{"type":"LiteralStringRegex","value":"()"},
|
|
{"type":"Punctuation","value":"]\u003e"},
|
|
{"type":"Operator","value":"*"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Operator","value":"\u003c~~\u003e"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"Operator","value":"-"},
|
|
{"type":"Punctuation","value":"["},
|
|
{"type":"LiteralStringRegex","value":"()"},
|
|
{"type":"Punctuation","value":"]\u003e"},
|
|
{"type":"Operator","value":"*"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"]"},
|
|
{"type":"Operator","value":"*"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringSingle","value":")"},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"NameVariable","value":"@\u003cnamed-regex\u003e"},
|
|
{"type":"Operator","value":"="},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"Operator","value":"."},
|
|
{"type":"NameFunction","value":"ident"},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"Operator","value":"."},
|
|
{"type":"NameFunction","value":"named-regex"},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"Operator","value":"\u0026"},
|
|
{"type":"NameFunction","value":"named-regex"},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"NameFunction","value":"someregex"},
|
|
{"type":"Punctuation","value":"('"},
|
|
{"type":"LiteralStringSingle","value":"a"},
|
|
{"type":"Punctuation","value":"')\u003e"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"NameVariable","value":"capture-name"},
|
|
{"type":"Operator","value":"="},
|
|
{"type":"NameFunction","value":"named-regex"},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"NameVariable","value":"capture-name"},
|
|
{"type":"Operator","value":"="},
|
|
{"type":"NameFunction","value":"named-regex"},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"LiteralNumberInteger","value":"2"},
|
|
{"type":"Punctuation","value":")\u003e"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"NameVariable","value":"$test"},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"NameVariable","value":"@test"},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"Keyword","value":"$"},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"LiteralNumberInteger","value":"1"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"+"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"LiteralNumberInteger","value":"2"},
|
|
{"type":"Punctuation","value":";"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"$test"},
|
|
{"type":"Punctuation","value":")"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"NameVariable","value":"$pattern3"},
|
|
{"type":"NameEntity","value":"."},
|
|
{"type":"LiteralStringRegex","value":"flip "},
|
|
{"type":"CommentSingle","value":"# Nil\n"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"\""},
|
|
{"type":"NameVariable","value":"$pattern3"},
|
|
{"type":"Operator","value":"."},
|
|
{"type":"NameFunction","value":"flip"},
|
|
{"type":"Punctuation","value":"()\""},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"Keyword","value":"$"},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"Operator","value":"[~]"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"$pattern3"},
|
|
{"type":"Operator","value":"."},
|
|
{"type":"NameBuiltin","value":"comb"},
|
|
{"type":"Operator","value":"."},
|
|
{"type":"NameBuiltin","value":"reverse"},
|
|
{"type":"Punctuation","value":")"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"Keyword","value":"@"},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"NameVariable","value":"%h"},
|
|
{"type":"Operator","value":"."},
|
|
{"type":"NameBuiltin","value":"keys"},
|
|
{"type":"Punctuation","value":")"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"LiteralStringEscape","value":"\\d"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Operator","value":"**"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"LiteralNumberInteger","value":"1"},
|
|
{"type":"Operator","value":".."},
|
|
{"type":"LiteralNumberInteger","value":"3"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"Operator","value":"?"},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"$/"},
|
|
{"type":"Operator","value":"."},
|
|
{"type":"KeywordType","value":"Int"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"\u003c="},
|
|
{"type":"Text","value":" "},
|
|
{"type":"LiteralNumberInteger","value":"255"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"\u0026\u0026"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"$/"},
|
|
{"type":"Operator","value":"."},
|
|
{"type":"KeywordType","value":"Int"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"\u003e="},
|
|
{"type":"Text","value":" "},
|
|
{"type":"LiteralNumberInteger","value":"0"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"}\u003e"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"NameEntity","value":"$"},
|
|
{"type":"Punctuation","value":"/;"},
|
|
{"type":"Text","value":"\n\n"},
|
|
{"type":"NameVariable","value":"$\u003cvariable\u003e"},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"LiteralString","value":"key"},
|
|
{"type":"Punctuation","value":"\u003e;"},
|
|
{"type":"Text","value":"\n\n"},
|
|
{"type":"Keyword","value":"constant"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"\\something"},
|
|
{"type":"Punctuation","value":":"},
|
|
{"type":"NameAttribute","value":"some"},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"LiteralString","value":"adverb"},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"="},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringSingle","value":"something"},
|
|
{"type":"Punctuation","value":"';"},
|
|
{"type":"Text","value":"\n\n"},
|
|
{"type":"Keyword","value":"my"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"%hash"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"="},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"%"},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"LiteralString","value":"query"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"=\u003e"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Name","value":"something"},
|
|
{"type":"Operator","value":","},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"LiteralString","value":"qq"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"=\u003e"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringSingle","value":"something"},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"Operator","value":","},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"Punctuation","value":":"},
|
|
{"type":"LiteralNumberInteger","value":"23"},
|
|
{"type":"LiteralString","value":"year"},
|
|
{"type":"Operator","value":","},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"LiteralString","value":"m"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"=\u003e"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"$test"},
|
|
{"type":"Operator","value":","},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"Punctuation","value":":"},
|
|
{"type":"LiteralString","value":"yes"},
|
|
{"type":"Operator","value":","},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"Punctuation","value":":"},
|
|
{"type":"Operator","value":"!"},
|
|
{"type":"LiteralString","value":"yes"},
|
|
{"type":"Operator","value":","},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"KeywordType","value":"Less"},
|
|
{"type":"Punctuation","value":")"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"=\u003e"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"$test"},
|
|
{"type":"Operator","value":","},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"Punctuation","value":");"},
|
|
{"type":"Text","value":"\n\n"},
|
|
{"type":"Keyword","value":"my"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"%hash2"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"="},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"%"},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"Punctuation","value":":"},
|
|
{"type":"LiteralString","value":"query"},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"Name","value":"something"},
|
|
{"type":"Punctuation","value":")"},
|
|
{"type":"Operator","value":","},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"Punctuation","value":":"},
|
|
{"type":"LiteralString","value":"qq"},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"LiteralString","value":"something"},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"Operator","value":","},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"Punctuation","value":":"},
|
|
{"type":"LiteralString","value":"m"},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"Name","value":"something"},
|
|
{"type":"Punctuation","value":")"},
|
|
{"type":"Operator","value":","},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"Punctuation","value":":"},
|
|
{"type":"LiteralNumberInteger","value":"23"},
|
|
{"type":"Punctuation","value":"('"},
|
|
{"type":"LiteralStringSingle","value":"a"},
|
|
{"type":"Punctuation","value":"')"},
|
|
{"type":"Operator","value":","},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"Punctuation","value":":"},
|
|
{"type":"LiteralString","value":"test"},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"LiteralString","value":"something"},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"Operator","value":","},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"Punctuation","value":":"},
|
|
{"type":"LiteralString","value":"query1"},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"LiteralNumberInteger","value":"1"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"+"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"LiteralNumberInteger","value":"2"},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"Punctuation","value":":"},
|
|
{"type":"LiteralString","value":"list"},
|
|
{"type":"Punctuation","value":"["},
|
|
{"type":"LiteralNumberInteger","value":"1"},
|
|
{"type":"Operator","value":","},
|
|
{"type":"LiteralNumberInteger","value":"2"},
|
|
{"type":"Operator","value":","},
|
|
{"type":"LiteralNumberInteger","value":"3"},
|
|
{"type":"Punctuation","value":"]"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"Punctuation","value":");"},
|
|
{"type":"Text","value":"\n\n"},
|
|
{"type":"Keyword","value":"=for"},
|
|
{"type":"LiteralStringDoc","value":" "},
|
|
{"type":"Keyword","value":"comment"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"LiteralStringDoc","value":"some comment\n\n"},
|
|
{"type":"Keyword","value":"=table"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"LiteralStringDoc","value":" |col|\n |row|\n\n"},
|
|
{"type":"NameBuiltin","value":"say"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Keyword","value":"Q"},
|
|
{"type":"Punctuation","value":"["},
|
|
{"type":"LiteralString","value":"「some $text」"},
|
|
{"type":"Punctuation","value":"];"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"NameBuiltin","value":"say"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Keyword","value":"qq"},
|
|
{"type":"Punctuation","value":"「「"},
|
|
{"type":"LiteralStringDouble","value":"some "},
|
|
{"type":"NameVariable","value":"$regex"},
|
|
{"type":"LiteralStringDouble","value":" text"},
|
|
{"type":"Punctuation","value":"」」;"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"NameBuiltin","value":"say"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Keyword","value":"q"},
|
|
{"type":"LiteralStringAffix","value":"ww"},
|
|
{"type":"Punctuation","value":"「「"},
|
|
{"type":"LiteralStringDouble","value":"some "},
|
|
{"type":"NameVariable","value":"$variable"},
|
|
{"type":"LiteralStringDouble","value":" "},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringSingle","value":"some text"},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringDouble","value":" text"},
|
|
{"type":"Punctuation","value":"」」;"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"NameBuiltin","value":"say"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Keyword","value":"q"},
|
|
{"type":"LiteralStringAffix","value":":ww"},
|
|
{"type":"Punctuation","value":"「「"},
|
|
{"type":"LiteralStringDouble","value":"some "},
|
|
{"type":"NameVariable","value":"$variable"},
|
|
{"type":"LiteralStringDouble","value":" "},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringSingle","value":"some text"},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringDouble","value":" text"},
|
|
{"type":"Punctuation","value":"」」;"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"NameBuiltin","value":"say"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Keyword","value":"q"},
|
|
{"type":"LiteralStringAffix","value":":w"},
|
|
{"type":"Punctuation","value":"「「"},
|
|
{"type":"LiteralString","value":"some $variable 'some text' text"},
|
|
{"type":"Punctuation","value":"」」;"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"NameBuiltin","value":"say"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Keyword","value":"qq"},
|
|
{"type":"LiteralStringAffix","value":":w"},
|
|
{"type":"Punctuation","value":"「「"},
|
|
{"type":"LiteralStringDouble","value":"some "},
|
|
{"type":"NameVariable","value":"$regex"},
|
|
{"type":"LiteralStringDouble","value":" 'some text' text"},
|
|
{"type":"Punctuation","value":"」」;"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"NameBuiltin","value":"say"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Keyword","value":"Q"},
|
|
{"type":"LiteralStringAffix","value":":c"},
|
|
{"type":"Punctuation","value":"「「"},
|
|
{"type":"LiteralString","value":"some $regex 'some text' "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"LiteralNumberInteger","value":"2"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"+"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"LiteralNumberInteger","value":"1"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"LiteralString","value":" text"},
|
|
{"type":"Punctuation","value":"」」;"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"NameBuiltin","value":"say"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Keyword","value":"q"},
|
|
{"type":"LiteralStringAffix","value":":a"},
|
|
{"type":"Punctuation","value":"「「"},
|
|
{"type":"LiteralString","value":"some "},
|
|
{"type":"NameVariable","value":"@array"},
|
|
{"type":"LiteralString","value":"[2] 'some text' { 2 + 1 } text"},
|
|
{"type":"Punctuation","value":"」」;"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"NameBuiltin","value":"say"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Keyword","value":"Q"},
|
|
{"type":"LiteralStringAffix","value":":a:c"},
|
|
{"type":"Punctuation","value":"「「"},
|
|
{"type":"LiteralStringDouble","value":"some "},
|
|
{"type":"NameVariable","value":"@array"},
|
|
{"type":"LiteralStringDouble","value":" 'some text' "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"LiteralNumberInteger","value":"2"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"+"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"LiteralNumberInteger","value":"1"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"LiteralStringDouble","value":" text"},
|
|
{"type":"Punctuation","value":"」」;"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"Keyword","value":"Q"},
|
|
{"type":"Punctuation","value":"["},
|
|
{"type":"LiteralString","value":"some "},
|
|
{"type":"LiteralStringEscape","value":"\\qq"},
|
|
{"type":"Punctuation","value":"["},
|
|
{"type":"NameVariable","value":"$variable"},
|
|
{"type":"Operator","value":"."},
|
|
{"type":"NameFunction","value":"method"},
|
|
{"type":"Punctuation","value":"()]"},
|
|
{"type":"LiteralString","value":" testing"},
|
|
{"type":"Punctuation","value":"]"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"Keyword","value":"Q"},
|
|
{"type":"LiteralStringAffix","value":":a:c"},
|
|
{"type":"Punctuation","value":"["},
|
|
{"type":"LiteralStringDouble","value":"some "},
|
|
{"type":"LiteralStringEscape","value":"\\qq"},
|
|
{"type":"Punctuation","value":"["},
|
|
{"type":"NameVariable","value":"$variable"},
|
|
{"type":"Operator","value":"."},
|
|
{"type":"NameFunction","value":"method"},
|
|
{"type":"Punctuation","value":"()]"},
|
|
{"type":"LiteralStringDouble","value":" testing"},
|
|
{"type":"Punctuation","value":"]"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"NameBuiltin","value":"say"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Keyword","value":"Q"},
|
|
{"type":"LiteralStringAffix","value":":c:h"},
|
|
{"type":"Punctuation","value":"「"},
|
|
{"type":"LiteralStringDouble","value":"Testing "},
|
|
{"type":"Punctuation","value":"{'"},
|
|
{"type":"LiteralStringSingle","value":"toasting"},
|
|
{"type":"Punctuation","value":"'}"},
|
|
{"type":"LiteralStringDouble","value":" "},
|
|
{"type":"NameVariable","value":"%h"},
|
|
{"type":"LiteralStringDouble","value":"\u003cone\u003e"},
|
|
{"type":"Punctuation","value":"」;"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"NameBuiltin","value":"say"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Keyword","value":"Q"},
|
|
{"type":"LiteralStringAffix","value":":c:h"},
|
|
{"type":"Punctuation","value":"「"},
|
|
{"type":"LiteralStringDouble","value":"Testing "},
|
|
{"type":"Punctuation","value":"{'"},
|
|
{"type":"LiteralStringSingle","value":"toasting"},
|
|
{"type":"Punctuation","value":"'}"},
|
|
{"type":"LiteralStringDouble","value":" "},
|
|
{"type":"NameVariable","value":"%h"},
|
|
{"type":"LiteralStringDouble","value":"\u003cone\u003e\u003ctwo\u003e"},
|
|
{"type":"Punctuation","value":"」;"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"NameBuiltin","value":"say"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Keyword","value":"Q"},
|
|
{"type":"LiteralStringAffix","value":":c:h"},
|
|
{"type":"Punctuation","value":"「"},
|
|
{"type":"LiteralStringDouble","value":"Testing "},
|
|
{"type":"Punctuation","value":"{'"},
|
|
{"type":"LiteralStringSingle","value":"toasting"},
|
|
{"type":"Punctuation","value":"'}"},
|
|
{"type":"LiteralStringDouble","value":" "},
|
|
{"type":"NameVariable","value":"%h"},
|
|
{"type":"LiteralStringDouble","value":"\u003c\u003cone\u003e\u003e"},
|
|
{"type":"Punctuation","value":"」;"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"NameBuiltin","value":"say"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Keyword","value":"Q"},
|
|
{"type":"LiteralStringAffix","value":":c:h"},
|
|
{"type":"Punctuation","value":"「"},
|
|
{"type":"LiteralStringDouble","value":"Testing "},
|
|
{"type":"Punctuation","value":"{'"},
|
|
{"type":"LiteralStringSingle","value":"toasting"},
|
|
{"type":"Punctuation","value":"'}"},
|
|
{"type":"LiteralStringDouble","value":" "},
|
|
{"type":"NameVariable","value":"%h"},
|
|
{"type":"LiteralStringDouble","value":"«one»"},
|
|
{"type":"Punctuation","value":"」;"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"NameBuiltin","value":"say"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Keyword","value":"Q"},
|
|
{"type":"LiteralStringAffix","value":":b"},
|
|
{"type":"Punctuation","value":"["},
|
|
{"type":"LiteralString","value":"Testing"},
|
|
{"type":"Punctuation","value":"];"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringSingle","value":"some "},
|
|
{"type":"LiteralStringEscape","value":"\\qq"},
|
|
{"type":"Punctuation","value":"["},
|
|
{"type":"NameVariable","value":"$variable"},
|
|
{"type":"Operator","value":"."},
|
|
{"type":"NameFunction","value":"method"},
|
|
{"type":"Punctuation","value":"()]"},
|
|
{"type":"LiteralStringSingle","value":" testing"},
|
|
{"type":"Punctuation","value":"';"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringSingle","value":"somes"},
|
|
{"type":"LiteralStringEscape","value":"\\"},
|
|
{"type":"LiteralStringSingle","value":"' testing"},
|
|
{"type":"Punctuation","value":"';"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"Punctuation","value":"\""},
|
|
{"type":"LiteralStringDouble","value":"some "},
|
|
{"type":"LiteralStringEscape","value":"\\qq"},
|
|
{"type":"Punctuation","value":"["},
|
|
{"type":"NameVariable","value":"$variable"},
|
|
{"type":"Operator","value":"."},
|
|
{"type":"NameFunction","value":"method"},
|
|
{"type":"Punctuation","value":"()]"},
|
|
{"type":"LiteralStringDouble","value":" testing"},
|
|
{"type":"Punctuation","value":"\";"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"Punctuation","value":"\""},
|
|
{"type":"LiteralStringDouble","value":"some "},
|
|
{"type":"NameVariable","value":"$variable"},
|
|
{"type":"Operator","value":"."},
|
|
{"type":"NameFunction","value":"method"},
|
|
{"type":"Punctuation","value":"()"},
|
|
{"type":"LiteralStringDouble","value":" testing"},
|
|
{"type":"Punctuation","value":"\";"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"Punctuation","value":"\""},
|
|
{"type":"LiteralStringDouble","value":"some "},
|
|
{"type":"NameVariable","value":"$variable"},
|
|
{"type":"Punctuation","value":":"},
|
|
{"type":"NameAttribute","value":"some"},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"LiteralString","value":"adverb"},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"Operator","value":"."},
|
|
{"type":"NameFunction","value":"method"},
|
|
{"type":"Punctuation","value":"()"},
|
|
{"type":"LiteralStringDouble","value":" testing"},
|
|
{"type":"Punctuation","value":"\";"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"Punctuation","value":"\""},
|
|
{"type":"LiteralStringDouble","value":"some "},
|
|
{"type":"NameVariable","value":"$variable"},
|
|
{"type":"Punctuation","value":":"},
|
|
{"type":"NameAttribute","value":"some"},
|
|
{"type":"Punctuation","value":"('"},
|
|
{"type":"LiteralStringSingle","value":"adverb"},
|
|
{"type":"Punctuation","value":"')"},
|
|
{"type":"Operator","value":"."},
|
|
{"type":"NameFunction","value":"method"},
|
|
{"type":"Punctuation","value":"()"},
|
|
{"type":"LiteralStringDouble","value":" testing"},
|
|
{"type":"Punctuation","value":"\";"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"Punctuation","value":"\""},
|
|
{"type":"LiteralStringDouble","value":"some func() testing"},
|
|
{"type":"Punctuation","value":"\";"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"Punctuation","value":"\""},
|
|
{"type":"LiteralStringDouble","value":"some func:some\u003cadverb\u003e() testing"},
|
|
{"type":"Punctuation","value":"\";"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"Punctuation","value":"\""},
|
|
{"type":"LiteralStringDouble","value":"some "},
|
|
{"type":"NameVariable","value":"\u0026func"},
|
|
{"type":"Punctuation","value":"()"},
|
|
{"type":"LiteralStringDouble","value":" testing"},
|
|
{"type":"Punctuation","value":"\";"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"Punctuation","value":"\""},
|
|
{"type":"LiteralStringDouble","value":"some "},
|
|
{"type":"NameVariable","value":"\u0026func"},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"NameVariable","value":"$test"},
|
|
{"type":"Punctuation","value":")"},
|
|
{"type":"LiteralStringDouble","value":" testing"},
|
|
{"type":"Punctuation","value":"\";"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"Punctuation","value":"\""},
|
|
{"type":"LiteralStringDouble","value":"some "},
|
|
{"type":"NameVariable","value":"\u0026func"},
|
|
{"type":"Punctuation","value":":"},
|
|
{"type":"NameAttribute","value":"some"},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"LiteralString","value":"adverb"},
|
|
{"type":"Punctuation","value":"\u003e()"},
|
|
{"type":"LiteralStringDouble","value":" testing"},
|
|
{"type":"Punctuation","value":"\";"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"NameBuiltin","value":"say"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"\""},
|
|
{"type":"LiteralStringDouble","value":"Something foo(2) "},
|
|
{"type":"NameVariable","value":"$a"},
|
|
{"type":"Operator","value":"."},
|
|
{"type":"NameFunction","value":"succ"},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"LiteralNumberInteger","value":"2"},
|
|
{"type":"Operator","value":"+"},
|
|
{"type":"LiteralNumberInteger","value":"3"},
|
|
{"type":"Operator","value":","},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"$some_variable"},
|
|
{"type":"Punctuation","value":")"},
|
|
{"type":"LiteralStringDouble","value":" "},
|
|
{"type":"NameVariable","value":"$a"},
|
|
{"type":"Operator","value":"."},
|
|
{"type":"NameFunction","value":"some-method"},
|
|
{"type":"Punctuation","value":"()"},
|
|
{"type":"LiteralStringDouble","value":" "},
|
|
{"type":"NameVariable","value":"@more"},
|
|
{"type":"LiteralStringDouble","value":" "},
|
|
{"type":"NameVariable","value":"$_"},
|
|
{"type":"Operator","value":"."},
|
|
{"type":"NameFunction","value":"Str"},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"LiteralNumberInteger","value":"2"},
|
|
{"type":"Punctuation","value":")"},
|
|
{"type":"LiteralStringDouble","value":" "},
|
|
{"type":"NameVariable","value":"$_:"},
|
|
{"type":"LiteralStringDouble","value":" "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"$_"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"*"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"LiteralNumberInteger","value":"2"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"}\";"},
|
|
{"type":"Text","value":"\n\n"},
|
|
{"type":"CommentMultiline","value":"#`[[\nmultiline comment]\n]]"},
|
|
{"type":"Text","value":"\n\n"},
|
|
{"type":"Keyword","value":"my"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"$regex"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"="},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"/'"},
|
|
{"type":"LiteralStringSingle","value":"match"},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"LiteralStringEscape","value":"\\s"},
|
|
{"type":"Operator","value":"*"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"\u003c["},
|
|
{"type":"LiteralStringRegex","value":":-"},
|
|
{"type":"Punctuation","value":"]\u003e"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"LiteralStringEscape","value":"\\s"},
|
|
{"type":"Operator","value":"*"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"LiteralStringEscape","value":"\\w"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringSingle","value":"something"},
|
|
{"type":"Punctuation","value":"'/;"},
|
|
{"type":"Text","value":"\n\n"},
|
|
{"type":"NameBuiltin","value":"say"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Keyword","value":"S"},
|
|
{"type":"Punctuation","value":"/"},
|
|
{"type":"LiteralStringRegex","value":"some"},
|
|
{"type":"Punctuation","value":"/"},
|
|
{"type":"LiteralStringDouble","value":"a"},
|
|
{"type":"Punctuation","value":"/"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Keyword","value":"given"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"$text"},
|
|
{"type":"Punctuation","value":";"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"NameBuiltin","value":"say"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Keyword","value":"s"},
|
|
{"type":"Punctuation","value":"/"},
|
|
{"type":"LiteralStringRegex","value":"some"},
|
|
{"type":"Punctuation","value":"/"},
|
|
{"type":"LiteralStringDouble","value":"a"},
|
|
{"type":"Punctuation","value":"/;"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"NameBuiltin","value":"say"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Keyword","value":"S"},
|
|
{"type":"Punctuation","value":"%"},
|
|
{"type":"LiteralStringRegex","value":"some"},
|
|
{"type":"Punctuation","value":"%"},
|
|
{"type":"LiteralStringDouble","value":"a"},
|
|
{"type":"Punctuation","value":"%"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Keyword","value":"given"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"$text"},
|
|
{"type":"Punctuation","value":";"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"NameBuiltin","value":"say"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"$text"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"~~"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Keyword","value":"s"},
|
|
{"type":"Punctuation","value":"/("},
|
|
{"type":"LiteralStringRegex","value":"some"},
|
|
{"type":"Punctuation","value":")"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"LiteralStringEscape","value":"\\d"},
|
|
{"type":"Operator","value":"+"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"NameVariable","value":"$\u003cvar\u003e"},
|
|
{"type":"Operator","value":"="},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"NameFunction","value":"alnum"},
|
|
{"type":"Punctuation","value":"\u003e/"},
|
|
{"type":"LiteralStringDouble","value":"a "},
|
|
{"type":"NameVariable","value":"$0"},
|
|
{"type":"Punctuation","value":"/;"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"NameBuiltin","value":"say"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"$text"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"~~"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Keyword","value":"s"},
|
|
{"type":"Punctuation","value":":"},
|
|
{"type":"NameAttribute","value":"Pos"},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"LiteralNumberInteger","value":"2"},
|
|
{"type":"Punctuation","value":")/("},
|
|
{"type":"LiteralStringRegex","value":"some"},
|
|
{"type":"Punctuation","value":")/"},
|
|
{"type":"NameVariable","value":"$0"},
|
|
{"type":"Punctuation","value":"/;"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"NameBuiltin","value":"say"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"$text"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"~~"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Keyword","value":"s"},
|
|
{"type":"Punctuation","value":"%"},
|
|
{"type":"LiteralStringRegex","value":"some"},
|
|
{"type":"Punctuation","value":"%"},
|
|
{"type":"LiteralStringDouble","value":"a"},
|
|
{"type":"Punctuation","value":"%;"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"NameBuiltin","value":"say"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"$text"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"~~"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Keyword","value":"s"},
|
|
{"type":"Punctuation","value":"%"},
|
|
{"type":"LiteralStringRegex","value":"s"},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"NameEntity","value":"."},
|
|
{"type":"Punctuation","value":")"},
|
|
{"type":"LiteralStringRegex","value":"me"},
|
|
{"type":"Punctuation","value":"%"},
|
|
{"type":"LiteralStringDouble","value":"a"},
|
|
{"type":"NameVariable","value":"$0"},
|
|
{"type":"Punctuation","value":"%;"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"NameBuiltin","value":"say"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"$text"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"~~"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Keyword","value":"s"},
|
|
{"type":"Punctuation","value":":"},
|
|
{"type":"NameAttribute","value":"r"},
|
|
{"type":"Punctuation","value":"/"},
|
|
{"type":"LiteralStringRegex","value":"some"},
|
|
{"type":"Punctuation","value":"/"},
|
|
{"type":"LiteralStringDouble","value":"a"},
|
|
{"type":"Punctuation","value":"/;"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"NameBuiltin","value":"say"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"$text"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"~~"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Keyword","value":"m"},
|
|
{"type":"Punctuation","value":"/"},
|
|
{"type":"NameEntity","value":"^"},
|
|
{"type":"LiteralStringRegex","value":"text "},
|
|
{"type":"Punctuation","value":"[:"},
|
|
{"type":"NameAttribute","value":"i"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"LiteralStringEscape","value":"\\d"},
|
|
{"type":"Operator","value":"+"},
|
|
{"type":"Punctuation","value":"]"},
|
|
{"type":"NameEntity","value":"$"},
|
|
{"type":"Punctuation","value":"/;"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"NameBuiltin","value":"say"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"$text"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"~~"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Keyword","value":"m"},
|
|
{"type":"Punctuation","value":":"},
|
|
{"type":"NameAttribute","value":"s"},
|
|
{"type":"Punctuation","value":"/"},
|
|
{"type":"NameEntity","value":"^"},
|
|
{"type":"Punctuation","value":"\u003c{"},
|
|
{"type":"LiteralNumberInteger","value":"2"},
|
|
{"type":"Operator","value":"+"},
|
|
{"type":"LiteralNumberInteger","value":"5"},
|
|
{"type":"Punctuation","value":"}\u003e"},
|
|
{"type":"NameEntity","value":"$"},
|
|
{"type":"Punctuation","value":"/;"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"NameBuiltin","value":"say"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"$text"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"~~"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Keyword","value":"m"},
|
|
{"type":"Punctuation","value":"%"},
|
|
{"type":"NameEntity","value":"^"},
|
|
{"type":"LiteralStringRegex","value":"text"},
|
|
{"type":"NameEntity","value":"$"},
|
|
{"type":"Punctuation","value":"%;"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"NameBuiltin","value":"say"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"$text"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"~~"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"/"},
|
|
{"type":"NameEntity","value":"^"},
|
|
{"type":"LiteralStringRegex","value":"text"},
|
|
{"type":"NameEntity","value":"$"},
|
|
{"type":"Punctuation","value":"/;"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"NameBuiltin","value":"say"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"$text"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"~~"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Keyword","value":"tr"},
|
|
{"type":"Punctuation","value":"/"},
|
|
{"type":"LiteralStringRegex","value":"abcde"},
|
|
{"type":"Punctuation","value":"/"},
|
|
{"type":"LiteralStringDouble","value":"12345"},
|
|
{"type":"Punctuation","value":"/;"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"Keyword","value":"s"},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"LiteralStringEscape","value":"\\w"},
|
|
{"type":"Operator","value":"+"},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"="},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringSingle","value":"test"},
|
|
{"type":"Punctuation","value":"';"},
|
|
{"type":"Text","value":"\n\n"},
|
|
{"type":"NameBuiltin","value":"say"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"LiteralNumberInteger","value":"1"},
|
|
{"type":"Operator","value":"+"},
|
|
{"type":"LiteralNumberInteger","value":"1"},
|
|
{"type":"NameConstant","value":"i"},
|
|
{"type":"Punctuation","value":";"},
|
|
{"type":"Text","value":"\n\n"},
|
|
{"type":"Keyword","value":"CATCH"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"Keyword","value":"when"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameException","value":"X::AdHoc"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"{}"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"Keyword","value":"when"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameException","value":"CX::Warn"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"{}"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"Text","value":"\n\n"},
|
|
{"type":"NameBuiltin","value":"say"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Keyword","value":"Q"},
|
|
{"type":"LiteralStringAffix","value":":heredoc"},
|
|
{"type":"Punctuation","value":"「FINISH」;"},
|
|
{"type":"LiteralString","value":"\nsome long\ntext\nhere.\n"},
|
|
{"type":"Punctuation","value":"FINISH"},
|
|
{"type":"Text","value":"\n\n"},
|
|
{"type":"NameVariableGlobal","value":"$*IN"},
|
|
{"type":"Operator","value":"."},
|
|
{"type":"NameBuiltin","value":"lines"},
|
|
{"type":"Operator","value":"."},
|
|
{"type":"NameBuiltin","value":"first"},
|
|
{"type":"Operator","value":":"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"."},
|
|
{"type":"NameBuiltin","value":"say"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"OperatorWord","value":"and"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"."},
|
|
{"type":"NameBuiltin","value":"so"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Keyword","value":"with"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"%a"},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"Operator","value":"."},
|
|
{"type":"KeywordType","value":"Int"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"OperatorWord","value":"cmp"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Name","value":"n"},
|
|
{"type":"Punctuation","value":"}}"},
|
|
{"type":"Text","value":"\n\n"},
|
|
{"type":"Keyword","value":"#| "},
|
|
{"type":"LiteralStringDoc","value":"Grammar "},
|
|
{"type":"Keyword","value":"C"},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"LiteralStringOther","value":"G"},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"LiteralStringDoc","value":"\n"},
|
|
{"type":"Keyword","value":"grammar"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameClass","value":"G"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"Keyword","value":"rule"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameFunction","value":"TOP"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"NameFunction","value":"function-define"},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"Keyword","value":"rule"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameFunction","value":"function-define"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"Operator","value":":"},
|
|
{"type":"KeywordDeclaration","value":"my"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"\\var"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"="},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringSingle","value":"something"},
|
|
{"type":"Punctuation","value":"';"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringSingle","value":"sub"},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"NameFunction","value":"identifier"},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"NameBuiltin","value":"say"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"\""},
|
|
{"type":"LiteralStringDouble","value":"func "},
|
|
{"type":"Punctuation","value":"\""},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"~"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"$\u003cidentifier\u003e"},
|
|
{"type":"Operator","value":"."},
|
|
{"type":"Keyword","value":"made"},
|
|
{"type":"Punctuation","value":";"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"Keyword","value":"make"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"$\u003cidentifier\u003e"},
|
|
{"type":"Operator","value":"."},
|
|
{"type":"Keyword","value":"made"},
|
|
{"type":"Punctuation","value":";"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringSingle","value":"("},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"NameFunction","value":"parameter"},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringSingle","value":")"},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringSingle","value":"{"},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringSingle","value":"}"},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameBuiltin","value":"say"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"\""},
|
|
{"type":"LiteralStringDouble","value":"end "},
|
|
{"type":"Punctuation","value":"\""},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"~"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"$/"},
|
|
{"type":"Operator","value":"."},
|
|
{"type":"Keyword","value":"made"},
|
|
{"type":"Punctuation","value":";"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"LiteralStringRegex","value":"\n "},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"Keyword","value":"token"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameFunction","value":"identifier"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"LiteralStringEscape","value":"\\w"},
|
|
{"type":"Operator","value":"+"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Keyword","value":"make"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"~"},
|
|
{"type":"NameVariable","value":"$/"},
|
|
{"type":"Punctuation","value":";"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"Keyword","value":"token"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameFunction","value":"parameter"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"LiteralStringEscape","value":"\\w"},
|
|
{"type":"Operator","value":"+"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameBuiltin","value":"say"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"\""},
|
|
{"type":"LiteralStringDouble","value":"param "},
|
|
{"type":"Punctuation","value":"\""},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"~"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"$/"},
|
|
{"type":"Punctuation","value":";"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"Keyword","value":"token"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameFunction","value":"token"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"LiteralStringEscape","value":"\\w"},
|
|
{"type":"Operator","value":"+"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameBuiltin","value":"say"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"\""},
|
|
{"type":"LiteralStringDouble","value":"param "},
|
|
{"type":"Punctuation","value":"\""},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"~"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"$/"},
|
|
{"type":"Punctuation","value":";"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"Text","value":"\n\n"},
|
|
{"type":"Keyword","value":"use"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameNamespace","value":"Some::Module"},
|
|
{"type":"Punctuation","value":";"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"Keyword","value":"use"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameNamespace","value":"Some::Module"},
|
|
{"type":"Punctuation","value":":"},
|
|
{"type":"NameAttribute","value":"auth"},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"LiteralString","value":"author"},
|
|
{"type":"Punctuation","value":"\u003e:"},
|
|
{"type":"NameAttribute","value":"ver"},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"Keyword","value":"v"},
|
|
{"type":"LiteralNumberInteger","value":"1"},
|
|
{"type":"NameEntity","value":".0.0"},
|
|
{"type":"Punctuation","value":");"},
|
|
{"type":"Text","value":"\n\n"},
|
|
{"type":"NameFunction","value":"notes"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"$trip:"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"\""},
|
|
{"type":"LiteralStringDouble","value":"Almost there"},
|
|
{"type":"Punctuation","value":"\";"},
|
|
{"type":"Text","value":"\n\n"},
|
|
{"type":"NameLabel","value":"LABEL"},
|
|
{"type":"Operator","value":":"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"Keyword","value":"for"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"LiteralString","value":"a b c"},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"Text","value":"\n\n"},
|
|
{"type":"Keyword","value":"#|"},
|
|
{"type":"Punctuation","value":"[["},
|
|
{"type":"LiteralStringDoc","value":"\nmultiline pod declaration]\n"},
|
|
{"type":"Punctuation","value":"]]"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"Keyword","value":"grammar"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameClass","value":"Calculator"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"Keyword","value":"token"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameFunction","value":"TOP"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"NameFunction","value":"calc-op"},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"Text","value":"\n\n "},
|
|
{"type":"Keyword","value":"proto"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Keyword","value":"rule"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameFunction","value":"calc-op"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"Operator","value":"*"},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"Keyword","value":"proto"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Keyword","value":"rule"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameFunction","value":"calc-op"},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"NameVariable","value":"$a"},
|
|
{"type":"Punctuation","value":")"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"Operator","value":"*"},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"Keyword","value":"rule"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameFunction","value":"calc-op"},
|
|
{"type":"Punctuation","value":":"},
|
|
{"type":"NameAttribute","value":"sym"},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"LiteralString","value":"add"},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"NameFunction","value":"num"},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringSingle","value":"+"},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"NameFunction","value":"num"},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"Keyword","value":"rule"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameFunction","value":"calc-op"},
|
|
{"type":"Punctuation","value":":"},
|
|
{"type":"NameAttribute","value":"sym"},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"LiteralString","value":"add"},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"NameFunction","value":"num"},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringSingle","value":":"},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringSingle","value":"+"},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"NameFunction","value":"num"},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"Keyword","value":"rule"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameFunction","value":"calc-op"},
|
|
{"type":"Punctuation","value":":"},
|
|
{"type":"NameAttribute","value":"sym"},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"LiteralString","value":"sub"},
|
|
{"type":"Punctuation","value":"\u003e("},
|
|
{"type":"NameVariable","value":"$a"},
|
|
{"type":"Punctuation","value":")"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"NameFunction","value":"num"},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringSingle","value":"-"},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"NameFunction","value":"num"},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"Text","value":"\n\n "},
|
|
{"type":"Keyword","value":"token"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameFunction","value":"num"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"LiteralStringEscape","value":"\\d"},
|
|
{"type":"Operator","value":"+"},
|
|
{"type":"LiteralStringRegex","value":" "},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"Text","value":"\n\n"},
|
|
{"type":"Keyword","value":"class"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameClass","value":"Calculations"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"Keyword","value":"method"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameFunction","value":"TOP"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"NameVariable","value":"$/"},
|
|
{"type":"Punctuation","value":")"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Keyword","value":"make"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"$\u003ccalc-op\u003e"},
|
|
{"type":"Operator","value":"."},
|
|
{"type":"Keyword","value":"made"},
|
|
{"type":"Punctuation","value":";"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"Keyword","value":"method"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameFunction","value":"calc-op"},
|
|
{"type":"Punctuation","value":":"},
|
|
{"type":"NameAttribute","value":"sym"},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"LiteralString","value":"add"},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"NameVariable","value":"$/"},
|
|
{"type":"Punctuation","value":")"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Keyword","value":"make"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"[+]"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"$\u003cnum\u003e"},
|
|
{"type":"Punctuation","value":";"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"Keyword","value":"method"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameFunction","value":"calc-op"},
|
|
{"type":"Punctuation","value":":"},
|
|
{"type":"NameAttribute","value":"sym"},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"LiteralString","value":"sub"},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"NameVariable","value":"$/"},
|
|
{"type":"Punctuation","value":")"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Keyword","value":"make"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"[-]"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"$\u003cnum\u003e"},
|
|
{"type":"Punctuation","value":";"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"Keyword","value":"method"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameFunction","value":"calc-op"},
|
|
{"type":"Punctuation","value":":"},
|
|
{"type":"NameAttribute","value":"sym"},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"LiteralString","value":"sub"},
|
|
{"type":"Punctuation","value":"\u003e("},
|
|
{"type":"NameVariable","value":"$/"},
|
|
{"type":"Punctuation","value":")"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Keyword","value":"make"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"[-]"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"$\u003cnum\u003e"},
|
|
{"type":"Punctuation","value":";"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"Keyword","value":"method"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameFunction","value":"calc-op"},
|
|
{"type":"Punctuation","value":":"},
|
|
{"type":"NameAttribute","value":"sym"},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"NameVariable","value":"$/"},
|
|
{"type":"Punctuation","value":")"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Keyword","value":"make"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"[-]"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"$\u003cnum\u003e"},
|
|
{"type":"Punctuation","value":";"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"Keyword","value":"method"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameFunction","value":"calc-op"},
|
|
{"type":"Punctuation","value":":"},
|
|
{"type":"NameAttribute","value":"sym"},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"LiteralString","value":"sub"},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Keyword","value":"make"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"[-]"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"$\u003cnum\u003e"},
|
|
{"type":"Punctuation","value":";"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"Text","value":"\n\n"},
|
|
{"type":"NameBuiltin","value":"say"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Name","value":"Calculator"},
|
|
{"type":"Operator","value":"."},
|
|
{"type":"NameBuiltin","value":"parse"},
|
|
{"type":"Punctuation","value":"('"},
|
|
{"type":"LiteralStringSingle","value":"2 + 3"},
|
|
{"type":"Punctuation","value":"'"},
|
|
{"type":"Operator","value":","},
|
|
{"type":"Text","value":" "},
|
|
{"type":"LiteralString","value":"actions"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"=\u003e"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Name","value":"Calculations"},
|
|
{"type":"Punctuation","value":")"},
|
|
{"type":"Operator","value":"."},
|
|
{"type":"Keyword","value":"made"},
|
|
{"type":"Punctuation","value":";"},
|
|
{"type":"Text","value":"\n\n"},
|
|
{"type":"NameBuiltin","value":"put"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"KeywordType","value":"Date"},
|
|
{"type":"Operator","value":"."},
|
|
{"type":"NameBuiltin","value":"today"},
|
|
{"type":"Operator","value":"."},
|
|
{"type":"NameBuiltin","value":"later"},
|
|
{"type":"Punctuation","value":"(:"},
|
|
{"type":"LiteralNumberInteger","value":"2"},
|
|
{"type":"LiteralString","value":"years"},
|
|
{"type":"Punctuation","value":")"},
|
|
{"type":"Operator","value":"."},
|
|
{"type":"NameBuiltin","value":"year"},
|
|
{"type":"Punctuation","value":";"},
|
|
{"type":"Text","value":"\n\n"},
|
|
{"type":"Keyword","value":"=finish"},
|
|
{"type":"LiteralStringDoc","value":"\n"},
|
|
{"type":"Keyword","value":"C"},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"LiteralStringOther","value":"say"},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"LiteralStringDoc","value":" Date.today.year;\n# Output: 2020\n"},
|
|
{"type":"Keyword","value":"B"},
|
|
{"type":"Punctuation","value":"\u003c"},
|
|
{"type":"GenericStrong","value":"say"},
|
|
{"type":"Punctuation","value":"\u003e"},
|
|
{"type":"LiteralStringDoc","value":" Date.today.later(:2years).year;\n"}
|
|
]
|