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 
335 class RUDIMENTS_DLLSPEC codetree {
336  public:
337 
339  codetree();
340 
342  ~codetree();
343 
349  bool parse(const char *input,
350  const char *grammar,
351  const char *startsymbol,
352  xmldomnode *output,
353  const char **codeposition);
354 
360  bool parse(const char *input,
361  codetreegrammar *grammar,
362  const char *startsymbol,
363  xmldomnode *output,
364  const char **codeposition);
365 
369  bool write(xmldomnode *input,
370  const char *grammar,
371  stringbuffer *output);
372 
376  bool write(xmldomnode *input,
377  codetreegrammar *grammar,
378  stringbuffer *output);
379 
381  void setDebugLevel(uint8_t debuglevel);
382 
383  #include <rudiments/private/codetree.h>
384 };
385 
386 class codetreegrammarprivate;
387 
389 class RUDIMENTS_DLLSPEC codetreegrammar : public xmldom {
390  friend class codetree;
391  public:
393  codetreegrammar();
394 
396  ~codetreegrammar();
397 
398  #include <rudiments/private/codetreegrammar.h>
399 };
400 
401 #endif
Definition: xmldomnode.h:123
Definition: stringbuffer.h:22
Definition: codetree.h:389
Definition: codetree.h:335
Definition: xmldom.h:12