aboutsummaryrefslogtreecommitdiff
path: root/module/c/cpp-types.scm
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2022-07-21 16:04:56 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2022-07-21 17:28:19 +0200
commit0e3df321ab2fce795bdc6b9aeb92724733cf8ee0 (patch)
tree8370e465f2b16f46f623f3e77eef4b1be2219f92 /module/c/cpp-types.scm
parentMerge call-with-tmpfile and diffs for testrunner. (diff)
downloadcalp-0e3df321ab2fce795bdc6b9aeb92724733cf8ee0.tar.gz
calp-0e3df321ab2fce795bdc6b9aeb92724733cf8ee0.tar.xz
Major work on parser.
Diffstat (limited to 'module/c/cpp-types.scm')
-rw-r--r--module/c/cpp-types.scm3
1 files changed, 2 insertions, 1 deletions
diff --git a/module/c/cpp-types.scm b/module/c/cpp-types.scm
index 6dad061e..bf51d009 100644
--- a/module/c/cpp-types.scm
+++ b/module/c/cpp-types.scm
@@ -86,7 +86,8 @@
;; NOTE q-string tokens are never produced by the lexer,
;; since they instead are treated as regular strings
(define (q-string-token? token)
- (string-token? token))
+ (cond ((string-token? token)
+ (lambda (a . _) a) => (lambda (_ . a) (apply values a)))))
(define (make-string-literal parts)
(typecheck parts (list-of (or string? list?)))