Parse hosted modules

This commit is contained in:
Richard Feldman 2022-01-29 21:10:50 -05:00
parent 8633cedf4d
commit 484ce2fbc9
No known key found for this signature in database
GPG key ID: 7E4127D1E4241798
5 changed files with 217 additions and 18 deletions

View file

@ -1,6 +1,6 @@
use std::fmt::Debug;
use crate::header::{AppHeader, InterfaceHeader, PlatformHeader};
use crate::header::{AppHeader, InterfaceHeader, PlatformHeader, HostedHeader};
use crate::ident::Ident;
use bumpalo::collections::{String, Vec};
use bumpalo::Bump;
@ -70,6 +70,7 @@ pub enum Module<'a> {
Interface { header: InterfaceHeader<'a> },
App { header: AppHeader<'a> },
Platform { header: PlatformHeader<'a> },
Hosted { header: HostedHeader<'a> },
}
#[derive(Clone, Copy, Debug, PartialEq)]