Kaya 0.5.3 module reference for Parse

List of modules in this version

Parse module

This module allows simple String parsers to be written. The aim of this module is for ease of use, not efficiency.

input = "abc def ghi.   ";
try {
    st = initial(input);
    words = list(word,st);
    sentenceend = char('.',st);
    end(st);
} catch(e) {
    putStrLn("Parse error!");
}

Type Synonyms

Data types

Exceptions

Functions

kaya@kayalang.org | Last modified 29 November 2011 | Supported by Durham CompSoc | Powered by Kaya