added let, about to add types

This commit is contained in:
Andrew Segavac
2021-04-18 08:51:21 -06:00
parent facead092f
commit 4446d0f297
11 changed files with 438 additions and 216 deletions

View File

@@ -1,6 +1,6 @@
use std::str::FromStr;
use crate::ast;
use crate::types;
grammar;
@@ -53,7 +53,7 @@ pub Block: ast::Block = {
}
pub TypeUsage: ast::TypeUsage = {
<n:Spanned<Identifier>> => ast::TypeUsage{name: n}
<n:Spanned<Identifier>> => ast::TypeUsage{name: n, ty: types::SpecifiedType::Unknown}
}
pub VariableDeclaration: ast::VariableDeclaration = {