diff options
author | Adrian Kummerländer | 2013-09-26 20:41:37 +0200 |
---|---|---|
committer | Adrian Kummerländer | 2013-09-26 20:41:37 +0200 |
commit | a0f0c005a39ddaf693c7de84d6ab1c380a93dca2 (patch) | |
tree | 53b6c57a9226b2cc67bd577cca169ace199483a0 /src/utils.h | |
parent | b765b57739463d0aa3b833a70e0ea87bca68e82e (diff) | |
download | SimpleParser-a0f0c005a39ddaf693c7de84d6ab1c380a93dca2.tar SimpleParser-a0f0c005a39ddaf693c7de84d6ab1c380a93dca2.tar.gz SimpleParser-a0f0c005a39ddaf693c7de84d6ab1c380a93dca2.tar.bz2 SimpleParser-a0f0c005a39ddaf693c7de84d6ab1c380a93dca2.tar.lz SimpleParser-a0f0c005a39ddaf693c7de84d6ab1c380a93dca2.tar.xz SimpleParser-a0f0c005a39ddaf693c7de84d6ab1c380a93dca2.tar.zst SimpleParser-a0f0c005a39ddaf693c7de84d6ab1c380a93dca2.zip |
Code restructuring of tree and parsing logic
* Enabled tree to generate itself
** Main work is now done during tree construction
* Moved lexer and getPriority utility functions into separate compilation unit
Diffstat (limited to 'src/utils.h')
-rw-r--r-- | src/utils.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/utils.h b/src/utils.h new file mode 100644 index 0000000..f71c835 --- /dev/null +++ b/src/utils.h @@ -0,0 +1,16 @@ +#ifndef PARSER_SRC_UTILS_H_ +#define PARSER_SRC_UTILS_H_ + +#include <string> +#include <vector> + +#include "nodes.h" + +namespace SimpleParser { + +int8_t getPriority(char); +std::vector<std::string> lexer(std::string); + +} + +#endif // PARSER_SRC_UTILS_H_ |