1
1
mirror of https://github.com/github/semantic.git synced 2025-01-06 23:46:21 +03:00
Commit Graph

9879 Commits

Author SHA1 Message Date
Rob Rix
fe155eac5a Move the sourceText getter out from between the Cost accessors. 2017-01-20 14:41:34 -05:00
Rob Rix
a24781d2bd 🔥 unionSourceSpans. 2017-01-20 14:38:39 -05:00
Rob Rix
546369c625 🔥 SourceSpan.maybeConcat. 2017-01-20 14:38:02 -05:00
Rob Rix
48f119539f Define unionSourceSpansFrom in terms of the Semigroup instance. 2017-01-20 14:37:52 -05:00
Rob Rix
7dc2406848 🔥 Range.maybeConcat. 2017-01-20 14:36:40 -05:00
Rob Rix
ea3278b745 Define unionRangesFrom in terms of the Semigroup instance. 2017-01-20 14:36:28 -05:00
Rob Rix
f8c4b00411 🔥 unionRanges. 2017-01-20 14:36:10 -05:00
Rob Rix
427afdf61c Ruby term assignment returns Syntax. 2017-01-20 14:15:09 -05:00
Rob Rix
600b861135 C term assignment returns Syntax. 2017-01-20 14:12:56 -05:00
Rob Rix
e7e0e5c01c 🔥 an apparently redundant $!. 2017-01-20 14:11:41 -05:00
Rob Rix
c16e75c670 Don’t match errors specially in JS term assignment. 2017-01-20 14:11:05 -05:00
Rob Rix
e11c56b7a4 Don’t match unused fields. 2017-01-20 14:10:30 -05:00
Rob Rix
17ce8d6988 JavaScript term assignment returns Syntax. 2017-01-20 14:09:44 -05:00
Rob Rix
a538d39b31 Per-language term assignment returns Syntax, not Term. 2017-01-20 14:09:29 -05:00
Rob Rix
2bf708aaeb Collapse C term assignment for now. 2017-01-20 13:53:12 -05:00
Rob Rix
af8b3bf268 Go term assignment is (notionally) partial. 2017-01-20 13:51:52 -05:00
Rob Rix
40eb0312ef 🔥 the old default term assignment function. 2017-01-20 13:50:25 -05:00
Rob Rix
27a01e8ddc Fall back to default term assignment if we don’t have a language. 2017-01-20 13:48:52 -05:00
Rob Rix
45621eedd8 JavaScript term assignment is (notionally) partial. 2017-01-20 13:47:06 -05:00
Rob Rix
2e7c4c2ac4 C term assignment is (notionally) partial. 2017-01-20 13:45:05 -05:00
Rob Rix
5432eaab34 Ruby term assignment is (notionally) partial. 2017-01-20 13:37:20 -05:00
Rob Rix
740f1ee174 Write a fallback path for partial term assignment. 2017-01-20 13:35:38 -05:00
Rob Rix
f84c578371 Construct parse error terms for all languages. 2017-01-20 13:11:04 -05:00
Rob Rix
44ecf732fa Curry defaultTermAssignment. 2017-01-20 13:07:19 -05:00
Rob Rix
a6c897163c Rename termConstructor to termAssignment. 2017-01-20 13:05:55 -05:00
Rob Rix
8dbf54bcca Export the default term assignment. 2017-01-20 13:04:36 -05:00
Rob Rix
c1e82f9b37 Define a default term assignment. 2017-01-20 13:03:52 -05:00
Rob Rix
1c0c7e4bdf Factor slicing the source out of term assignment. 2017-01-20 12:59:56 -05:00
Rob Rix
77c80ac970 Merge remote-tracking branch 'origin/master' into consolidate-common-term-assignment-patterns 2017-01-20 11:58:38 -05:00
Rob Rix
b65b2062ed Merge pull request #935 from github/term-assignment-matches-on-categories
Term assignment matches on categories
2017-01-20 11:58:07 -05:00
Rob Rix
1e817488ec Merge branch 'master' into consolidate-common-term-assignment-patterns 2017-01-19 16:58:58 -05:00
Rob Rix
31afc718a1 Merge branch 'master' of https://github.com/github/semantic-diff into term-assignment-matches-on-categories 2017-01-19 16:46:40 -05:00
Rob Rix
3f60857321 Merge branch 'better-record-pattern-matches' into consolidate-common-term-assignment-patterns 2017-01-19 16:38:38 -05:00
Rob Rix
c93d9abe0b Pass the annotations in whole. 2017-01-19 16:36:49 -05:00
Josh Vera
e5fe533b25 Merge pull request #936 from github/better-record-pattern-matches
Better record pattern matches
2017-01-19 16:16:27 -05:00
Rob Rix
f6c750dde2 Merge branch 'better-record-pattern-matches' into consolidate-common-term-assignment-patterns 2017-01-19 16:00:12 -05:00
Rob Rix
23881c21b6 Hide that other definition of Nil. 2017-01-19 15:53:16 -05:00
Rob Rix
8e1c5706b6 Replace uses of (.:) with (:.). 2017-01-19 15:46:28 -05:00
Rob Rix
9f707bcf3a Rename RCons to (:.).
We can’t use (.:) because Haskell doesn’t allow that. However, tokens starting with : are reserved for data constructors, so (:.) is, apparently, a perfectly cromulent constructor.
2017-01-19 15:42:51 -05:00
Rob Rix
d64108dfb8 Rename TermIndexOrNil to avoid clashing with new Record construction. 2017-01-19 15:41:50 -05:00
Rob Rix
877fec5e38 Rename RNil to Nil. 2017-01-19 15:36:04 -05:00
Rob Rix
b8901998ff Rename termConstructor to assignTerm. 2017-01-19 15:22:04 -05:00
Rob Rix
5ef2464550 Extract the overall term constructor to the top level. 2017-01-19 15:18:02 -05:00
Rob Rix
aff613148f Don’t map parse error productions per-language. 2017-01-19 15:13:07 -05:00
Rob Rix
4d1d84ef9f Map parse error categories in one place. 2017-01-19 15:09:22 -05:00
Rob Rix
abe529534a Don’t add “modifier” for now. 2017-01-19 14:05:51 -05:00
Rob Rix
cd5a51aa7a Disable -Wdeprecations on files pattern matching against Category.
We can’t 🔥 RescueModifier yet because of RWS instability. See also #778.
2017-01-19 14:01:48 -05:00
Rob Rix
ae7a91d9da Deprecate RescueModifier. 2017-01-19 14:01:01 -05:00
Rob Rix
eb8c09f2b5 Revert "🔥 RescueModifier."
This reverts commit 9eda5f256678287b9252a7c654ffcaf486b22c21.
2017-01-19 13:51:24 -05:00
Rob Rix
ca1647d45e Disambiguate the Rescue category 😞 2017-01-19 13:16:31 -05:00