Commit bbaa312a authored by Camil Staps's avatar Camil Staps 🚀

Add @type documentation on macros

parent 0d974e7e
......@@ -19,8 +19,19 @@ import Regex.Print
| EndOfString
| WordBreak Bool
/**
* @type Regex
*/
Many g :== Repeated g 0 Nothing
/**
* @type Regex
*/
Some g :== Repeated g 1 Nothing
/**
* @type Regex
*/
Optional g :== Repeated g 0 (Just 1)
:: Greediness :== Bool
......
definition module Regex.Util
/**
* @type [(Char, Char)]
*/
escape_sequences :==
[ ('a', '\x07')
, ('e', '\x07')
......@@ -11,6 +14,9 @@ escape_sequences :==
, ('\\', '\\')
]
/**
* @type [(Char, [(Char, Char)])]
*/
shorthand_classes :==
[ ('w', [('A','Z'),('a','z'),('0','9'),('_','_')])
, ('W', [('\0','/'),(':','@'),('[','^'),('`','`'),('{','\xff')])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment