-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #35 from ArkScript-lang/feat/coding-style
fix: coding style
- Loading branch information
Showing
20 changed files
with
100 additions
and
204 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,15 @@ | ||
!{-> (arg fn1 ...fn) { | ||
!{if (> (len fn) 0) | ||
(-> (fn1 arg) ...fn) | ||
(fn1 arg) | ||
} | ||
}} | ||
(fn1 arg)}}} | ||
|
||
# internal, do not use | ||
!{__suffix-dup (sym x) { | ||
!{if (> x 1) | ||
(__suffix-dup sym (- x 1)) | ||
} | ||
(symcat sym x) | ||
}} | ||
(__suffix-dup sym (- x 1))} | ||
(symcat sym x)}} | ||
|
||
!{partial (func ...defargs) { | ||
!{bloc (__suffix-dup a (- (argcount func) (len defargs)))} | ||
(fun (bloc) (func ...defargs bloc)) | ||
!{undef bloc} | ||
}} | ||
!{undef bloc}}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.