From 15c64a46e697d999123fbc0fe96a270c08e62340 Mon Sep 17 00:00:00 2001 From: lash Date: Wed, 12 Apr 2023 18:20:45 +0100 Subject: [PATCH] Fix dev commands directory structure --- README.md | 4 ++-- dev/{testdata/generate_testdata.go => gendata/main.go} | 0 dev/{interactive.go => interactive/main.go} | 0 vm/doc.go | 2 ++ 4 files changed, 4 insertions(+), 2 deletions(-) rename dev/{testdata/generate_testdata.go => gendata/main.go} (100%) rename dev/{interactive.go => interactive/main.go} (100%) create mode 100644 vm/doc.go diff --git a/README.md b/README.md index 75ac4cd..ed368f3 100644 --- a/README.md +++ b/README.md @@ -192,14 +192,14 @@ Located in the `dev/` directory. ### Test data generation -`go run ./dev/testdata/ ` +`go run ./dev/gendata/ ` Outputs bytecodes and templates for test data scenarios used in `engine` unit tests. ### Interactive runner -`go run ./dev [-d ] [--root ]` +`go run ./dev/interactive [-d ] [--root ]` Creates a new interactive session using `engine.DefaultEngine`, starting execution at symbol `root_symbol` diff --git a/dev/testdata/generate_testdata.go b/dev/gendata/main.go similarity index 100% rename from dev/testdata/generate_testdata.go rename to dev/gendata/main.go diff --git a/dev/interactive.go b/dev/interactive/main.go similarity index 100% rename from dev/interactive.go rename to dev/interactive/main.go diff --git a/vm/doc.go b/vm/doc.go new file mode 100644 index 0000000..7a8a8b9 --- /dev/null +++ b/vm/doc.go @@ -0,0 +1,2 @@ +// Package vm handles the line-by-line execution of festive bytecode. +package vm