From 9a1c3c7cfc96cb6ee1c9f7bc103b99b89da43d6e Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 19 Aug 2010 03:25:43 +0000 Subject: Coherent AString and Lexeme implementation. A Lexeme is any "token" read from input, a lexeme has not yet beeen parsed and could parse to anything, e.g. a string, an expression, a number, etc. Lexemes are not (yet?) exposed to the language or ever compiled. A String is a string literal, which can contain any character directly except " and \. There are two special escapes: \" and \\, any other character following a \ is a syntax error. Fix garbage collection of REPL objects, leading to type errors from type variable re-use because a type variable for a given AST's /address/ exists, but that address has actually been deleted and reused by new (i.e. make top level REPL expressions and types be GC roots). git-svn-id: http://svn.drobilla.net/resp/resp@261 ad02d1e2-f140-0410-9f75-f8b11f17cedd --- test/string.resp | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 test/string.resp (limited to 'test') diff --git a/test/string.resp b/test/string.resp new file mode 100644 index 0000000..ff980a9 --- /dev/null +++ b/test/string.resp @@ -0,0 +1,4 @@ +(def greeting "Hello, world!") + +greeting + -- cgit v1.2.1