Commit graph

1368 commits

Author SHA1 Message Date
Evan Czaplicki
cee9f6a9d9 Add two dummy files to make it possible to build the compiler from
within emacs. This makes it faster to type-check things and start
testing functions.
2013-06-23 02:43:58 -07:00
Evan Czaplicki
48e7584e95 Update the change log 2013-06-23 01:36:48 -07:00
Evan Czaplicki
e80ea9e430 Add support for pattern matching on literals. 2013-06-23 01:36:23 -07:00
Evan Czaplicki
c158155bdf Switch to using (Map String String) instead of (String -> String) as the environment. 2013-06-23 01:35:04 -07:00
Evan Czaplicki
98eceb5496 Clean up Transform/Replace.hs. Switch the environment from a (String -> String) to a (Map String String). 2013-06-23 01:33:33 -07:00
Evan Czaplicki
cd83c4c8ed Allow full expressions as the last member of binary expressions (t + t + e) 2013-06-23 01:31:34 -07:00
evancz
9a40249e05 Fix the confusion with "Cons" and "Nil" in issue #176.
Also add the ExplicitList expression.
2013-06-20 21:25:10 -07:00
evancz
4a6032f239 Add file 2013-06-18 16:00:51 -07:00
Evan Czaplicki
ec12925ead Merge pull request #175 from madscoaducom/master
Found to '$' replace with '<|'
2013-06-18 14:11:41 -07:00
Mads Flensted-Urech
df667ca022 Replace two '$' with '<|' 2013-06-17 22:49:24 +02:00
evancz
d0c634f16f Allow collages to get property updates, such as opacity and links. 2013-06-16 14:20:47 -07:00
evancz
13dacfd8f9 Stop a bunch of keyboard signals from firing too many events. 2013-06-16 14:20:15 -07:00
evancz
afacd1b858 Add hoverable and hoverables 2013-06-15 00:49:22 -07:00
evancz
316cd1d0ee Add an experimental API for dev tools. 2013-06-14 21:06:54 -07:00
evancz
a9de2342dc Solve a "non-exhaustive pattern match" 2013-06-14 19:38:03 -07:00
evancz
35981eb42f Finish parameterizing the AST and properly check errors in let expressions. 2013-06-14 19:23:58 -07:00
evancz
5e7be20d6d add filepath to docs dependencies 2013-06-13 23:02:05 -07:00
evancz
d7dcf5a9e8 Get the whole compiler building again. 2013-06-13 22:59:14 -07:00
evancz
721ce4f192 Continue reorganizing the code-base.
Remove uses of uniplate, introduces a regression in testing the ordering of Defs in let-expressions.
2013-06-13 22:45:08 -07:00
evancz
272ecc67fd Rename Model/ to Metadata/ because it now only holds info about the types of library functions. 2013-06-13 20:45:12 -07:00
evancz
c7dce08193 Parameterized the AST for type annotations and variable types. Also rename Guid.hs to Unique.hs which reads a lot nicer. 2013-06-13 20:25:00 -07:00
evancz
459cf8ec73 Switch parsers over to new AST 2013-06-13 19:15:40 -07:00
evancz
339ad77c46 Begin getting the parser to match the new SourceSyntax modules. 2013-06-13 18:35:37 -07:00
evancz
bbb2b2a14f Begin migrating the AST to its own branch for the source syntax of the language. 2013-06-13 18:00:24 -07:00
evancz
73317ed123 Switch to using MultiIf for all if expressions. Simplifies AST. 2013-06-13 16:01:35 -07:00
evancz
0758ebf27c Add some notes about changes so far. 2013-06-13 12:59:52 -07:00
evancz
0bee2057d9 Merge branch 'dev' of https://github.com/evancz/Elm into dev 2013-06-13 12:53:15 -07:00
evancz
a3801ac6a8 Ensure that alphas compose when used on groups. 2013-06-13 12:52:23 -07:00
evancz
85110bb625 Properly read alpha value. 2013-06-13 12:17:49 -07:00
evancz
d2a0a0305a Add opacity to the collage API 2013-06-13 12:00:17 -07:00
Evan Czaplicki
955b1fe69b Merge pull request #171 from madscoaducom/dev
fromRecord (toJS): convert recursively and string handling
2013-06-10 08:01:03 -07:00
evancz
569541e72a Fix broken build. 2013-06-09 23:36:59 -07:00
Mads Flensted-Urech
f8c6a93ad3 fromRecord (toJS): convert recursively and string handling 2013-06-09 22:55:38 +02:00
evancz
776ef7c3f9 Fix bug in setting headers. 2013-06-09 11:15:37 -07:00
evancz
6fc30322ce Print out a bunch of extra information about type checking. 2013-06-09 11:15:03 -07:00
evancz
3e45d8e9ce Fix bug in setting headers. 2013-06-09 11:13:03 -07:00
evancz
0d96f82208 Add type constructor for extensible records. 2013-06-07 10:16:38 -07:00
evancz
d629db79c2 Fix issue causing build error. 2013-06-07 09:43:58 -07:00
evancz
6e56df59a5 Switch to only generating elmo files. Turn off the CPP flags in .cabal and remove all generated JS files on each build for now. 2013-06-07 09:38:29 -07:00
evancz
28db384691 Fix parsing bug in as patterns that would fully commit if any spaces were seen.
Also add `as` variables to reported variables in patterns.
2013-06-06 23:16:46 -07:00
evancz
989d878ac5 Merge branch 'master' into dev
Conflicts:
	compiler/Model/Ast.hs
	compiler/Types/Constrain.hs
2013-06-06 22:36:14 -07:00
evancz
ba5cd880d4 Merge branch 'master' of https://github.com/evancz/Elm 2013-06-06 22:30:07 -07:00
evancz
951df07b79 Only produce elmo files. The aim is to use a layout for object files similar to Go, which has thought very hard about how to make compilation really fast. 2013-06-06 22:28:24 -07:00
Evan Czaplicki
152ad77ebc Merge pull request #167 from A1kmm/Support-at-patterns
Support @ patterns as in Haskell
2013-06-06 22:26:14 -07:00
evancz
ad0f1f1fed Switch from sets of constraints to lists of constraints. This should have a positive performance impact, in that list insertion should be asymptotically faster than set insertion. 2013-06-06 21:36:18 -07:00
Andrew Miller
f8547cf4be Update 'at patterns' to use the as notation per mailing list discussion 2013-06-07 12:53:50 +12:00
evancz
1c80966ace Change the Haskell API for compilation to make it easier to see error messages. 2013-06-06 16:11:23 -07:00
Andrew Miller
3c71ee1c4d Support @ patterns as in Haskell 2013-06-06 21:27:20 +12:00
evancz
44fecefde6 Merge branch 'master' of https://github.com/evancz/Elm 2013-06-05 14:22:51 -07:00
evancz
212d19c3e8 Start using the given output-directory 2013-06-05 14:22:30 -07:00