From f8d26245d7d6654e6373e2ddabc16c3553dc0cc4 Mon Sep 17 00:00:00 2001 From: tiye Date: Thu, 21 Nov 2024 01:37:55 +0800 Subject: [PATCH] exclude mbti from repo --- src/lib/lib.mbti | 64 ++++++++++++++++++++++++++++++++++++++++++++++ src/main/main.mbti | 15 +++++++++++ 2 files changed, 79 insertions(+) create mode 100644 src/lib/lib.mbti create mode 100644 src/main/main.mbti diff --git a/src/lib/lib.mbti b/src/lib/lib.mbti new file mode 100644 index 0000000..6bfde94 --- /dev/null +++ b/src/lib/lib.mbti @@ -0,0 +1,64 @@ +package tiye/cirru-parser/lib + +// Values +fn format(Array[Cirru], CirruWriterOptions) -> String!FormatCirruError + +fn format_to_lisp(Array[Cirru]) -> String!FormatError + +fn parse(String) -> Array[Cirru]!CirruParseError + +// Types and methods +pub(all) enum Cirru { + Leaf(String) + List(Array[Cirru]) +} +impl Cirru { + compare(Self, Self) -> Int + debug_write(Self, Buffer) -> Unit + is_comment(Self) -> Bool + is_empty(Self) -> Bool + is_nested(Self) -> Bool + length(Self) -> Int + op_equal(Self, Self) -> Bool + output(Self, Logger) -> Unit + to_json(Self) -> Json + to_string(Self) -> String +} +impl Eq for Cirru +impl Hash for Cirru +impl @moonbitlang/core/json.FromJson for Cirru + +type CirruLexItem + +type CirruLexState +impl CirruLexState { + to_string(Self) -> String +} +impl Show for CirruLexState + +type CirruParseError +impl CirruParseError { + to_string(Self) -> String +} + +pub(all) struct CirruWriterOptions { + use_inline : Bool +} + +pub(all) type! FormatCirruError String +impl FormatCirruError { + to_string(Self) -> String +} + +type FormatError + +type WriterNode +impl WriterNode { + op_equal(Self, Self) -> Bool +} +impl Eq for WriterNode + +// Type aliases + +// Traits + diff --git a/src/main/main.mbti b/src/main/main.mbti new file mode 100644 index 0000000..f49045a --- /dev/null +++ b/src/main/main.mbti @@ -0,0 +1,15 @@ +package tiye/cirru-parser/main + +// Values +fn fsReadSync(String) -> String + +fn main_parser() -> Unit + +fn main_writer() -> Unit + +// Types and methods + +// Type aliases + +// Traits +