#include "parse.hpp"Functions | |
| bool | iswhitespace (char ch) |
| Check whether the character is whitespace. | |
| bool | is_legalnumeric (string str) |
| Check whether numericstr is an legal numericstr string. | |
| bool | is_legaloperator (string str) |
| Check whether str is a legal operator. | |
| void | readsinglesymbol (string &substring, string &sexpr) |
| void | clearwhitespace (string &sexpr) |
| Clear the whitespace at the begining and end of string sexpr. | |
| bool | is_legalexpr (string sexpr) |
| Check whether the s-expression legal. | |
| Cell * | makecell (string str) |
| Make the cell. | |
| Cell * | separate_parse (string &instr) |
| Separately parse the sexpr and build the tree. | |
| Cell * | parse (string sexpr) |
| Recursively parse sexpr and build the parse tree. | |
Variables | |
| bool | inparsecar |
| void clearwhitespace | ( | string & | sexpr | ) |
Clear the whitespace at the begining and end of string sexpr.
| sexpr | The string. |
| bool is_legalexpr | ( | string | sexpr | ) |
Check whether the s-expression legal.
| bool is_legalnumeric | ( | string | str | ) |
Check whether numericstr is an legal numericstr string.
| str | The string to be checked |
| bool is_legaloperator | ( | string | str | ) |
Check whether str is a legal operator.
| bool iswhitespace | ( | char | ch | ) |
Check whether the character is whitespace.
| ch | The character to check. |
| Cell* makecell | ( | string | str | ) |
Make the cell.
| str | The string to represent the symbol, int or double. |
| Cell* parse | ( | string | sexpr | ) |
Recursively parse sexpr and build the parse tree.
| 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). |
| void readsinglesymbol | ( | string & | substring, | |
| string & | sexpr | |||
| ) |
| Cell * separate_parse | ( | string & | instr | ) |
Separately parse the sexpr and build the tree.
| instr | The string which consists of s-expressions. |
| bool inparsecar |
1.5.3