From 3a653b6624d30f74fbcbf7259bc9903e1df19cbf Mon Sep 17 00:00:00 2001 From: rvcas Date: Sat, 5 Nov 2022 18:20:23 -0400 Subject: [PATCH] chore: all dead code till we sort out doc comments --- crates/lang/src/parser.rs | 1 + crates/lang/src/parser/token.rs | 14 +++++++------- examples/sample/src/sample/mint.ak | 3 --- 3 files changed, 8 insertions(+), 10 deletions(-) diff --git a/crates/lang/src/parser.rs b/crates/lang/src/parser.rs index 0e0560a2..c456ec6c 100644 --- a/crates/lang/src/parser.rs +++ b/crates/lang/src/parser.rs @@ -15,6 +15,7 @@ use error::ParseError; use extra::ModuleExtra; use token::Token; +#[allow(dead_code)] enum DefinitionOrExtra { Definition(Box), ModuleComment(Span), diff --git a/crates/lang/src/parser/token.rs b/crates/lang/src/parser/token.rs index 24134528..4a382980 100644 --- a/crates/lang/src/parser/token.rs +++ b/crates/lang/src/parser/token.rs @@ -50,10 +50,10 @@ pub enum Token { RArrow, // '->' DotDot, // '..' EndOfFile, - // Extra - CommentNormal, - CommentDoc, - CommentModule, + // Docs/Extra + Comment, + DocComment, + ModuleComment, EmptyLine, // Keywords (alphabetically): As, @@ -124,9 +124,9 @@ impl fmt::Display for Token { Token::RArrow => "->", Token::DotDot => "..", Token::EndOfFile => "EOF", - Token::CommentNormal => "//", - Token::CommentDoc => "///", - Token::CommentModule => "////", + Token::Comment => "//", + Token::DocComment => "///", + Token::ModuleComment => "////", Token::EmptyLine => "EMPTYLINE", Token::As => "as", Token::Assert => "assert", diff --git a/examples/sample/src/sample/mint.ak b/examples/sample/src/sample/mint.ak index 71238e01..fc5182b7 100644 --- a/examples/sample/src/sample/mint.ak +++ b/examples/sample/src/sample/mint.ak @@ -2,9 +2,6 @@ use sample/context pub type Mint { currency_symbol: ByteArray, - thing: Int, - thing: Int, - thing: Int, } pub type ScriptContext =