Commits on Apr 23, 2017
  1. Merge pull request #1586 from HeilTec/patch-1

    Minor grammatical fix
    evancz committed on GitHub Apr 23, 2017
Commits on Apr 22, 2017
  1. Minor grammatical fix

    Trying to help making elm documentation even better.
    HeilTec committed on GitHub Apr 22, 2017
Commits on Mar 10, 2017
  1. Try to make this easier to read

    evancz committed on GitHub Mar 10, 2017
Commits on Dec 22, 2016
Commits on Dec 19, 2016
  1. Update links in the README

    evancz committed Dec 19, 2016
  2. Show profiling results of {-# SCC elm_* #-} cost centers

    This is based on @justinmanley’s contribution that outlined how to
    profile the compiler in a nice way. This code was used extensively
    while rewriting the parser and exhaustiveness checker, making it really
    easy to focus on high-impact optimizations.
    evancz committed Dec 19, 2016
  3. Get rid of bench/

    It was out-dated and I’m hoping we can get a proper benchmarking
    library written in Elm at some point. I will also replace this
    directory with some code that helps profile the compiler itself. Seems
    like a better fit for this repo.
    evancz committed Dec 19, 2016
  4. Fix #1535, order of defs matters!

    In some cases, I skipped reversing things back to their original order.
    In this case, the original order was important!
    There is already a test for this, but I guess I got excited about the
    new parse error messages and forgot about this case.
    The NonHomogeneousRecords change now matches the previous version:
    evancz committed Dec 19, 2016
  5. Fix #1533, parsing upper case hex digits

    The check for upper case letters A-F had a comparison going the wrong
    way. Rewrote to make it more clear.
    evancz committed Dec 19, 2016
  6. Fix parser when . or - come right after a (

    Fix #1532 and fix #1536 by trying to parse normal expressions first.
    This way you commit to (.x) before trying (.). A special case was
    needed to try (-) before committing to (-2) so both cases will work.
    Also add tests for parsing record accessors and parsing negative
    evancz committed Dec 19, 2016
Commits on Dec 18, 2016
  1. Make (best students).name work again

    Just need to make it so a .field can follow a tuple term. The case we
    are interested in is tuples with no commas (a.k.a. not tuples) but I
    think the error message will be nicer if both scenarios pass the parser.
    evancz committed Dec 18, 2016
  2. Disallow @ in infix operators

    evancz committed Dec 18, 2016
Commits on Dec 17, 2016
  1. Correctly parse when .x is an argument

    Just check for arguments first. This should be more common, so it’s
    likely this is a bit faster.
    evancz committed Dec 17, 2016
Commits on Dec 16, 2016
  1. Fix bug in binop canonicalizer

    evancz committed Dec 16, 2016
  2. Fix bug in doc comment parser

    evancz committed Dec 16, 2016
  3. Get rid of EndOfFile parse theory

    It just cluttered up the error messages, making them more confusing
    evancz committed Dec 16, 2016
  4. Add locations to context stack, allowing nicer error messages

    The context stack now says where each bit of context starts. That means
    we can show all the relevant code when there is a parse error, not just
    the line where things went wrong.
    evancz committed Dec 16, 2016
  5. Improve code that extracts code from source in errors

    It now will add the red underline as long as it appears on the last
    line of the code snippet. So it’ll be the same for single line errors,
    but much nicer for parse errors where the code region spans multiple
    Also switch the public error functions to take a Text version of the
    source code.
    evancz committed Dec 16, 2016
Commits on Dec 15, 2016
Commits on Dec 14, 2016
  1. Get parse error messages working again

    The most important addition is the concept of a stack of “context” so
    the error message can say what the parser thinks it is doing.
    This commit also adds custom error messages for all the different
    scenarios that may come up.
    evancz committed Dec 14, 2016
Commits on Dec 12, 2016