-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* some of the keywords are now prepended with '@'; all the words starting with '@' are now reserved for various attributes, not to pollute the common "namespace" of reserved words: parallel -> @parallel, pure -> @pure, nothrow -> @nothrow, static -> @Private, ccode -> @ccode, object -> @object. "inline" was removed (probably later on @inline and maybe @non_inline will be added). @unzip was added to indicate unzipped array comprehensions (not implemented yet). @DaTa was added as a keyword to embed datafiles into the generated .c files, e.g. `val default_font_data = @DaTa "rubik.ttf"` (but it's not implemented yet either). * added 2 special kinds of fold loop: all & any fold ok=true for i <- l {if !predicate(i) {break with false}; ok} ===> all(for i <- l {predicate(i)}) fold ok=false for i <- l {if predicate(i) {break with true}; ok} ===> any(for i <- l {predicate(i)}) later on find and find_opt will be added. * the body of for loop (including folding and comprehensions cases) can now be a pattern-matching body: for month <- months { match month { July | August => rest() | _ => work() } } can now be replaced with for _ <- months { | July | August => rest() | _ => work() } // note that the 'month' variable is not explicitly used and thus can be replaced with '_' * [K|C]ExpBinOp, [K|C]ExpUnOp were renamed to easier-to-type and easier-to-read read [K|C]ExpBinary and [K|C]ExpUnary, respetively.
- Loading branch information
Showing
46 changed files
with
608 additions
and
526 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
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
Oops, something went wrong.