init
This commit is contained in:
@@ -0,0 +1,3 @@
|
|||||||
|
/bin/
|
||||||
|
/tmp/
|
||||||
|
*.exe
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
param(
|
||||||
|
[ValidateSet("run","build","debug","test","clean")]
|
||||||
|
[string]$Command = "build"
|
||||||
|
)
|
||||||
|
|
||||||
|
$src = "src"
|
||||||
|
$out = "bin\parser.exe"
|
||||||
|
|
||||||
|
switch ($Command) {
|
||||||
|
"run" { odin run $src }
|
||||||
|
"build" { odin build $src -out:$out -o:speed }
|
||||||
|
"debug" { odin build $src -out:$out -debug }
|
||||||
|
"test" { odin test .\tests\ -all-packages }
|
||||||
|
"clean" { Remove-Item -Recurse -Force bin -ErrorAction SilentlyContinue }
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"$schema": "https://raw.githubusercontent.com/DanielGavin/ols/master/misc/ols.schema.json",
|
||||||
|
"enable_document_symbols": true,
|
||||||
|
"enable_hover": true,
|
||||||
|
"enable_snippets": true
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
package skald
|
||||||
|
|
||||||
|
import "core:fmt"
|
||||||
|
|
||||||
|
main :: proc() {
|
||||||
|
fmt.println("Hello!")
|
||||||
|
}
|
||||||
+5218
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,8 @@
|
|||||||
|
package tests
|
||||||
|
|
||||||
|
import "core:testing"
|
||||||
|
|
||||||
|
@(test)
|
||||||
|
my_test :: proc(t: ^testing.T) {
|
||||||
|
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user