Skip to content

Commit

Permalink
Super spread errors part 2 (#1973)
Browse files Browse the repository at this point in the history
* Handle more spread syntax errors:
-Arrays (expressions + patterns)
-List (patterns)
-Records (expressions + patterns)

* cleanup Makefile + better abstraction spread errors in lbl_pattern_list (less DRY)

* Update spread error messages with input from @chenglou
  • Loading branch information
IwanKaramazow authored and chenglou committed May 31, 2018
1 parent 95f027d commit 52d6ea0
Show file tree
Hide file tree
Showing 3 changed files with 8,028 additions and 7,612 deletions.
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ clean-tests:
testFormat: build clean-tests
cd formatTest; ./test.sh

all_errors:
@ echo "Regenerate all the possible error states for Menhir."
@ echo "Warning: This will take a while and use a lot of CPU and memory."
@ echo "---"
menhir --explain --strict --unused-tokens src/reason-parser/reason_parser.mly --list-errors > src/reason-parser/reason_parser.messages.checked-in

# Not all versions of jbuilder have the clean command.
# jbuilder clean
clean: clean-tests
Expand Down
Loading

0 comments on commit 52d6ea0

Please sign in to comment.