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 
322 class RUDIMENTS_DLLSPEC codetree {
323  public:
324 
326  codetree();
327 
329  ~codetree();
330 
336  bool parse(const char *input,
337  const char *grammar,
338  const char *startsymbol,
339  xmldomnode *output,
340  const char **codeposition);
341 
347  bool parse(const char *input,
348  codetreegrammar *grammar,
349  const char *startsymbol,
350  xmldomnode *output,
351  const char **codeposition);
352 
356  bool write(xmldomnode *input,
357  const char *grammar,
358  stringbuffer *output);
359 
363  bool write(xmldomnode *input,
364  codetreegrammar *grammar,
365  stringbuffer *output);
366 
368  void setDebugLevel(uint8_t debuglevel);
369 
370  #include <rudiments/private/codetree.h>
371 };
372 
373 class codetreegrammarprivate;
374 
376 class codetreegrammar : public xmldom {
377  friend class codetree;
378  public:
380  codetreegrammar();
381 
384 
385  #include <rudiments/private/codetreegrammar.h>
386 };
387 
388 #endif
Definition: xmldomnode.h:123
Definition: stringbuffer.h:22
Definition: codetree.h:376
Definition: codetree.h:322
Definition: xmldom.h:12