1Parse.string(3kaya) Kaya module reference Parse.string(3kaya)
2
3
4
6 Parse::string - Parse to match a predicate.
7
9 String string( Bool(String) strfun, var ParseState st )
10
12 strfun The predicate function, which should return true if the String
13 matches
14
15 st The current parsing state
16
18 Parse a string matching a predicate. The string will be formed from the
19 contiguous set of non-whitespace characters at the start of the String
20 to be parsed (which may be the empty String). An Exception will be
21 thrown if the predicate is not matched.
22
24 Kaya standard library by Edwin Brady, Chris Morris and others
25 (kaya@kayalang.org). For further information see http://kayalang.org/
26
28 The Kaya standard library is free software; you can redistribute it
29 and/or modify it under the terms of the GNU Lesser General Public
30 License (version 2.1 or any later version) as published by the Free
31 Software Foundation.
32
33
34
35Kaya December 2010 Parse.string(3kaya)