Skip to content

Commit

Permalink
vaev-script: Renamed vaev-js.
Browse files Browse the repository at this point in the history
  • Loading branch information
sleepy-monax committed Nov 4, 2024
1 parent 60766db commit eceefaa
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 15 deletions.
4 changes: 0 additions & 4 deletions src/vaev-js/_mod.h

This file was deleted.

4 changes: 2 additions & 2 deletions src/vaev-js/ast.h → src/vaev-script/ast.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include <karm-base/union.h>
#include <karm-base/vec.h>

namespace Vaev::Js {
namespace Vaev::Script {

struct Expr;

Expand Down Expand Up @@ -59,4 +59,4 @@ struct Stmt : public _Stmt {

struct Decl {};

} // namespace Vaev::Js
} // namespace Vaev::Script
4 changes: 2 additions & 2 deletions src/vaev-js/cli/main.cpp → src/vaev-script/cli/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#include <karm-io/funcs.h>
#include <karm-sys/entry.h>
#include <karm-sys/file.h>
#include <vaev-js>
#include <vaev-script/lexer.h>

Async::Task<> entryPointAsync(Sys::Context &ctx) {
auto args = Sys::useArgs(ctx);
Expand All @@ -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();
Expand Down
Original file line number Diff line number Diff line change
@@ -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"
]
}
2 changes: 1 addition & 1 deletion src/vaev-js/lexer.cpp → src/vaev-script/lexer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#include "lexer.h"

namespace Vaev::Js {
namespace Vaev::Script {

// MARK: Token -----------------------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion src/vaev-js/lexer.h → src/vaev-script/lexer.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include <karm-io/emit.h>
#include <karm-io/sscan.h>

namespace Vaev::Js {
namespace Vaev::Script {

// 12.6 MARK: Tokens -----------------------------------------------------------
// https://tc39.es/ecma262/#sec-tokens
Expand Down
4 changes: 2 additions & 2 deletions src/vaev-js/manifest.json → src/vaev-script/manifest.json
Original file line number Diff line number Diff line change
@@ -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"
]
Expand Down

0 comments on commit eceefaa

Please sign in to comment.