parse.hpp File Reference

#include "cons.hpp"

Go to the source code of this file.

Functions

Cell * parse (string sexpr)
 Recursively parse sexpr and build the parse tree.
bool iswhitespace (char ch)
 Check whether the character is whitespace.


Detailed Description

Encapsulates the interface for the expression parsing function, which analyzes a string containing an s-expression, and determines its tree structure.

Function Documentation

bool iswhitespace char  ch  ) 
 

Check whether the character is whitespace.

Returns:
True if it is character, false else.
Parameters:
ch The character to check.

Cell* parse string  sexpr  ) 
 

Recursively parse sexpr and build the parse tree.

Parameters:
sexpr The s-expression stored in a string variable (note that this version of parse has side effects: it may alter the contents of sexpr).
Returns:
A pointer to the conspair cell at the root of the parse tree.


Generated on Mon May 1 09:56:47 2006 for a2 by  doxygen 1.4.6