aboutsummaryrefslogtreecommitdiff
path: root/module/c/operators.scm
diff options
context:
space:
mode:
Diffstat (limited to 'module/c/operators.scm')
-rw-r--r--module/c/operators.scm11
1 files changed, 7 insertions, 4 deletions
diff --git a/module/c/operators.scm b/module/c/operators.scm
index f6fa3da9..ab1b3e7c 100644
--- a/module/c/operators.scm
+++ b/module/c/operators.scm
@@ -1,4 +1,7 @@
-(define-module (c operators))
+(define-module (c operators)
+ :export (wordy-binary-operators
+ symbol-binary-operators
+ binary-operators))
;;; Simple operators are those which can be combined with '='
@@ -6,15 +9,15 @@
`(+ - * / & ,(symbol #\|) ^ << >> % < > =))
;; apparently part of C
-(define-public wordy-binary-operators
+(define wordy-binary-operators
'(bitand and_eq and bitor or_eq or xor_eq xor))
-(define-public symbol-binary-operators
+(define symbol-binary-operators
(append (map (lambda (x) (symbol-append x '=)) simple-operators)
`(&& ,(symbol #\| #\|) != ,(symbol #\,)
-> ,(symbol #\.))
simple-operators))
-(define-public binary-operators
+(define binary-operators
(append symbol-binary-operators
wordy-binary-operators))