00001
00005 #ifndef _LinearParser_h
00006 #define _LinearParser_h
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #include "Parser.h"
00017 #include "Tokenizer.h"
00018
00019
00020
00021
00022
00023 class LinearParser
00024 : public Parser
00025 {
00026 public:
00027
00028
00031 LinearParser(void);
00032
00033
00036 ~LinearParser(void);
00037
00038
00039
00040
00041
00042
00043 virtual std::auto_ptr<FunctionBase> CreateFunction(
00044 const wxString& input,
00045 VariableNames& rVariables,
00046 bool resetVariables)
00047 const throw(ParseError);
00048
00049
00050
00051
00052
00053 protected:
00054 private:
00056 std::auto_ptr<const FunctionTree> Expression(Tokenizer& rTokenizer) const;
00057
00059 std::auto_ptr<const FunctionTree> Product(Tokenizer& rTokenizer,
00060 bool first = false)
00061 const;
00062 };
00063
00064
00065
00066
00067
00068
00069
00070 #endif // _LinearParser_h