-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
29 lines (22 loc) · 714 Bytes
/
justfile
File metadata and controls
29 lines (22 loc) · 714 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# SPDX-License-Identifier: AGPL-3.0-or-later
# SPDX-FileCopyrightText: 2024-2026 Jonathan D.A. Jewell (hyperpolymath)
# justfile — RattleScript task runner
default:
@just --list
# Type-check a file
check FILE:
affinescript check --face rattle {{FILE}}
# Evaluate a file with the interpreter
run FILE:
affinescript eval --face rattle {{FILE}}
# Compile to typed-wasm
build FILE OUT="out.wasm":
affinescript compile --face rattle {{FILE}} -o {{OUT}}
# Show the canonical lowering of a file (debug)
preview FILE:
affinescript preview-python {{FILE}}
# Lint a file
lint FILE:
affinescript lint --face rattle {{FILE}}
# Smoke-test the hello example
hello: (run "examples/hello.affine")