1
1
mirror of https://github.com/github/semantic.git synced 2024-12-19 12:51:52 +03:00
Commit Graph

19695 Commits

Author SHA1 Message Date
joshvera
104e9f801f ++effects 2018-03-21 14:24:20 -04:00
Timothy Clem
6ac73a7a5a Start to work out evaluating of php namespaces
Co-Authored-By: Patrick Thomson <patrickt@users.noreply.github.com>
2018-03-21 10:22:38 -07:00
joshvera
750f66d31a Add a resumeException function to wrap nonsense 2018-03-21 12:26:17 -04:00
Timothy Clem
166c66766e Whitespace 2018-03-21 09:20:07 -07:00
Timothy Clem
a740f2938a Don't change assignment for namespaces just yet 2018-03-21 09:19:32 -07:00
Patrick Thomson
b59fc64dd8 Implement single-inheritance subclassing.
Pretty straightforward stuff: we augment `klass` to take an optional
superclass, match to ensure it's a class, then, when defining that new
class, push its definition onto the environment provided by the superclass.
2018-03-21 12:17:16 -04:00
joshvera
5ca8367dff Use resumeError in analyzeTerm 2018-03-21 12:15:12 -04:00
joshvera
2cdd9fa183 Add MonadResume instance for effects 2018-03-21 12:14:04 -04:00
joshvera
ffea66cdca Add RunEffect instance for ResumeExc 2018-03-21 12:13:48 -04:00
joshvera
8b13d98a25 Use MonadResume in eval 2018-03-21 12:13:29 -04:00
joshvera
86f8ce5eab Add MonadResume 2018-03-21 12:13:17 -04:00
Timothy Clem
74596f174a Merge branch 'master' into php-namespaces 2018-03-21 09:01:17 -07:00
joshvera
e713a17ca9 Add resumable exceptions 2018-03-21 11:41:41 -04:00
Timothy Clem
cdd0a9f35e Remove this 2018-03-20 16:47:36 -07:00
Timothy Clem
69e2eda8db Couple more tests 2018-03-20 16:46:32 -07:00
Timothy Clem
038af3ccb2 Ruby require/load now return proper values too 2018-03-20 16:34:46 -07:00
Timothy Clem
8d3de3e640 PHP includes can now return proper values 2018-03-20 16:34:31 -07:00
Timothy Clem
26f2fc4f9a Store off a tuple of env value in the module table 2018-03-20 16:34:17 -07:00
Timothy Clem
d30e832e11 Move require/load so we can return values 2018-03-20 16:33:53 -07:00
Timothy Clem
041082a79d Merge remote-tracking branch 'origin/master' into php-namespaces 2018-03-20 11:07:04 -07:00
Patrick Thomson
3315096629 Merge pull request #1651 from github/fix-hlints
Take a pass at fixing/silencing linter hints.
2018-03-20 14:01:02 -04:00
Patrick Thomson
b9cef5e540 Merge branch 'fix-hlints' of github.com:github/semantic into fix-hlints 2018-03-20 12:36:01 -04:00
Patrick Thomson
bde8afb472 Stop ignoring syntax errors and fix hints in Assignments. 2018-03-20 12:35:30 -04:00
Patrick Thomson
b61938de73 Use newtype for GShow1Options. 2018-03-20 12:21:39 -04:00
Rob Rix
5cede65fd7 Merge branch 'master' into fix-hlints 2018-03-20 11:33:28 -04:00
Rob Rix
5fffdbb23f Merge pull request #1652 from github/fix-python-eval
Fix `evaluatePythonFile`.
2018-03-20 11:29:12 -04:00
Patrick Thomson
62aa1a9d57 Fix evaluatePythonFile.
Ruby and Go's evaluators had been changed to invoke `evaluateFile`
rather than `evaluate` directly, but Python's didn't make it in. This
remedies that.
2018-03-20 11:14:00 -04:00
Patrick Thomson
d5c404c1aa spurious annotations 2018-03-20 10:49:57 -04:00
Patrick Thomson
9d5ace795b Take a pass at fixing/silencing linter hints.
Since @charliesome was expressing trouble with keeping custom infix
operator precedence straight (a very fair complaint, and one that I
have trouble with too), I thought it best to make sure that master
builds with clean hlints. I propose we make CI check that `hlint src`
executes cleanly.
2018-03-20 10:41:53 -04:00
Timothy Clem
47f00e4ec3 Fill in IncludeOnce, Require, and RequireOnce 2018-03-19 15:42:42 -07:00
Timothy Clem
6a0c5e8714 Gonna use this help for other instances 2018-03-19 15:35:06 -07:00
Timothy Clem
cb915cc95b No more IncludePath 2018-03-19 15:34:32 -07:00
Timothy Clem
dc2bfc5736 PHP includes just have to eval to a string 2018-03-19 15:33:06 -07:00
Timothy Clem
fc5d22f7a5 Clean up path helper functions 2018-03-19 15:32:51 -07:00
Josh Vera
2e2c18c3b2 Merge pull request #1575 from github/gorzell-container
Add a means of building an executable docker container.
2018-03-19 18:12:43 -04:00
Timothy Clem
992e721281 We actually want load semantics here 2018-03-19 15:11:43 -07:00
Josh Vera
ed955abd56 Merge branch 'master' into gorzell-container 2018-03-19 18:04:53 -04:00
Timothy Clem
a7a8c7121a These are not needed 2018-03-19 15:01:48 -07:00
Timothy Clem
1a7f0e4b77 TypeApplications not necessary anymore 2018-03-19 14:53:55 -07:00
Timothy Clem
8522af6492 Use OverloadedLists here 2018-03-19 14:53:47 -07:00
Timothy Clem
31f7746c26 Fix for latest version of env handling 2018-03-19 14:48:06 -07:00
Timothy Clem
3b284cb401 Alternative assignment of qualified names to make spec pass 2018-03-19 14:42:31 -07:00
Timothy Clem
7fdc5e2fda Write a small spec for evaluating PHP includes 2018-03-19 14:42:31 -07:00
Timothy Clem
9ca7b7f983 Update assignment for PHP include and eval it 2018-03-19 14:42:31 -07:00
Timothy Clem
67a7a8c358 Strip both single and double quotes 2018-03-19 14:42:31 -07:00
Timothy Clem
811370a767 First PHP fixtures to work with 2018-03-19 14:42:31 -07:00
Timothy Clem
80197edb67 Let's evaluate PHP 2018-03-19 14:42:30 -07:00
Patrick Thomson
7182ecc7e8 Merge pull request #1576 from github/classes
Implement classes and method dispatch
2018-03-19 17:13:30 -04:00
Josh Vera
1ae1eda20d Merge branch 'master' into gorzell-container 2018-03-19 16:44:54 -04:00
Patrick Thomson
62ee3a149e fix redundant constraint 2018-03-19 15:51:14 -04:00