Fixed Incompatabilities with Minigrace #2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I've made several changes to increase the ammount of code that works in both kernan and minigrace, specifically:
{Foo.Bar -> hello }is shorthand for{ _ : Foo.Bar -> hello }\ein string literals is now the ANSI escape character.statements can end via means other than a newline or semicolon e.g. in "class{ foo }", "foo" is ended by the "}".
foo(\nbar), where \n is a newline character).matchmethod though.*,replace(_) with(_), andsplit(_)methods.||and&&when the RHS is a block.truncatedmethod.==,indexOf,do(_) separatedBy(_),map(_),++(_),size,sizeIfUnknown,first,last,indices,hash,at(_) and contains(_). Note that because I'm lazy, I didn't make map lazy (as it is in minigrace).Incompatabilities I have not fixed (that can't simply be fixed by using a custom dialect)
...is abstractandis requiredouteras an expression (and not just a receiver)outer.outer.{[ "hello" ]}, one must write{[ "hello" ] },isMeandmyIdentityHashmethods.