From eceefaa8a7b30ac1ad22ef0547348445964634db Mon Sep 17 00:00:00 2001 From: VAN BOSSUYT Nicolas Date: Mon, 4 Nov 2024 10:18:16 +0100 Subject: [PATCH] vaev-script: Renamed vaev-js. --- src/vaev-js/_mod.h | 4 ---- src/{vaev-js => vaev-script}/ast.h | 4 ++-- src/{vaev-js => vaev-script}/cli/main.cpp | 4 ++-- src/{vaev-js => vaev-script}/cli/manifest.json | 6 +++--- src/{vaev-js => vaev-script}/lexer.cpp | 2 +- src/{vaev-js => vaev-script}/lexer.h | 2 +- src/{vaev-js => vaev-script}/manifest.json | 4 ++-- 7 files changed, 11 insertions(+), 15 deletions(-) delete mode 100644 src/vaev-js/_mod.h rename src/{vaev-js => vaev-script}/ast.h (94%) rename src/{vaev-js => vaev-script}/cli/main.cpp (92%) rename src/{vaev-js => vaev-script}/cli/manifest.json (59%) rename src/{vaev-js => vaev-script}/lexer.cpp (99%) rename src/{vaev-js => vaev-script}/lexer.h (99%) rename src/{vaev-js => vaev-script}/manifest.json (64%) diff --git a/src/vaev-js/_mod.h b/src/vaev-js/_mod.h deleted file mode 100644 index 66fb0ee..0000000 --- a/src/vaev-js/_mod.h +++ /dev/null @@ -1,4 +0,0 @@ -#pragma once - -#include "ast.h" -#include "lexer.h" diff --git a/src/vaev-js/ast.h b/src/vaev-script/ast.h similarity index 94% rename from src/vaev-js/ast.h rename to src/vaev-script/ast.h index c4d86fe..6394933 100644 --- a/src/vaev-js/ast.h +++ b/src/vaev-script/ast.h @@ -4,7 +4,7 @@ #include #include -namespace Vaev::Js { +namespace Vaev::Script { struct Expr; @@ -59,4 +59,4 @@ struct Stmt : public _Stmt { struct Decl {}; -} // namespace Vaev::Js +} // namespace Vaev::Script diff --git a/src/vaev-js/cli/main.cpp b/src/vaev-script/cli/main.cpp similarity index 92% rename from src/vaev-js/cli/main.cpp rename to src/vaev-script/cli/main.cpp index 893152f..fdfbb4b 100644 --- a/src/vaev-js/cli/main.cpp +++ b/src/vaev-script/cli/main.cpp @@ -2,7 +2,7 @@ #include #include #include -#include +#include Async::Task<> entryPointAsync(Sys::Context &ctx) { auto args = Sys::useArgs(ctx); @@ -18,7 +18,7 @@ Async::Task<> entryPointAsync(Sys::Context &ctx) { auto file = co_try$(Sys::File::open(url)); auto buf = co_try$(Io::readAllUtf8(file)); Io::SScan s{buf}; - Vaev::Js::Lexer lex{s}; + Vaev::Script::Lexer lex{s}; while (not lex.ended()) Sys::println("{}", lex.next()); co_return Ok(); diff --git a/src/vaev-js/cli/manifest.json b/src/vaev-script/cli/manifest.json similarity index 59% rename from src/vaev-js/cli/manifest.json rename to src/vaev-script/cli/manifest.json index 3c1ccb9..48c2449 100644 --- a/src/vaev-js/cli/manifest.json +++ b/src/vaev-script/cli/manifest.json @@ -1,10 +1,10 @@ { "$schema": "https://schemas.cute.engineering/stable/cutekit.manifest.component.v1", - "id": "vaev-js.cli", + "id": "vaev-script.cli", "type": "exe", - "description": "JavaScript engine testing tool", + "description": "ECMAScript engine testing tool", "requires": [ "karm-sys", - "vaev-js" + "vaev-script" ] } diff --git a/src/vaev-js/lexer.cpp b/src/vaev-script/lexer.cpp similarity index 99% rename from src/vaev-js/lexer.cpp rename to src/vaev-script/lexer.cpp index 247563f..79fe30e 100644 --- a/src/vaev-js/lexer.cpp +++ b/src/vaev-script/lexer.cpp @@ -2,7 +2,7 @@ #include "lexer.h" -namespace Vaev::Js { +namespace Vaev::Script { // MARK: Token ----------------------------------------------------------------- diff --git a/src/vaev-js/lexer.h b/src/vaev-script/lexer.h similarity index 99% rename from src/vaev-js/lexer.h rename to src/vaev-script/lexer.h index 882c26b..7453a0c 100644 --- a/src/vaev-js/lexer.h +++ b/src/vaev-script/lexer.h @@ -3,7 +3,7 @@ #include #include -namespace Vaev::Js { +namespace Vaev::Script { // 12.6 MARK: Tokens ----------------------------------------------------------- // https://tc39.es/ecma262/#sec-tokens diff --git a/src/vaev-js/manifest.json b/src/vaev-script/manifest.json similarity index 64% rename from src/vaev-js/manifest.json rename to src/vaev-script/manifest.json index 9031661..f6f391b 100644 --- a/src/vaev-js/manifest.json +++ b/src/vaev-script/manifest.json @@ -1,8 +1,8 @@ { "$schema": "https://schemas.cute.engineering/stable/cutekit.manifest.component.v1", - "id": "vaev-js", + "id": "vaev-script", "type": "lib", - "description": "JavaScript library & runtime for Vaev", + "description": "ECMAScript library & runtime for Vaev", "requires": [ "karm-io" ]