diff options
author | dan sinclair <dj2@everburning.com> | 2019-01-24 13:45:43 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-24 13:45:43 -0500 |
commit | 4784d319d7a5a434068642eef40d0cdc57375558 (patch) | |
tree | 20d7efe826019624eae48dc2228b8b5b7f5d5211 /src/buffer.cc | |
parent | 9749446771ff9da897dc9fcb3b5793e1993b9f15 (diff) | |
download | amber-4784d319d7a5a434068642eef40d0cdc57375558.tar.gz |
[amberscript] Buffer parsering updates. (#244)
This CL updates the AmberScript parser to handle the changes to the
BUFFER syntax.
Diffstat (limited to 'src/buffer.cc')
-rw-r--r-- | src/buffer.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/buffer.cc b/src/buffer.cc index e4736da..eeabf76 100644 --- a/src/buffer.cc +++ b/src/buffer.cc @@ -16,6 +16,8 @@ namespace amber { +Buffer::Buffer() = default; + Buffer::Buffer(BufferType type) : buffer_type_(type) {} Buffer::~Buffer() = default; @@ -28,10 +30,14 @@ FormatBuffer* Buffer::AsFormatBuffer() { return static_cast<FormatBuffer*>(this); } +DataBuffer::DataBuffer() = default; + DataBuffer::DataBuffer(BufferType type) : Buffer(type) {} DataBuffer::~DataBuffer() = default; +FormatBuffer::FormatBuffer() = default; + FormatBuffer::FormatBuffer(BufferType type) : Buffer(type) {} FormatBuffer::~FormatBuffer() = default; |