From 4dd09a6e632d90f7cdbca04c17c3b4a4a96ac8ee Mon Sep 17 00:00:00 2001 From: Casey Rodarmor Date: Thu, 27 Oct 2016 09:50:06 -0700 Subject: [PATCH] Add sloc recipe --- justfile | 3 +++ notes | 9 +++------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/justfile b/justfile index 30a69a4..e66cd4c 100644 --- a/justfile +++ b/justfile @@ -22,6 +22,9 @@ install-clippy: install-nightly: rustup install nightly +sloc: + @cat src/*.rs | wc -l + # make a quine, compile it, and verify it quine: create cc tmp/gen0.c -o tmp/gen0 diff --git a/notes b/notes index 4c6985d..cb53b42 100644 --- a/notes +++ b/notes @@ -1,18 +1,15 @@ notes ----- -- need to actually produce recipe lines - test rendered recipe lines -- assignment - . add tokenizing test that covers interpolation +- implement string parsing . use the same rules as rust: https://doc.rust-lang.org/reference.html#string-literals . \xHH, \u{HHHHHH}, \n, \r, \t, \0, \\, \{ no other escapes . '' strings with no escapes - . run interpolated instead of lines + +- assignment . make quine use assignment and interpolation - . make strings more than one character - .re-order evaluate assignment - do proper handling of the state stack at EOF - disallow unused arguments and variables - allow exporting environment variables