Clean parser.

This commit is contained in:
Sergey Pepyakin 2019-01-25 10:51:42 +01:00
parent b83e6178b8
commit 6221f50545
1 changed files with 1 additions and 14 deletions

View File

@ -1,17 +1,4 @@
use syn::spanned::Spanned; use syn::{spanned::Spanned, FnArg, Ident, ImplItem, ImplItemMethod, ItemImpl, ReturnType};
use syn::{FnArg, Ident, ImplItem, ImplItemMethod, ItemImpl, ReturnType};
pub enum ValueType {
I32,
I64,
F32,
F64,
}
pub struct Signature {
pub params: Vec<ValueType>,
pub return_ty: Option<ValueType>,
}
#[derive(Clone)] #[derive(Clone)]
pub struct Param { pub struct Param {