You are looking at historical revision 26000 of this page. It may differ significantly from its current revision.
The iexpr library contains a procedure for parsing of I-expressions as described in SRFI-49.
Library Procedures[procedure] (parse LOC STRING-OR-PORT) => TREE
Parses I-expression text and returns a tree object with the parsed content. LOC is a symbol that indicates the name of the current entity being parsed. It is used for error reporting.[procedure] (tree-empty? TREE) => BOOL
Returns #t is the given tree object is empty, #f otherwise.[procedure] (tree-level TREE) => INTEGER
Returns the indentation level of the text contained in the given tree node.[procedure] (tree-child TREE) => TREE
Returns the first child of the given tree node.[procedure] (tree-sibling TREE) => TREE
Returns the first sibling of the given tree node.[procedure] (tree->list TREE) => LIST
Converts the given tree to a list structure.
- 1.5 Using make egg instead of setup-api for make macro
- 1.2 Updated unit tests
- 1.1 Various fixes to handle boundary cases: empty input stream, 1-character words and others
- 1.0 Initial Release
Copyright 2010-2012 Ivan Raikov and the Okinawa Institute of Science and Technology.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
A full copy of the GPL license can be found at <http://www.gnu.org/licenses/>.