1Parse(3kaya)                 Kaya module reference                Parse(3kaya)
2
3
4

NAME

6       Parse - Parser generator
7

DESCRIPTION

9       This module allows simple String parsers to be written. The aim of this
10       module is for ease of use, not efficiency.
11
12
13    input = "abc def ghi.   ";
14    try {
15        st = initial(input);
16        words = list(word,st);
17        sentenceend = char('.',st);
18        end(st);
19    } catch(e) {
20        putStrLn("Parse error!");
21    }
22

TYPE SYNONYMS

24       Parser = a(ParseState)

DATA TYPES

26       Parse.ParseResult (3kaya)
27       Parse.ParseState (3kaya)

EXCEPTIONS

29       Parse.EndOfInput (3kaya)
30       Parse.ExpectedAlphaNum (3kaya)
31       Parse.ExpectedChar (3kaya)
32       Parse.ExpectedDigit (3kaya)
33       Parse.ExpectedLetter (3kaya)
34       Parse.GenericError (3kaya)
35       Parse.IdentError (3kaya)
36       Parse.IntError (3kaya)
37       Parse.NoEndOfInput (3kaya)
38       Parse.UnexpectedChar (3kaya)
39       Parse.WordError (3kaya)

FUNCTIONS

41       Parse.alphaNum (3kaya)
42       Parse.alternatives (3kaya)
43       Parse.anyChar (3kaya)
44       Parse.char (3kaya)
45       Parse.delimList (3kaya)
46       Parse.digit (3kaya)
47       Parse.end (3kaya)
48       Parse.identifier (3kaya)
49       Parse.initial (3kaya)
50       Parse.integer (3kaya)
51       Parse.keyword (3kaya)
52       Parse.letter (3kaya)
53       Parse.list (3kaya)
54       Parse.list1 (3kaya)
55       Parse.optional (3kaya)
56       Parse.or (3kaya)
57       Parse.parse (3kaya)
58       Parse.pred (3kaya)
59       Parse.quoted (3kaya)
60       Parse.regex (3kaya)
61       Parse.regex_1 (3kaya)
62       Parse.string (3kaya)
63       Parse.whitespace (3kaya)
64       Parse.word (3kaya)

AUTHORS

66       Kaya  standard  library  by  Edwin  Brady,  Chris  Morris  and   others
67       (kaya@kayalang.org). For further information see http://kayalang.org/

LICENSE

69       The  Kaya  standard  library  is free software; you can redistribute it
70       and/or modify it under the terms  of  the  GNU  Lesser  General  Public
71       License  (version  2.1  or  any later version) as published by the Free
72       Software Foundation.
73
74
75
76Kaya                             December 2010                    Parse(3kaya)
Impressum