~ubuntu-branches/ubuntu/saucy/gfan/saucy-proposed

« back to all changes in this revision

Viewing changes to parser.h

  • Committer: Package Import Robot
  • Author(s): Cédric Boutillier
  • Date: 2013-07-09 10:44:01 UTC
  • mfrom: (2.1.2 experimental)
  • Revision ID: package-import@ubuntu.com-20130709104401-5q66ozz5j5af0dak
Tags: 0.5+dfsg-3
* Upload to unstable.
* modify remove_failing_tests_on_32bits.patch to replace command of
  0009RenderStairCase test with an empty one instead of deleting it.
* remove lintian override about spelling error

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
class Parser
15
15
{
16
16
 protected:
17
 
  void parserError(char *expected, char c);
 
17
  void parserError(const char *expected, char c);
18
18
 public:
19
19
  virtual int parseInt()=0;
20
20
  virtual Monomial parseMonomial(PolynomialRing const &r)=0;
40
40
  int parseChar();
41
41
  int parseInt();
42
42
  double parseFloat();
 
43
  ComplexNumber parseComplexNumber();
43
44
  FieldElement parseFieldElement(Field const &f);
44
45
  FieldElement parseFieldElementFromInteger(Field const &f);
45
46
  Monomial parseMonomial(PolynomialRing const &r);
46
47
  IntegerVector parseIntegerVector();
 
48
  FloatVector parseFloatVector();
 
49
  ComplexVector parseComplexVector();
47
50
  IntegerVectorList parseIntegerVectorList();
48
51
  IntegerVectorList parseIntegerVectorList4ti2();
49
52
  Term parseTerm(PolynomialRing const &r);
73
76
 
74
77
class StringParser : public CharacterBasedParser
75
78
{
76
 
  char *s;
 
79
  const char *s;
77
80
  int index;
78
81
  bool hasUngotten;
79
82
  char ungotten;
81
84
  virtual int getChar();
82
85
  virtual void ungetChar(int c);
83
86
 public:
84
 
  StringParser(char *s);
 
87
  StringParser(const char *s);
85
88
};
86
89
 
87
90
#endif