summaryrefslogtreecommitdiff
path: root/src/ast.rs
diff options
context:
space:
mode:
authorDavid Li <li.davidm96@gmail.com>2017-11-05 11:09:25 -0500
committerDavid Li <li.davidm96@gmail.com>2017-11-05 11:09:25 -0500
commit44570e6b300961cdcf080b82e7cc1d89fc553b0a (patch)
tree2efa439003990350b1bce24373819765ccbe886d /src/ast.rs
parent1c62effe91b5e50d1dbbc79c01655abfb3c17e16 (diff)
Check types in bindings, unary operators
Diffstat (limited to 'src/ast.rs')
-rw-r--r--src/ast.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ast.rs b/src/ast.rs
index c3925b0..d60edc0 100644
--- a/src/ast.rs
+++ b/src/ast.rs
@@ -75,9 +75,9 @@ pub enum Expression {
#[derive(Debug)]
pub struct VarDec {
- name: WithLocation<String>,
- type_: Option<String>,
- value: Box<WithLocation<Expression>>,
+ pub name: WithLocation<String>,
+ pub type_: Option<String>,
+ pub value: Box<WithLocation<Expression>>,
}
impl VarDec {