tokay 0.6.13

Tokay is a programming language designed for ad-hoc parsing.
Documentation
#testmode:repl

# Simple sequences

'a' 'b'  # Touch
'a' ''b''  # Touch and match
'a' ''b''+  # Match with positive modifier
''a''* ''b''+  # Match with kleene and positive modifiers
'a'* ''b''+  # Touch with kleene and positive modifiers
Char<a-z>
Char<a-z>+
Chars<a-z>
Char<^ '>+
Chars<^ '>
Int

# Parsing with sequences and modifiers
''a'' {''b'' ''c''}* ''d''
''a'' {''b'' ''c''}+ ''d''
{ Word { ',' _ }? }+

#---
#ab abbb bb 123 ABC 456 'def'
#abcbcd ad
#Hello,   World,  Beta,  Test
#---
#("b", "b", "b")
#("b", ("b", "b", "b"), "b")
#(("a", "b"), ("a", ("b", "b", "b")), ("b", "b"), ("a", "b"), "b")
#("b", ("b", "b", "b"), ("b", "b"), "b", "b")
#("a", "b", "a", "b", "b", "b", "b", "b", "d", "e", "f", "a", "b", "c", "b", "c", "d", "a", "d", "e", "l", "l", "o", "o", "r", "l", "d", "e", "t", "a", "e", "s", "t")
#("ab", "abbb", "bb", "def", "abcbcd", "ad", "ello", "orld", "eta", "est")
#("ab", "abbb", "bb", "def", "abcbcd", "ad", "ello", "orld", "eta", "est")
#("ab", "abbb", "bb", "123", "ABC", "456", "def", "\nabcbcd", "ad\nHello,", "World,", "Beta,", "Test")
#("ab", "abbb", "bb", "123", "ABC", "456", "def", "\nabcbcd", "ad\nHello,", "World,", "Beta,", "Test")
#(123, 456)
#(("a", (("b", "c"), ("b", "c")), "d"), ("a", "d"))
#("a", (("b", "c"), ("b", "c")), "d")
#("ab", "abbb", "bb", "ABC", "def", "abcbcd", "ad", ("Hello", "World", "Beta", "Test"))