chickadee » iexpr

Outdated egg!

This is an egg for CHICKEN 4, the unsupported old release. You're almost certainly looking for the CHICKEN 5 version of this egg, if it exists.

If it does not exist, there may be equivalent functionality provided by another egg; have a look at the egg index. Otherwise, please consider porting this egg to the current version of CHICKEN.



The iexpr library contains a procedure for parsing of I-expressions as described in SRFI-49.

Library Procedures

parse LOC STRING-OR-PORTprocedure

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.

tree-empty? TREEprocedure

Returns #t is the given tree object is empty, #f otherwise.

tree-level TREEprocedure

Returns the indentation level of the text contained in the given tree node.

tree-child TREEprocedure

Returns the first child of the given tree node.

tree-sibling TREEprocedure

Returns the first sibling of the given tree node.

tree->list TREEprocedure

Converts the given tree to a list structure.


Version History


 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
 General Public License for more details.
 A full copy of the GPL license can be found at

Contents »