Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable Glagol support by translating slashes in identifiers to dots #136

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/backend/escodegen/writer.wisp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@
**macros** __macros__
list->vector listToVector
set! set
foo_bar foo_bar
foo.bar foo_bar
foo/bar foo.bar
number? isNumber
red= redEqual
create-server createServer"
Expand All @@ -71,6 +72,8 @@
(set! id (join "_" (split id "*")))
;; foo.bar -> foo_bar
(set! id (join "_" (split id ".")))
;; foo/bar -> foo.bar
(set! id (join "." (split id "/")))
;; list->vector -> listToVector
(set! id (if (identical? (subs id 0 2) "->")
(subs (join "-to-" (split id "->")) 1)
Expand Down