1Parse.optional(3kaya) Kaya module reference Parse.optional(3kaya)
2
3
4
6 Parse::optional - Parse a string optionally.
7
9 Maybe<a> optional( Parser<a> parse, var ParseState st )
10
12 parse The parser to use
13
14 st The current parsing state
15
17 Parse a string optionally, returning nothing if the parser failed.
18
20 Kaya standard library by Edwin Brady, Chris Morris and others
21 (kaya@kayalang.org). For further information see http://kayalang.org/
22
24 The Kaya standard library is free software; you can redistribute it
25 and/or modify it under the terms of the GNU Lesser General Public
26 License (version 2.1 or any later version) as published by the Free
27 Software Foundation.
28
29
30
31Kaya December 2010 Parse.optional(3kaya)