Commit graph

9048 commits

Author SHA1 Message Date
Richard Feldman
8d5fd55056 First attempt at canonicalizing records 2019-12-16 21:29:03 -05:00
Richard Feldman
04fd945813 Failing record canonicalization test 2019-12-16 21:29:03 -05:00
Richard Feldman
7774857862
Merge pull request #63 from rtfeldman/ct/new-line-mid-lambda-arrow
Multi line pattern formatting
2019-12-16 21:28:51 -05:00
Chad Stearns
582749523d Pulling in trunk 2019-12-16 13:36:11 -05:00
Chad Stearns
faee0a657d Format code 2019-12-16 13:35:30 -05:00
Chadtech
517098ef17
Merge branch 'trunk' into ct/new-line-mid-lambda-arrow 2019-12-16 13:33:39 -05:00
Chad Stearns
01a283c121 Complicated multiline pattern code with comment 2019-12-16 13:33:13 -05:00
Chad Stearns
5a383b81b8 Commented out failing test 2019-12-16 13:29:09 -05:00
Chad Stearns
d6a3f2cfe9 Removed denest and stopped manually newlining 2019-12-16 13:21:25 -05:00
Chad Stearns
728d3a069f Denest pattern inside spaces too 2019-12-16 12:53:57 -05:00
Chad Stearns
bf2b15ad53 Ran formatter and clippy 2019-12-16 12:52:39 -05:00
Chad Stearns
1c64c8088f Handle and format multiline patterns 2019-12-16 12:51:13 -05:00
Folkert de Vries
c4b7b63c31
Merge pull request #59 from rtfeldman/type-signatures
Parse type signatures
2019-12-16 15:49:22 +01:00
Folkert de Vries
dc0fec79ba update cargo lock 2019-12-16 15:42:46 +01:00
Folkert de Vries
d4a7559559 pre-allocate vector 2019-12-16 15:40:51 +01:00
Richard Feldman
c90e90dbc8
Merge branch 'trunk' into type-signatures 2019-12-15 23:53:48 -05:00
Richard Feldman
db41d66285
Merge pull request #62 from rtfeldman/builtins
Update some builtins
2019-12-15 23:53:37 -05:00
Richard Feldman
0343727ae8 Revise roc-for-elm-programmers a bit. 2019-12-15 23:42:38 -05:00
Richard Feldman
6433c6b704 Update a comment 2019-12-15 22:17:47 -05:00
Richard Feldman
a7f954c3fb Update a bunch of builtins 2019-12-15 22:17:47 -05:00
Richard Feldman
c41b42906d
Merge branch 'trunk' into type-signatures 2019-12-15 17:28:04 -05:00
Richard Feldman
57c009f296
Merge pull request #60 from rtfeldman/update-inkwell
Update Inkwell to 0.5.3
2019-12-15 17:27:50 -05:00
Richard Feldman
00221a6d4d Update Inkwell to 0.5.3 2019-12-15 17:17:41 -05:00
Chad Stearns
7714639a45 Added test for when lamda arrow is on new line 2019-12-14 22:24:31 -05:00
Folkert
e5f2483ddc do what clippy wants 2019-12-13 23:17:03 +01:00
Folkert
fcb78787ad Tie the knot
Within parens, an expression can occur, creating a recursive grammer
like so:

term = * | Int | Bool | ... | ( expr )
expr = term, ..., term -> term | term

This means that a function type like

    (Int, Int -> Bool), Float -> Bool

is now parsed correctly
2019-12-13 23:06:00 +01:00
Folkert
35c8b9b5c9 Parse function type signatures 2019-12-13 22:52:49 +01:00
Folkert
502021d955 Always parse type signatures in let blocks.
Formerly, this would not parse

    foo : Int
    foo = 4

While this would

    bar = 3
    foo : Int
    foo = 4

Now, the first def can also be a type annotation.

This change performs some code duplication. This can probably be
abstracted/unified, but I'm not sure how to do that in a clean way.
2019-12-13 19:53:46 +01:00
Richard Feldman
dbea3324a3
Merge pull request #58 from rtfeldman/ct/format-new-line-before-return
Format new line before return value
2019-12-11 21:06:44 -08:00
Chad Stearns
31971bddab Imperative style implementation forr empty_line_before_expr 2019-12-11 14:00:13 -05:00
Chad Stearns
802a820699 Comply with clippy 2019-12-09 20:44:16 -05:00
Chad Stearns
86e393901f Merge branch 'ct/format-new-line-before-return' of github.com:rtfeldman/roc into ct/format-new-line-before-return 2019-12-09 17:33:24 -05:00
Chad Stearns
e0ca4ec355 Ran formatter 2019-12-09 06:41:42 -05:00
Chadtech
1a7b74cd3a
Merge branch 'trunk' into ct/format-new-line-before-return 2019-12-08 21:59:18 -05:00
Chad Stearns
2acbaf405c Pluralized variable name 2019-12-08 21:55:04 -05:00
Chad Stearns
3c8d678c18 New commented out test that is currently breaking under parser errors 2019-12-08 21:51:44 -05:00
Chad Stearns
6e91339700 Format code and tests for newline before return 2019-12-08 21:35:51 -05:00
Richard Feldman
045168c761
Merge pull request #57 from rtfeldman/record-wip
Groundwork for records and type aliases
2019-12-07 23:25:22 -05:00
Richard Feldman
7beca9e0fa cargo fmt 2019-12-07 23:08:36 -05:00
Richard Feldman
99b14aed27 Follow clippy's suggestions 2019-12-07 23:05:25 -05:00
Richard Feldman
f2f305b7a8 Clean up warnings 2019-12-07 23:05:25 -05:00
Richard Feldman
ca219a1b64 Record problems in unification 2019-12-07 23:05:25 -05:00
Richard Feldman
e949c56f70 Try out UnifyResult 2019-12-07 23:05:25 -05:00
Richard Feldman
0093298ed0 Get more of unification compiling 2019-12-07 23:05:21 -05:00
Richard Feldman
e831e165dd Add basic support for Record and Alias 2019-12-07 17:47:20 -05:00
Richard Feldman
cd09467a09 Remove stray dbg 2019-12-07 16:48:17 -05:00
Richard Feldman
b2ddcb8fb3
Merge pull request #56 from rtfeldman/fix-hex-parsing
Fix parsing hex/binary/octal literals
2019-12-07 06:49:24 -05:00
Richard Feldman
7f553be534
Merge branch 'trunk' into fix-hex-parsing 2019-12-07 02:29:58 -05:00
Richard Feldman
23ac81b7ae Restore Int.highest and Int.lowest 2019-12-07 02:29:30 -05:00
Richard Feldman
2710dcb95c Fix parsing hex/octal/binary literals 2019-12-07 02:27:12 -05:00