From f81eb95e9a6bcfadfcc30f6452ad0e7ee3a54782 Mon Sep 17 00:00:00 2001 From: Jeremy Wall Date: Sun, 26 May 2019 16:25:28 -0500 Subject: [PATCH] DOCS: Add info to the readme about the repl. --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 1609351..ac4d729 100644 --- a/README.md +++ b/README.md @@ -47,6 +47,7 @@ SUBCOMMANDS: fmt Format ucg files automatically. help Prints this message or the help of the given subcommand(s) importers list the available importers for includes + repl Start the ucg repl for interactive evaluation. test Check a list of ucg files for errors and run test assertions. ``` @@ -67,6 +68,19 @@ ARGS: ... Input ucg files or directories to build. If not provided then build the contents of the current directory. ``` +## Run the repl + +```sh +$> ucg repl +ucg> 1 + 1; +2 +ucg> {foo = 1 + 1}; +{ + foo = 2, +} +ucg> +``` + ## Testing ```sh Check a list of ucg files for errors and run test assertions.