Rechercher une page de manuel
Parse.ParseState.3kaya
Langue: en
Version: May 2010 (fedora - 01/12/10)
Section: 3 (Bibliothèques de fonctions)
NAME
Parse::ParseState - The current state of the string being parsed.SYNOPSIS
Parse::ParseState< >- = ParseState(Int line,Int pos,Int idx,String input)
DESCRIPTION
This data type represents the current state of the parsing. line and pos represent the current position of the parser with respect to the original String (both starting at 1), and input contains the unparsed section of the String.
The constructors are public for ease of inspection and to allow users to write their own parser functions, but should never be altered directly outside a parse function.
When writing your own parser, use Strings.behead(3kaya) and Strings.ltruncate(3kaya) to efficiently remove parsed characters from the string.
AUTHORS
Kaya standard library by Edwin Brady, Chris Morris and others (kaya@kayalang.org). For further information see http://kayalang.org/LICENSE
The Kaya standard library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (version 2.1 or any later version) as published by the Free Software Foundation.RELATED
Parse.initial(3kaya)
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre