1
1
mirror of https://github.com/github/semantic.git synced 2024-12-22 22:31:36 +03:00
Commit Graph

14230 Commits

Author SHA1 Message Date
Timothy Clem
9618db2cdb Produce program syntaxes (for ruby at least) 2017-07-20 13:52:10 -07:00
Timothy Clem
fc9851334f Introduce expressions and declarations to Python assignment to cleanup code 2017-07-20 11:54:41 -07:00
Timothy Clem
6bf440d240 Python elif and else need to take multiple statements too 2017-07-20 11:42:56 -07:00
Timothy Clem
996b8fbf30 Fix python assignment for multiple statements in if body 2017-07-20 11:39:07 -07:00
Timothy Clem
2ca5412769 Python ExpressionStatement can have one or more declarations 2017-07-20 11:26:26 -07:00
Timothy Clem
2c00461f23 Allow assignment of <> operator in Python 2017-07-20 11:15:50 -07:00
Timothy Clem
19eb8f2706 Try to take some source for EmptyStatement 2017-07-20 11:06:34 -07:00
Timothy Clem
2880052c15 Remove sourceState from AssignmentState 2017-07-20 10:23:21 -07:00
Josh Vera
dec0de378c Merge pull request #1232 from github/json
Add a JSON Parser
2017-07-20 12:48:35 -04:00
Josh Vera
974e4a3068 Merge branch 'master' into json 2017-07-20 12:41:32 -04:00
Timothy Clem
1183c0265a err no longer used in these specs 2017-07-20 09:36:41 -07:00
joshvera
de2146a1cd Merge 'master' into json 2017-07-20 12:35:34 -04:00
Timothy Clem
6b1a3b0efd Fix zero width repetitions infinite loop
Introduces a stateCounter to detect progress and accepts one and only one zero width match.

Refactored tests a bit to not assert internal state unless specifically necessary.
2017-07-20 09:32:24 -07:00
Timothy Clem
ee0fb33a94 Demonstrate infinite loop with many (pure x) 2017-07-20 09:32:24 -07:00
Timothy Clem
0b23bf901f Use const 2017-07-20 09:32:24 -07:00
Timothy Clem
4cdac77633 Test out catchError 2017-07-20 09:32:24 -07:00
Rob Rix
9befa439f6 Merge pull request #1233 from github/task-input-output
Task input output
2017-07-20 11:12:22 -04:00
joshvera
f7a7a2c180 Add parseError to value Assignment in the JSON parser 2017-07-20 11:12:08 -04:00
joshvera
0b497fb8a2 Remove JSON from ToCTermRenderer since it doesn't have functions 2017-07-20 11:06:19 -04:00
joshvera
fb84ec83f5 Add JSON to parseBlob 2017-07-20 11:06:19 -04:00
joshvera
00205c3d26 Sort Syntax in JSON parser 2017-07-20 11:06:19 -04:00
Rob Rix
734e42802d Correct the docs for parse. 2017-07-20 10:23:35 -04:00
Rob Rix
f9ce0a9e63 Take the blob parameter explicitly. 2017-07-19 20:24:52 -04:00
Rob Rix
6f1cf00255 Move the implementations of readBlobs/readBlobPairs into Task. 2017-07-19 20:20:20 -04:00
Rob Rix
e6739b5430 📝 writeToOutput. 2017-07-19 20:18:44 -04:00
Rob Rix
89df488f78 Merge branch 'master' into task-input-output 2017-07-19 20:13:58 -04:00
Rob Rix
aaf39930b0 Simplify how the output is defaulted to stdout. 2017-07-19 20:07:17 -04:00
Rob Rix
201f9358f8 Correct the tests. 2017-07-19 20:01:59 -04:00
Rob Rix
2fe1c954cf Merge pull request #1229 from github/cli-refactoring
CLI refactoring
2017-07-19 19:57:59 -04:00
Rob Rix
839c64b4a3 Rename Command.Files to Files. 2017-07-19 19:57:36 -04:00
Rob Rix
ebe21c348c Merge branch 'master' into cli-refactoring 2017-07-19 19:55:03 -04:00
Josh Vera
83e816b04f Merge branch 'master' into json 2017-07-19 18:35:39 -04:00
Rob Rix
8d73a83cdf Bind instead of using do notation. 2017-07-19 17:41:06 -04:00
Rob Rix
71356ead42 Construct a single task. 2017-07-19 17:39:48 -04:00
Rob Rix
beb6c4788c WriteToOutput takes a handle or a path. 2017-07-19 17:29:38 -04:00
Rob Rix
766f71ba90 🔥 the obsolete getOutputPath logic. 2017-07-19 17:26:52 -04:00
joshvera
c513e6e34b Merge origin/master 2017-07-19 17:26:22 -04:00
Rob Rix
aad5e2d396 Correct the docs. 2017-07-19 17:24:06 -04:00
Rob Rix
844b8d0dc3 Run tasks in the spec. 2017-07-19 17:23:44 -04:00
Rob Rix
1cb3541efe Construct a task in the options parser. 2017-07-19 17:22:10 -04:00
Rob Rix
a85aa1f8ff Carry the language in error declarations. 2017-07-19 17:17:39 -04:00
Rob Rix
c8416ee0fd Pass blobs to the declaration algebras. 2017-07-19 17:16:51 -04:00
Rob Rix
c0f894162e Derive an NFData instance for Language. 2017-07-19 17:15:44 -04:00
Rob Rix
4d5ffe7a11 🔥 ParseMode. 2017-07-19 15:46:49 -04:00
Rob Rix
fe21d792fe Define runParse by composition. 2017-07-19 15:46:31 -04:00
Rob Rix
17af42e21e Define runDiff by composition. 2017-07-19 15:46:27 -04:00
Rob Rix
2cce3dd671 Define a Task to write output. 2017-07-19 15:44:22 -04:00
Rob Rix
cbb6c885a4 Define Tasks to read blobs. 2017-07-19 15:41:40 -04:00
Rob Rix
8d43d19296 Construct Eithers for the input source(s). 2017-07-19 15:40:56 -04:00
Rob Rix
97a4f75ca8 Generalize readBlobPairs to lists of path/language pairs. 2017-07-19 15:37:01 -04:00