4 #include "syntaxtree.h"
10 typedef std::vector<SyntaxTree> STvector;
15 typedef std::vector<Word> Wvector;
20 typedef std::set<WordType> WTset;
52 Word getNextWord(std::size_t i);
54 WordType getNextType(
const Word& W, WordType T);
61 void removeAllOtherTypes(
Word& W, WordType trueType);
68 void setGrammar(
const Grammar& G);
69 void setSentence(
const Wvector& W);
71 Wvector getSentence();
76 std::vector<SyntaxWord> getAll(
const SyntaxTree& S);
SyntaxObject
Definition: config.h:167
The Grammar class A generic Grammar class that contains a multimap. It maps a Grammar Phrase to a vec...
Definition: grammar.h:24
std::vector< GrammarPhrase > GPlist
GPlist typedef for vector<GrammarPhrase>
Definition: config.h:265
GrammarPhrase
The GrammarPhrase enum Denotes the Grammar Phrase.
Definition: config.h:99
The SyntaxTree class The Tree specialized for holding syntax and words INHERITS: from Tree...
Definition: syntaxtree.h:68
The Parser class The Parser class. It takes a Grammar Structure and a vector of Words to create a vec...
Definition: parser.h:27