1Parse.ParseState(3kaya) Kaya module reference Parse.ParseState(3kaya)
2
3
4
6 Parse::ParseState - The current state of the string being parsed.
7
9 Parse::ParseState< >
10
11
12 = ParseState(Int line,Int pos,Int idx,String input)
13
15 This data type represents the current state of the parsing. line and
16 pos represent the current position of the parser with respect to the
17 original String (both starting at 1), and input contains the unparsed
18 section of the String.
19
20 The constructors are public for ease of inspection and to allow users
21 to write their own parser functions, but should never be altered
22 directly outside a parse function.
23
24 When writing your own parser, use Strings.behead (3kaya) and
25 Strings.ltruncate (3kaya) to efficiently remove parsed characters from
26 the string.
27
29 Kaya standard library by Edwin Brady, Chris Morris and others
30 (kaya@kayalang.org). For further information see http://kayalang.org/
31
33 The Kaya standard library is free software; you can redistribute it
34 and/or modify it under the terms of the GNU Lesser General Public
35 License (version 2.1 or any later version) as published by the Free
36 Software Foundation.
37
39 Parse.initial (3kaya)
40
41
42
43Kaya December 2010 Parse.ParseState(3kaya)