Patrick Thomson
17cab0302e
Merge branch 'master' into ruby-low-precedence-booleans
2018-04-04 15:49:07 -04:00
Patrick Thomson
d559d06e26
Merge pull request #1706 from github/fix-scientific-parsing
...
Standardize and fix floating-point parsing.
2018-04-04 15:48:45 -04:00
Patrick Thomson
e44b8dfb46
typo
2018-04-04 15:41:21 -04:00
Patrick Thomson
faf246ff1e
Merge remote-tracking branch 'origin/master' into fix-scientific-parsing
2018-04-04 15:40:51 -04:00
Patrick Thomson
925df74da1
Prettier Evaluatable instance for floats.
2018-04-04 15:40:31 -04:00
Patrick Thomson
c7536b6c18
Editorialize less.
2018-04-04 15:39:30 -04:00
Timothy Clem
046e8c1fd0
Merge pull request #1704 from github/module-resolution
...
Module resolution
2018-04-04 11:14:13 -07:00
Timothy Clem
3145f73895
Fix doctests again
2018-04-04 11:07:26 -07:00
Patrick Thomson
1138bd3141
Fix tests.
2018-04-04 12:53:54 -04:00
Timothy Clem
a34cc8766f
Merge remote-tracking branch 'origin/master' into module-resolution
2018-04-04 09:42:39 -07:00
Patrick Thomson
7818db05a7
Fix parsing and representation of Ruby's and
and or
operators.
...
These operators are terrible misbegotten warts (in a language full of
warts), but we need to represent them differently for matching and
pretty-printing purposes.
2018-04-04 12:35:57 -04:00
Timothy Clem
4b9caec4c5
Fix up tests for Name wrapper
2018-04-04 08:59:13 -07:00
Timothy Clem
7df5567a92
newtype for free variable name instead of type synonym
2018-04-04 08:59:03 -07:00
Patrick Thomson
45a411f6ba
Merge remote-tracking branch 'origin/master' into fix-scientific-parsing
2018-04-04 10:11:59 -04:00
Patrick Thomson
ad3be46010
don't export the parser
2018-04-04 10:11:48 -04:00
Charlie Somerville
edf925e6e1
Merge pull request #1701 from github/charliesome/remove-php-ns-fail
...
Remove fail in Evaluatable NamespaceName instance
2018-04-04 17:44:54 +10:00
Charlie Somerville
a8ba6263c8
php: use fmap rather than liftA to appease linter
2018-04-04 17:27:00 +10:00
Charlie Somerville
dbf2b365d9
php: extract common commentedTerm expression
2018-04-04 16:54:09 +10:00
Charlie Somerville
90961708e6
php: use foldl1 in Evaluatable NamespaceName definition
2018-04-04 16:54:09 +10:00
Charlie Somerville
b1edf0da4d
php: add someTerm' returning NonEmpty and remove fromList call
2018-04-04 16:54:09 +10:00
Charlie Somerville
716c3ec5f4
php: pull inline lambda out of assignment expression
2018-04-04 16:54:09 +10:00
Charlie Somerville
3685e9d1c4
php: make NamespaceName's value a NonEmpty rather than list
2018-04-04 16:54:09 +10:00
Rob Rix
c81c6e873a
Merge pull request #1702 from github/resolved-symbols-in-import-graph
...
Resolved symbols in import graph
2018-04-03 19:16:39 -04:00
Timothy Clem
869de12693
++haskell-tree-sitter
2018-04-03 15:56:19 -07:00
Timothy Clem
7dd2c2b0c4
With print in prelude, fix up these specs
2018-04-03 15:50:18 -07:00
Timothy Clem
218ef15860
Make it easier to test python locally with a dummy print in the prelude
2018-04-03 15:46:19 -07:00
Timothy Clem
edc00cff27
Trace out the module table for easy debug/dev of import resolution
2018-04-03 15:44:57 -07:00
Timothy Clem
0d29d38c50
Implement .. and ..., etc python relative imports
2018-04-03 15:42:19 -07:00
Timothy Clem
a361ebd7a6
Assign and eval relative python imports
2018-04-03 14:51:00 -07:00
Patrick Thomson
e1b5c929cd
forgot to call done in the decimal parser
2018-04-03 17:18:10 -04:00
Patrick Thomson
c36256e943
Standardize and fix floating-point parsing.
...
The existence of #1705 showed me that it's time to remove the bandaid
of a fix that was `normalizeFloatString` in #1537 . This patch
introduces a proper Attoparsec parser for Scientific values that
handles the vaguaries of cross-language floating-point syntax. We
already depended on Attoparsec indirectly, so adding it as an explicit
dependency is fine.
A unit test is included, with examples taken from the tree-sitter corpora.
2018-04-03 17:02:56 -04:00
Rob Rix
532203621e
🔥 ><.
2018-04-03 16:35:03 -04:00
Rob Rix
5a4c9b3f91
📝 the helper functions.
2018-04-03 16:34:36 -04:00
Rob Rix
4d03abeab2
Rename/extract helpers.
2018-04-03 16:32:59 -04:00
Timothy Clem
cb1e06b457
Add a few notes
2018-04-03 13:24:09 -07:00
Timothy Clem
3cf9e67ab7
Assign relative python imports, deal only with nonempty lists
2018-04-03 13:23:54 -07:00
Timothy Clem
1d7d7df112
Remove comments
2018-04-03 11:11:13 -07:00
Timothy Clem
3bf3963c2b
s/ModuleName/ModulePath
2018-04-03 10:34:10 -07:00
Timothy Clem
208d16e131
Disable import-graph specs for now
2018-04-03 10:12:20 -07:00
Timothy Clem
55cd6e4549
Dry up Ruby resolving
2018-04-03 09:00:07 -07:00
Timothy Clem
f98f7a403d
Whitespace, remove extra import
2018-04-03 08:59:56 -07:00
Timothy Clem
fc5097a998
Fix up docstests
2018-04-03 08:03:29 -07:00
Timothy Clem
094359bb2d
Bring back ability to get the currently evaluating module
2018-04-02 19:22:28 -07:00
Timothy Clem
69a46e4edc
Merge remote-tracking branch 'origin/master' into module-resolution
2018-04-02 16:28:35 -07:00
Rob Rix
d8da29d42c
Set edge attributes.
2018-04-02 18:59:29 -04:00
Rob Rix
e09c9e2ec7
Specialize the attributes for package/module vertices.
2018-04-02 18:50:18 -04:00
Rob Rix
1de632117b
Extract the style.
2018-04-02 18:34:24 -04:00
Rob Rix
29159c7752
🔥 parentGraph.
2018-04-02 18:31:37 -04:00
Rob Rix
6d7b41170c
Tweak the modify helper to append.
2018-04-02 18:30:21 -04:00
Rob Rix
a230af496b
Wrap up definition edges in a new helper.
2018-04-02 18:28:40 -04:00