Skip to content
This repository was archived by the owner on Jun 16, 2020. It is now read-only.

Fix markdown syntax to be compatible with the pulldown parser. #44

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ pub enum CustomSectionKind {
Linking,
}

/// Section code as defined at https://webassembly.github.io/spec/binary/modules.html#sections
/// Section code as defined [here].
///
/// [here]: https://webassembly.github.io/spec/binary/modules.html#sections
#[derive(Debug,Copy,Clone,PartialEq,Eq,PartialOrd,Ord)]
pub enum SectionCode<'a> {
Custom {
Expand All @@ -61,7 +63,9 @@ pub enum SectionCode<'a> {
Data, // Data segments
}

/// Types as defined at https://webassembly.github.io/spec/syntax/types.html#types
/// Types as defined [here].
///
/// [here]: https://webassembly.github.io/spec/syntax/types.html#types
#[derive(Debug,Copy,Clone,PartialEq,Eq)]
pub enum Type {
I32,
Expand Down Expand Up @@ -99,7 +103,9 @@ pub enum NameEntry<'a> {
Local(Vec<LocalName<'a>>),
}

/// External types as defined at https://webassembly.github.io/spec/syntax/types.html#external-types
/// External types as defined [here].
///
/// [here]: https://webassembly.github.io/spec/syntax/types.html#external-types
#[derive(Debug, Copy, Clone)]
pub enum ExternalKind {
Function,
Expand Down Expand Up @@ -281,7 +287,9 @@ impl Ieee64 {
}
}

/// Instructions as defined at https://webassembly.github.io/spec/binary/instructions.html
/// Instructions as defined [here].
///
/// [here]: https://webassembly.github.io/spec/binary/instructions.html
#[derive(Debug)]
pub enum Operator<'a> {
Unreachable,
Expand Down