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

10063 Commits

Author SHA1 Message Date
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
Rob Rix
9c064da12f Compute a simpler string for rescue modifiers. 2017-01-19 13:14:40 -05:00
Rob Rix
21dabbe077 🔥 RescueModifier. 2017-01-19 13:13:57 -05:00
Rob Rix
8df4e8ca7b Look for Modifier Rescue, not RescueModifier. 2017-01-19 13:12:59 -05:00
Rob Rix
36a6760347 Match against Modifier categories where appropriate. 2017-01-19 13:09:39 -05:00
Rob Rix
2f3dfd2df7 Compact the unless/until rules. 2017-01-19 13:07:55 -05:00
Rob Rix
d9397f930c Handle Until/Unless in the same manner as the other control statements/modifiers. 2017-01-19 13:06:12 -05:00
Rob Rix
72f2260164 Ruby term assignment is pure except for operators. 2017-01-19 13:01:59 -05:00
Rob Rix
37141178ea Map Ruby modifier productions onto Modifier categories. 2017-01-19 12:56:09 -05:00
Rob Rix
408ad2ecc5 Add Modifier categories.
These are used when a normal syntactic category is attached as a modifier instead of as a statement, e.g.:

```ruby
if foo then bar end
```

vs.

```ruby
bar if foo
```
2017-01-19 12:55:06 -05:00
Rob Rix
33040ea22e Assign terms based on the Category. 2017-01-19 12:26:45 -05:00
Rob Rix
83acde8ad4 Add a function computing the Category for a given language & production name. 2017-01-19 12:26:20 -05:00
Rob Rix
fde31b836e Go term assignment is pure. 2017-01-19 12:02:35 -05:00
Josh Vera
e07166bd8f Merge pull request #928 from github/more-go-terms
More go terms
2017-01-18 16:26:51 -05:00
joshvera
a5709517e7 bump ruby 2017-01-18 15:37:29 -05:00
joshvera
ee10187ba1 Merge remote-tracking branch 'origin/master' into more-go-terms 2017-01-18 15:36:02 -05:00
Josh Vera
44b7f3281c Merge pull request #934 from github/evaluate-source-spans-eagerly
Evaluate source spans eagerly
2017-01-18 15:35:41 -05:00