1Parse(3kaya) Kaya module reference Parse(3kaya)
23
4
NAME
6Parse - Parser generator
7
DESCRIPTION
9This module allows simple String parsers to be written. The aim of this
10module is for ease of use, not efficiency.
1112
13
input = "abc def ghi. ";
14try {
15st = initial(input);
16words = list(word,st);
17sentenceend = char('.',st);
18end(st);
19} catch(e) {
20putStrLn("Parse error!");
21}
22
TYPE SYNONYMS
24 Parser = a(ParseState)
DATA TYPES
26Parse.ParseResult (3kaya)
27Parse.ParseState (3kaya)
EXCEPTIONS
29Parse.EndOfInput (3kaya)
30Parse.ExpectedAlphaNum (3kaya)
31Parse.ExpectedChar (3kaya)
32Parse.ExpectedDigit (3kaya)
33Parse.ExpectedLetter (3kaya)
34Parse.GenericError (3kaya)
35Parse.IdentError (3kaya)
36Parse.IntError (3kaya)
37Parse.NoEndOfInput (3kaya)
38Parse.UnexpectedChar (3kaya)
39Parse.WordError (3kaya)
FUNCTIONS
41Parse.alphaNum (3kaya)
42Parse.alternatives (3kaya)
43Parse.anyChar (3kaya)
44Parse.char (3kaya)
45Parse.delimList (3kaya)
46Parse.digit (3kaya)
47Parse.end (3kaya)
48Parse.identifier (3kaya)
49Parse.initial (3kaya)
50Parse.integer (3kaya)
51Parse.keyword (3kaya)
52Parse.letter (3kaya)
53Parse.list (3kaya)
54Parse.list1 (3kaya)
55Parse.optional (3kaya)
56Parse.or (3kaya)
57Parse.parse (3kaya)
58Parse.pred (3kaya)
59Parse.quoted (3kaya)
60Parse.regex (3kaya)
61Parse.regex_1 (3kaya)
62Parse.string (3kaya)
63Parse.whitespace (3kaya)
64Parse.word (3kaya)
AUTHORS
66Kaya standard library by Edwin Brady, Chris Morris and others
67(kaya@kayalang.org). For further information see http://kayalang.org/
LICENSE
69The Kaya standard library is free software; you can redistribute it
70and/or modify it under the terms of the GNU Lesser General Public
71License (version 2.1 or any later version) as published by the Free
72Software Foundation.
7374
75
76
Kaya December 2010 Parse(3kaya)