diff options
author | Mike Buland <eichlan@xagasoft.com> | 2011-12-27 00:04:28 -0700 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2011-12-27 00:04:28 -0700 |
commit | f33fdd93ef93fdbb0e6b3a8e2ecb80b78f1b2816 (patch) | |
tree | 3e62207265b4efbbe1565ea885a615e5a910671c /src/astleafliteral.h | |
parent | 32c32bc48c8fd7cffca301b8919fb26726f6467e (diff) | |
download | stage-f33fdd93ef93fdbb0e6b3a8e2ecb80b78f1b2816.tar.gz stage-f33fdd93ef93fdbb0e6b3a8e2ecb80b78f1b2816.tar.bz2 stage-f33fdd93ef93fdbb0e6b3a8e2ecb80b78f1b2816.tar.xz stage-f33fdd93ef93fdbb0e6b3a8e2ecb80b78f1b2816.zip |
Branch building has started.
Diffstat (limited to 'src/astleafliteral.h')
-rw-r--r-- | src/astleafliteral.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/astleafliteral.h b/src/astleafliteral.h new file mode 100644 index 0000000..c8867e1 --- /dev/null +++ b/src/astleafliteral.h | |||
@@ -0,0 +1,22 @@ | |||
1 | #ifndef AST_LEAF_LITERAL_H | ||
2 | #define AST_LEAF_LITERAL_H | ||
3 | |||
4 | #include "astnode.h" | ||
5 | #include "variable.h" | ||
6 | |||
7 | class AstLeafLiteral : public AstNode | ||
8 | { | ||
9 | friend Bu::Formatter &operator<<( Bu::Formatter &f, const AstLeafLiteral &l ); | ||
10 | public: | ||
11 | AstLeafLiteral( const Variable &v ); | ||
12 | virtual ~AstLeafLiteral(); | ||
13 | |||
14 | const Variable &getValue() const { return vValue; } | ||
15 | |||
16 | private: | ||
17 | Variable vValue; | ||
18 | }; | ||
19 | |||
20 | Bu::Formatter &operator<<( Bu::Formatter &f, const AstLeafLiteral &l ); | ||
21 | |||
22 | #endif | ||