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

16957 Commits

Author SHA1 Message Date
Rob Rix
15c9e285b8 Extract the Monovariant-specific handler for Allocator. 2018-08-13 09:28:05 -04:00
Rob Rix
de3493c1cc Extract the Located-specific handler for Deref. 2018-08-13 09:26:27 -04:00
Rob Rix
9f2e022db2 Extract the Located-specific handler for Allocator. 2018-08-13 09:23:23 -04:00
Rob Rix
a2e88845f3 Define a Located-specific handler for Deref. 2018-08-13 09:21:30 -04:00
Rob Rix
137aabc77a Extract the Precise-specific handler for Deref. 2018-08-13 09:17:47 -04:00
Rob Rix
3902cbfd2d Extract the Precise-specific handler for Allocator. 2018-08-13 09:16:14 -04:00
Rob Rix
6506aeef36 Define a Located-specific handler for Allocator. 2018-08-13 09:15:31 -04:00
Rob Rix
ee345d499b Define Monovariant-specific handlers for Allocator & Deref. 2018-08-13 09:14:36 -04:00
Rob Rix
b014daa5dd Define Precise-specific handlers for Allocator & Deref. 2018-08-13 09:12:57 -04:00
Rick Winfrey
3b5ab7eae6 Newtype 2018-08-10 14:41:52 -07:00
Ayman Nadeem
054f5b4b36 fix heapDelete type signature 2018-08-10 17:41:46 -04:00
Rick Winfrey
7057ae128f Lints 2018-08-10 14:28:46 -07:00
Rick Winfrey
78400992b2 Merge branch 'update-haskell-tree-sitter' of https://github.com/github/semantic into update-haskell-tree-sitter 2018-08-10 14:15:38 -07:00
Rick Winfrey
fce34cd17d Update abstractClass 2018-08-10 14:10:14 -07:00
Rick Winfrey
8f0b275fab Update lookupType 2018-08-10 14:08:00 -07:00
Rick Winfrey
9bba993b4d Update indexTypeQuery to now take typeIdentifier 2018-08-10 14:02:19 -07:00
Rick Winfrey
64f052eea8 Readability 2018-08-10 14:02:06 -07:00
Rob Rix
9def42948e Pull gc back out of the Allocator effect. 2018-08-10 17:00:57 -04:00
Rick Winfrey
f272d604ca Alignment 2018-08-10 13:58:22 -07:00
Rick Winfrey
5b3606a1e0 Reflow 🔤 2018-08-10 13:58:13 -07:00
Ayman Nadeem
2906e39b71 remove redundant brackets 2018-08-10 16:57:53 -04:00
Ayman Nadeem
0a10f79f36 Merge branch 'master' into eval-instances 2018-08-10 16:46:51 -04:00
Rick Winfrey
5a8cf8dc67 Simplify 2018-08-10 13:32:23 -07:00
Rob Rix
6140256b56 Pass the Allocator/Deref handler into evaluate. 2018-08-10 16:05:12 -04:00
Timothy Clem
9ba005bbcc Quote the key 2018-08-10 13:01:13 -07:00
Timothy Clem
aacc1463cd Proper opening Associative for JSON 2018-08-10 13:00:56 -07:00
Rob Rix
9afa2e5f4e Rephrase Deref to closely mirror the Derefable class. 2018-08-10 15:55:29 -04:00
Rob Rix
e99215de9c Sort the Fresh effect up. 2018-08-10 15:54:53 -04:00
Rob Rix
4fb4419b92 Re-export AddressError. 2018-08-10 15:54:39 -04:00
Rick Winfrey
55eeddebe0 Provide more flexibility in Go method declaration (support mutliple receivers)
Although this is technically invalid Go, tree-sitter-go produces a valid parse tree. Previously we threw an error.
2018-08-10 12:53:11 -07:00
Rick Winfrey
d8d818c5c9 Fix Go method declaration assignment
It's not necessarily the case that a block will be present even though a return type can be specified in a method declaration.
2018-08-10 12:46:53 -07:00
Rick Winfrey
ca5d2e0fa6 Assign interpreted string literals and raw string literals within Go import spec 2018-08-10 12:45:15 -07:00
Timothy Clem
02e88ff37b Carry around origin term when we match to get back proper ann
Also removes need for spurious Monoid instance
2018-08-10 12:39:59 -07:00
Rob Rix
904d2ff9df Compact the Allocator constructors a little. 2018-08-10 15:33:00 -04:00
Rob Rix
f0d216da2c 🔥 the value parameter from Allocator. 2018-08-10 15:32:10 -04:00
Rob Rix
1ed211f676 Move assign into Deref. 2018-08-10 15:28:34 -04:00
Rob Rix
b5f8b0ae92 Move the Allocatable/Derefable instances into the address modules. 2018-08-10 15:18:58 -04:00
joshvera
2732f17719 Merge remote-tracking branch 'origin/master' into interactive-debugger 2018-08-10 14:20:16 -04:00
joshvera
4cd4867008 Lint and move semantic:lint before semantic:test 2018-08-10 13:47:38 -04:00
Rick Winfrey
0f1f450ce1 Merge branch 'update-haskell-tree-sitter' of https://github.com/github/semantic into update-haskell-tree-sitter 2018-08-10 10:46:46 -07:00
Rob Rix
d05f3c6ae3 🔥 Data.Abstract.Address. 2018-08-10 13:46:24 -04:00
Rob Rix
b93c15370e Move the address types into their own modules. 2018-08-10 13:44:04 -04:00
Rob Rix
53a9ca30aa Add modules for the address types. 2018-08-10 13:31:55 -04:00
joshvera
34693f0712 Add escape sequences to go 2018-08-10 13:31:37 -04:00
Rick Winfrey
bdc0daa7ba Assign FutureImportStatements 2018-08-10 10:10:40 -07:00
Rick Winfrey
2adbbdec2b Add FutureImport constructor 2018-08-10 10:10:30 -07:00
Rick Winfrey
06cf6a3d60 🔤 2018-08-10 10:10:19 -07:00
joshvera
fbd464e400 Add escape sequences to ruby 2018-08-10 12:28:53 -04:00
Josh Vera
6566b05d4c Merge branch 'master' into update-haskell-tree-sitter 2018-08-10 11:45:01 -04:00
Josh Vera
989498ac89 Merge branch 'master' into unlint 2018-08-10 11:30:47 -04:00
joshvera
a70cad8f86 eta reduce 2018-08-10 11:23:45 -04:00
Rob Rix
51cbd6437f 🔥 unused language extensions. 2018-08-10 10:24:40 -04:00
Rick Winfrey
e844fb8c2f Update TypeScript Assignment 2018-08-09 18:41:15 -07:00
Timothy Clem
d60c956c3b Fix name 2018-08-09 16:29:38 -07:00
Timothy Clem
a1d77c8943 TODO: Need to sort out if we need these Monoid instances
... and what they should be...
2018-08-09 16:27:46 -07:00
Timothy Clem
82c9f786fb Bunch of messing around in Util 2018-08-09 16:23:48 -07:00
Timothy Clem
031d19070e runT1 and try source instead of supply 2018-08-09 16:22:59 -07:00
Ayman Nadeem
a3c36b89ef add evaluatable instance and test for delete
Co-Authored-By: Josh Vera <vera@github.com>
2018-08-09 17:55:59 -04:00
Ayman Nadeem
49072fc399 add evaluatable instance for void
Co-Authored-By: Josh Vera <vera@github.com>
2018-08-09 16:24:44 -04:00
Rob Rix
c17794bddc 🔥 some unused language extensions. 2018-08-09 15:50:52 -04:00
Rob Rix
89b424e75b 🔥 Addressable. 2018-08-09 15:49:54 -04:00
Rob Rix
d30cdcfd6a 🔥 Latest & All. 2018-08-09 15:41:51 -04:00
Rob Rix
0def4afbab Specialize Heap to Set. 2018-08-09 15:40:42 -04:00
Rob Rix
c6bd54769a 🔥 the cell parameter to Cache, Cached, and Cacheable. 2018-08-09 15:35:47 -04:00
Rob Rix
256e3786f2 🔥 the cell parameter to Configuration. 2018-08-09 15:33:27 -04:00
Rob Rix
c1254d54b8 🔥 Cell. 2018-08-09 15:30:50 -04:00
Rob Rix
c4aac9c9be Assign using assignCell. 2018-08-09 15:23:18 -04:00
Ayman Nadeem
6aa043482d add eval instance for sequence expression 2018-08-09 15:18:23 -04:00
Rob Rix
ad67e7af23 Move assignCell into Allocatable. 2018-08-09 15:18:13 -04:00
Rob Rix
9b10c6499a Add an assignCell method to Derefable. 2018-08-09 15:12:22 -04:00
Timothy Clem
d65f7213c1 Refine toAlgebra 2018-08-09 10:14:03 -07:00
Ayman Nadeem
e833ad4fef add eval instance for sequence expression 2018-08-09 12:59:29 -04:00
Ayman Nadeem
9b3c3d279f Remove Variable 2018-08-09 12:07:37 -04:00
Patrick Thomson
e08a4f731d WIP changes 2018-08-08 16:41:48 -04:00
Rick Winfrey
317d4a3849 Merge branch 'master' into error-context 2018-08-08 10:33:41 -07:00
Rick Winfrey
4b02dc5b71 Re-export BaseError 2018-08-08 10:31:46 -07:00
Rick Winfrey
f2a6419d99 🔥 AllowAmbiguousTypes no longer needed 2018-08-08 10:31:34 -07:00
Rob Rix
f6096c6248 Merge branch 'master' into interactive-debugger 2018-08-08 09:44:53 -04:00
Rob Rix
c4df180f62 Merge branch 'master' into fix413s 2018-08-08 09:44:17 -04:00
Rob Rix
dbb92c2417 Merge branch 'master' into evaluate-ruby 2018-08-08 09:26:23 -04:00
Rob Rix
3dc6e13d7e Merge branch 'master' into fix413s 2018-08-08 09:26:07 -04:00
Charlie Somerville
e92846c518 expand Ctx to EvalContext in get, put, and with function names 2018-08-08 13:08:54 +10:00
Rick Winfrey
383b6208ee Rename ErrorContext -> BaseError 2018-08-07 16:50:55 -07:00
Rick Winfrey
0ea2596d93 Use new throwBaseError helper 2018-08-07 16:45:35 -07:00
Rick Winfrey
f1ad72e4fc No longer needed 2018-08-07 16:44:42 -07:00
Rick Winfrey
fdd6ea9344 Define new Show instance for BaseError 2018-08-07 16:44:12 -07:00
Rick Winfrey
2468123252 Required for throwBaseError 2018-08-07 16:43:59 -07:00
Rick Winfrey
871a07d4b7 Update Show1 and Eq1 instances 2018-08-07 16:43:45 -07:00
Rick Winfrey
b58500ab1d 🔥 ErrorContext && enhance BaseError 2018-08-07 16:43:09 -07:00
Rick Winfrey
edbc7820e4 Define throwBaseError 2018-08-07 16:42:28 -07:00
Patrick Thomson
4226d2bffe Finish documenting Control.Rule. 2018-08-07 18:24:42 -04:00
Patrick Thomson
aed9d74b0f An Arrow instance for Rule. 2018-08-07 18:13:59 -04:00
Timothy Clem
2c54b8925d Filter out path here as well 2018-08-07 14:50:28 -07:00
Timothy Clem
9df7c82bb1 Merge branch 'master' into fix413s 2018-08-07 14:49:59 -07:00
Patrick Thomson
df3d988004 fun experiments with tclean w/r/t building a rule pipeline 2018-08-07 16:39:04 -04:00
Patrick Thomson
af07c8f790 experiments with Rule + Eff 2018-08-07 14:37:03 -04:00
Patrick Thomson
805cea9000 a 'contextually' node exists 2018-08-07 14:09:50 -04:00
Rick Winfrey
599da68e5c One line 2018-08-07 10:56:42 -07:00
Rick Winfrey
cbef37f751 Redefine throwLoadError to wrap the name of a module not found as part of the error context 2018-08-07 10:48:25 -07:00
Rick Winfrey
2e5f06751f 🔥 Lower instance for ModuleInfo 2018-08-07 10:47:42 -07:00
Rick Winfrey
fa59e5b525 Redefine Show1 instance for BaseError 2018-08-07 10:47:26 -07:00
Rick Winfrey
eac145618f 🔥 ErrorContext Lower instance
Since we aren't going to keep a Lower instance for `ModuleInfo`, this instance is no longer sensible.
2018-08-07 10:47:07 -07:00
Rick Winfrey
6c5a4bdfa1 Merge branch 'master' into error-context 2018-08-07 09:53:00 -07:00
Rob Rix
86c97ccc27 Merge branch 'master' into evaluate-ruby 2018-08-07 10:35:02 -04:00
Rob Rix
cd654ade6c Merge branch 'master' into charliesome/context 2018-08-07 09:36:57 -04:00
Rob Rix
7a0cb41c4c Import Quieterm. 2018-08-07 09:35:03 -04:00
Rob Rix
3c976b3c7f Merge branch 'master' into interactive-debugger 2018-08-07 09:33:53 -04:00
Rob Rix
cdfef7a083 Merge branch 'master' into error-context 2018-08-07 09:26:12 -04:00
Rob Rix
98a848d3ad Inline the lambda' cases. 2018-08-07 09:18:43 -04:00
Rob Rix
9b95841a2d Merge branch 'master' into polyadic-lambda 2018-08-07 09:03:47 -04:00
Charlie Somerville
b327ffcfb9 remove lookupOrAlloc calls outside Control.Abstract.Heap 2018-08-07 10:25:47 +10:00
Timothy Clem
25724b72f0 Don't log paths in production 2018-08-06 16:37:11 -07:00
Rick Winfrey
dc98e5ef9d Reflow 2018-08-06 15:29:15 -07:00
Rick Winfrey
10c99d3549 Reflow 2018-08-06 15:14:15 -07:00
Rick Winfrey
7c7749e150 Use ErrorContext's Lower instance 2018-08-06 15:13:01 -07:00
Rick Winfrey
5ecb611d48 Wrap LoadError in BaseError 2018-08-06 15:05:58 -07:00
Rick Winfrey
1b914f8ba6 Merge branch 'master' into error-context 2018-08-06 14:44:29 -07:00
Rick Winfrey
a24182a527 Use traceError 2018-08-06 14:44:13 -07:00
Rick Winfrey
aed8dc607d Add traceError 2018-08-06 14:43:44 -07:00
Rick Winfrey
8a66ce5509 Tweak to ErrorContext show instance 2018-08-06 14:43:34 -07:00
Rick Winfrey
cd5190734e Favor readProjectRecursively over new --language behavior 2018-08-06 14:43:20 -07:00
Rick Winfrey
823ae6ac51 Merge branch 'master' into error-context 2018-08-06 13:46:42 -07:00
Timothy Clem
a420cfe909 Merge branch 'master' into fix-dot-graphs 2018-08-06 13:38:06 -07:00
Patrick Thomson
1d6346cb64 set ground for Control.Rule and Control.Rule.Engine 2018-08-06 16:33:50 -04:00
Timothy Clem
cd3c0f15ac Merge branch 'master' into enterprise-support 2018-08-06 12:56:45 -07:00
Rick Winfrey
5b9dca6400 Wrap UnspecializedError with BaseError 2018-08-06 11:50:49 -07:00
Josh Vera
1b68e86997 Merge branch 'master' into fix-dot-graphs 2018-08-06 14:01:54 -04:00
Ayman Nadeem
d1c500126e add evaluatable instance for regex 2018-08-06 13:19:50 -04:00
Josh Vera
99d0b78138 Merge branch 'master' into pass-precise-project-paths 2018-08-06 13:11:09 -04:00
Rick Winfrey
e42ffb38f5 Fix lints 2018-08-06 09:57:34 -07:00
Rick Winfrey
f0688f11b7 Define Eq1 instance for BaseError 2018-08-06 09:06:57 -07:00
Timothy Clem
30f7308f5f This order is a little better 2018-08-04 19:32:23 -07:00
Timothy Clem
f1d35283e7 No need for this, left over from debuggin 2018-08-04 19:31:15 -07:00
Timothy Clem
ca64ee2b07 Show replacements in the diff dot output 2018-08-04 19:30:19 -07:00
Timothy Clem
2a2a1b9128 Bring back dot rendering for terms and diffs
The usage of local was problematic here.
2018-08-04 19:29:14 -07:00
Patrick Thomson
f15a5dddb6 bad bug encountered, but hope springs eternal 2018-08-04 20:01:00 -04:00
Rick Winfrey
f401cfcddf Add Lower ModuleInfo instance 2018-08-03 16:59:14 -07:00
Rick Winfrey
e8a2a0a78a Add Lower BaseError instance 2018-08-03 16:58:59 -07:00
Rick Winfrey
eee582a1f1 Add Show1 BaseError instance 2018-08-03 16:58:51 -07:00
Rob Rix
55999323df Define Breakpoint as a newtype for now. 2018-08-03 14:25:28 -04:00
Rob Rix
c5ac62c84c 🔥 the GND pragma. 2018-08-03 14:25:07 -04:00
Rob Rix
43bb479cda Use conveniences to concatenate the lists. 2018-08-03 14:24:43 -04:00
Rob Rix
b48a3f9876 Redistribute the TODOs. 2018-08-03 13:51:26 -04:00
Rob Rix
ef81ee2dbf Create the semantic prefs dir if it doesn’t exist already.
Co-Authored-By: Ayman Nadeem <aymannadeem@gmail.com>
2018-08-03 13:41:48 -04:00
Rob Rix
2f038b92be More idiomatic home directory finding.
Co-Authored-By: Ayman Nadeem <aymannadeem@gmail.com>
2018-08-03 13:39:11 -04:00
Patrick Thomson
779f0e0621 use some lenses in the translator
this is coming along well, but now it's time to think really hard
about the Translate interface, and what kind of state we need to
propagate to subsequent stages
2018-08-03 13:35:38 -04:00
Rob Rix
45da491c6f Store history in ~/.local/semantic/repl_history
Co-Authored-By: Ayman Nadeem <aymannadeem@gmail.com>
2018-08-03 13:35:35 -04:00
Patrick Thomson
8549440f21 even better names, and a helper script to narrow tests 2018-08-03 13:15:14 -04:00
Rob Rix
e1708d6dfb Revert "Add a Distribute handler taking a handler for monad transformers wrapping IO."
This reverts commit f9f69104e2df65e014cec182e57747436356460a.
2018-08-03 13:08:41 -04:00
Rob Rix
09e1c63d88 Add a Distribute handler taking a handler for monad transformers wrapping IO.
Co-Authored-By: Ayman Nadeem <aymannadeem@gmail.com>
2018-08-03 13:05:47 -04:00