diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-07-11 20:31:58 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-07-11 20:31:58 +0200 |
commit | ad0440b16d7e2694ae01df08710f24936b57ec99 (patch) | |
tree | e21b066e4b7d6dca9efe57ac01d6e083a87b7737 /module/c/cpp-types.scm | |
parent | Cleanup + fix __LINE__. (diff) | |
download | calp-ad0440b16d7e2694ae01df08710f24936b57ec99.tar.gz calp-ad0440b16d7e2694ae01df08710f24936b57ec99.tar.xz |
work
Diffstat (limited to '')
-rw-r--r-- | module/c/cpp-types.scm | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/module/c/cpp-types.scm b/module/c/cpp-types.scm index 1a7387f5..e5e73d32 100644 --- a/module/c/cpp-types.scm +++ b/module/c/cpp-types.scm @@ -52,3 +52,16 @@ (match (lexeme-body token) (`(string-literal ,x) x) (_ #f)))) + + +(define (h-string-token? token) + (and (preprocessing-token? token) + (match (lexeme-body token) + (`(h-string ,x) x) + (_ #f)))) + +(define (q-string-token? token) + (and (preprocessing-token? token) + (match (lexeme-body token) + (`(q-string ,x) x) + (_ #f)))) |