Rudiments
codetree.h
1 // Copyright (c) 2012 David Muse
2 // See the COPYING file for more information.
3 
4 #ifndef RUDIMENTS_CODETREE_H
5 #define RUDIMENTS_CODETREE_H
6 
7 #include <rudiments/private/codetreeincludes.h>
8 
9 class codetreegrammar;
10 class codetreeprivate;
11 
337 class RUDIMENTS_DLLSPEC codetree {
338  public:
339 
341  codetree();
342 
344  ~codetree();
345 
351  bool parse(const char *input,
352  const char *grammar,
353  const char *startsymbol,
355  const char **codeposition);
356 
362  bool parse(const char *input,
363  codetreegrammar *grammar,
364  const char *startsymbol,
365  xmldomnode *output,
366  const char **codeposition);
367 
371  bool write(xmldomnode *input,
372  const char *grammar,
373  stringbuffer *output);
374 
378  bool write(xmldomnode *input,
379  codetreegrammar *grammar,
380  stringbuffer *output);
381 
383  void setDebugLevel(uint8_t debuglevel);
384 
385  #include <rudiments/private/codetree.h>
386 };
387 
388 class codetreegrammarprivate;
389 
391 class RUDIMENTS_DLLSPEC codetreegrammar : public xmldom {
392  friend class codetree;
393  public:
395  codetreegrammar();
396 
398  ~codetreegrammar();
399 
400  #include <rudiments/private/codetreegrammar.h>
401 };
402 
403 #endif
Definition: input.h:9
Definition: xmldomnode.h:123
Definition: stringbuffer.h:22
Definition: codetree.h:391
Definition: codetree.h:337
Definition: output.h:9
Definition: xmldom.h:12