1
1
mirror of https://github.com/github/semantic.git synced 2024-11-28 18:23:44 +03:00
Commit Graph

12942 Commits

Author SHA1 Message Date
Rob Rix
2d828b4bef Merge pull request #1140 from github/assignment-error-handling
Assignment error handling
2017-06-05 13:57:14 -04:00
Rob Rix
854d323d5e Merge branch 'master' into assignment-error-handling 2017-06-05 13:47:28 -04:00
Rob Rix
8d5bbdc9ae Merge pull request #1138 from github/python-diffs
Python diffs
2017-06-05 13:34:42 -04:00
Rob Rix
5b83983d19 Rename Literally to ConstructorLabel. 2017-06-05 12:58:04 -04:00
Rob Rix
909a931b4b Correct decoratorWithAlgebra’s docs. 2017-06-05 12:53:35 -04:00
Rob Rix
f9cba6f90b Define a helper for keeping only the constructor label. 2017-06-05 12:52:29 -04:00
Rob Rix
71df7e6a8a Define a helper for keeping only the category field. 2017-06-05 12:51:24 -04:00
Rob Rix
017f076534 Hyphenate subterm-wise. 2017-06-05 12:46:00 -04:00
Rob Rix
f58d1b5f3f Rethrow unexpected end of input errors.
This resolves the insertion of spurious error nodes during backtracking.
2017-06-02 11:32:47 -04:00
Rob Rix
dcf2b7f0e3 Handle errors at the statement level. 2017-06-02 11:31:40 -04:00
Rob Rix
b65abc8624 Extract error handling. 2017-06-02 11:29:13 -04:00
Rob Rix
a66183d5cb Handle errors occurring within declarations. 2017-06-02 11:22:17 -04:00
Rob Rix
6a1ed59128 Catching yields control to the handler. 2017-06-02 11:12:25 -04:00
Rob Rix
9144e89b0c Define a MonadError instance for assignments. 2017-06-02 10:01:31 -04:00
Rob Rix
90308ca6cb Define a smart constructor for error catching. 2017-06-02 09:37:17 -04:00
Rob Rix
2f5759b2b2 Error handlers can have effects. 2017-06-02 09:37:02 -04:00
Rob Rix
350f27259c Define a Catch rule. 2017-06-02 09:31:32 -04:00
Rob Rix
404135174d Parsing requires errors to exist in the syntax type. 2017-06-01 16:43:06 -04:00
Rob Rix
8cd18beae3 Python and Ruby can both contain parse errors. 2017-06-01 16:01:49 -04:00
Rob Rix
da23c5a17d Define a Throw rule for assignment to produce errors. 2017-06-01 15:57:24 -04:00
Rob Rix
8bf980ac7d Merge branch 'master' into python-diffs 2017-06-01 12:39:35 -04:00
Rob Rix
00e163e5bb Merge pull request #1091 from github/r-o-a-d-m-a-p
Semantic Code roadmap
2017-06-01 12:32:42 -04:00
Rob Rix
3949bbfbf2 Merge branch 'master' into r-o-a-d-m-a-p 2017-06-01 12:27:00 -04:00
Rob Rix
995c87a359 Define decomposeWith internally to diffTermsWith. 2017-06-01 12:02:15 -04:00
Rob Rix
9c1c8e8f85 📝 decoratingWith. 2017-06-01 11:57:59 -04:00
Rob Rix
f6d9f5589f 📝 diffTermsWith. 2017-06-01 11:56:51 -04:00
Rob Rix
9bd52c9e63 Rename comparableByGAlign to comparableByConstructor. 2017-06-01 11:53:41 -04:00
Rob Rix
1f78bac849 📝 constructorLabel & comparableByGAlign. 2017-06-01 11:53:11 -04:00
Rob Rix
e4a2f661d7 📝 ComparabilityRelation, canCompareTerms, and equalTerms. 2017-06-01 11:50:21 -04:00
Rob Rix
ea82328fac Filter out both-missing cases up front. 2017-06-01 11:33:12 -04:00
Rob Rix
16212e86a2 Correct CommandSpec. 2017-06-01 11:27:16 -04:00
Rob Rix
4988977c78 Phrase the blob existence predicate in the positive sense. 2017-06-01 11:18:09 -04:00
Rob Rix
4cfba4ec14 Correct constructorLabel to use proper ShowS values. 2017-06-01 11:15:07 -04:00
Rob Rix
030c795fdd decoratingWith and diffTermsWith take their inputs in Both. 2017-06-01 11:12:48 -04:00
Rob Rix
8cd44d59a5 diffTerms takes its inputs in Both. 2017-06-01 11:10:47 -04:00
Rob Rix
1ff0a6a5e0 Factor out retrieving the Source from a SourceBlob. 2017-06-01 11:03:48 -04:00
Rob Rix
cdc010da59 Refactor the parsing stage. 2017-06-01 11:02:00 -04:00
Rob Rix
14faad0830 Combine the parse pattern matches. 2017-06-01 10:56:43 -04:00
Rob Rix
b680b34f20 Factor out the common structure of diffing. 2017-06-01 10:54:28 -04:00
Rob Rix
8eca7e3dd6 Combine the pattern matches. 2017-06-01 10:22:20 -04:00
Rob Rix
8b45a71afc Tighten up all the diff paths. 2017-06-01 10:20:16 -04:00
Rob Rix
8a11e7b0da Extract a function to diff a pair of terms linearly. 2017-06-01 10:10:46 -04:00
Rob Rix
4529db3f3a Render Python diffs to patches. 2017-06-01 10:06:23 -04:00
Rob Rix
f5041f845e Render outside of diffTermPair. 2017-06-01 10:03:28 -04:00
Rob Rix
37e46594f0 Render Python diffs to JSON. 2017-06-01 09:56:57 -04:00
Rob Rix
b5a0e0b018 Rename the algebras in full. 2017-06-01 09:48:14 -04:00
Rob Rix
9e13d1c60a Correct the docs for decoratorWithAlgebra’s algebra. 2017-06-01 09:34:07 -04:00
Rob Rix
e7b30cecda Move decoratorWithAlgebra up. 2017-06-01 09:33:37 -04:00
Rob Rix
bb8fb6d2e2 List Data.Syntax.Algebra’s exports explicitly. 2017-06-01 09:33:04 -04:00
Rob Rix
15007e780c Compose the task chain for s-expression diff rendering. 2017-05-31 15:59:28 -04:00