~ubuntu-branches/ubuntu/jaunty/aspectc++/jaunty

« back to all changes in this revision

Viewing changes to Puma/src/parser/cparser/CParser.h

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2008-07-07 14:41:02 UTC
  • mfrom: (1.1.3 upstream) (6.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080707144102-lzml7t07f3sl00r5
Tags: 1.0pre4~svn.20080711-1
* new upstream snapshot.
* include all upstream documentation. Clarifying emails regarding
  licensing has been included into debian/copyright.
* reformat description following recomendations of
  http://www.debian.org/doc/debian-policy/ch-controlfields.html#s-f-Description
  (Closes: #480316)

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
#ifndef __CParser__
20
20
#define __CParser__
21
21
 
 
22
/** \file
 
23
 *  C parser abstraction. */
 
24
 
22
25
#include "Puma/Parser.h"
23
26
#include "Puma/CSyntax.h"
24
27
#include "Puma/CBuilder.h"
27
30
namespace Puma {
28
31
 
29
32
 
 
33
/** \class CParser CParser.h Puma/CParser.h
 
34
 *  C parser abstraction. Setups the C parser components
 
35
 *  ready to be used for parsing C input files (see class
 
36
 *  Puma::CSyntax, Puma::CBuilder, and Puma::CSemantic). */
30
37
class CParser : public Parser {
31
38
  CSyntax _syntax;
32
39
  CBuilder _builder;
33
40
  CSemantic _semantic;
34
41
  
35
42
public:
 
43
  /** Constructor. */
36
44
  CParser () : Parser (_syntax, _builder, _semantic), 
37
45
               _syntax (_builder, _semantic),
38
46
               _semantic (_syntax, _builder) {}
39
47
 
 
48
  /** Get the C syntactic analysis object. */
40
49
  CSyntax &syntax () const { return (CSyntax&)_syntax; }
 
50
  /** Get the C tree builder object. */
41
51
  CBuilder &builder () const { return (CBuilder&)_builder; }
 
52
  /** Get the C semantic analysis object. */
42
53
  CSemantic &semantic () const { return (CSemantic&)_semantic; }
43
54
};
44
55