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

148 Commits

Author SHA1 Message Date
joshvera
7f014eff8e Merge branch 'master' into syntax-highlighting 2015-11-03 17:09:06 -05:00
Rob Rix
ad3462b135 Terms are annotated with their categories in the JSON too. 2015-11-03 13:20:38 -05:00
Rob Rix
75400c4065 Serialize annotations out in full. 2015-11-03 13:08:32 -05:00
Rob Rix
db614b5b16 Benchmark loading sources. 2015-11-03 11:56:01 -05:00
Rob Rix
a0b3738ee2 Benchmark parsing both inputs. 2015-11-03 10:20:15 -05:00
Rob Rix
74fa7ba1b4 Benchmark diffing. 2015-11-03 10:20:11 -05:00
Rob Rix
c1b7993895 Benchmark formatting with a label. 2015-11-03 10:20:02 -05:00
Rob Rix
2651c5ac51 benchmark rethrows. 2015-11-03 10:19:51 -05:00
Rob Rix
2ec0a752a0 Remove an unused value. 2015-11-02 18:06:54 -05:00
Rob Rix
44dbf62d7c Print and benchmark the diff. 2015-11-02 16:03:09 -05:00
Rob Rix
b1f1e29c13 Add a typealias for diffs. 2015-11-02 14:18:30 -05:00
Rob Rix
e4310be948 Only compute the JSON &c. for split diffs. 2015-11-02 13:20:42 -05:00
Rob Rix
202bc2b31b We’ll always have a pair of sources. 2015-11-02 13:06:23 -05:00
Rob Rix
b9f739844f Arguments are expected to contain pairs of sources. 2015-11-02 13:04:48 -05:00
Rob Rix
6d2729944d Use the parser to get our sources out. 2015-11-02 12:48:21 -05:00
Rob Rix
4b295c1c3f Correct the line range. 2015-10-30 18:16:46 -04:00
Rob Rix
c1d85ae7ef Fall back to line by line diffing. 2015-10-30 18:15:16 -04:00
Rob Rix
214c3cb2b4 Add a function parsing an input string into its component lines. 2015-10-30 18:13:22 -04:00
Rob Rix
cfe655c42e NSURL(string:) “succeeds” with paths, but makes broken URLs. 2015-10-30 17:49:59 -04:00
Rob Rix
67dae454f0 Path extensions can be non-nil and empty. 2015-10-30 17:25:19 -04:00
Rob Rix
49f8e54409 Use a computed property. 2015-10-30 17:21:47 -04:00
Rob Rix
ec579b2053 Allow the fragment to specify a type. 2015-10-30 17:16:02 -04:00
Rob Rix
62cb428ea6 Parse JSON with the JSON parser. 2015-10-30 14:56:38 -04:00
Rob Rix
4bd9a4d600 Use a switch statement. 2015-10-30 14:56:18 -04:00
Rob Rix
9476deb5d6 Convert CofreeJSON to Term. 2015-10-30 14:56:05 -04:00
Rob Rix
1ce9b60e2e Copy benchmarking in from doubt-json. 2015-10-30 13:59:22 -04:00
Rob Rix
40570c639c Use the parser function. 2015-10-30 13:58:43 -04:00
Rob Rix
d1d59c61ac Abstract a function to select the parser. 2015-10-30 13:58:19 -04:00
Rob Rix
ab49d4ab53 Get the path from the info plist. 2015-10-29 18:23:32 -04:00
Rob Rix
465ba7feb2 Try the old standby of NSTemporaryDirectory. 2015-10-29 18:14:02 -04:00
Rob Rix
0d0c6c186d Find the UI path one earlier. 2015-10-29 18:11:58 -04:00
Rob Rix
d38c8b0ff0 Try to make a temporary file. What could go wrong? 2015-10-29 18:10:58 -04:00
Rob Rix
11eece38aa Load on construction. 2015-10-29 16:50:51 -04:00
Rob Rix
b02d05fd9f Fetch the parser in one. 2015-10-29 16:25:01 -04:00
Rob Rix
1e24167124 Parsing throws. 2015-10-29 16:23:58 -04:00
Rob Rix
30fa2995cc Add a typealias for parsers. 2015-10-29 16:20:57 -04:00
Rob Rix
de8fc96933 Use Source to represent most of the work. 2015-10-29 16:19:23 -04:00
Rob Rix
ee50dc7215 Move the lists of productions into the parser. 2015-10-29 16:14:05 -04:00
Rob Rix
933d21b198 Rename the table. 2015-10-29 16:10:01 -04:00
Rob Rix
3072e47339 Move the table of languages by file extension into Source. 2015-10-29 16:09:31 -04:00
Rob Rix
aa4f982c42 Sources can be loaded from. 2015-10-29 16:08:40 -04:00
Rob Rix
0f74cd324d Sources are constructed with a string. 2015-10-29 16:06:51 -04:00
Rob Rix
55809d3146 Source types are non-optional. 2015-10-29 16:04:51 -04:00
Rob Rix
9b7e6b4795 add a Source type. 2015-10-29 16:04:10 -04:00
Rob Rix
344c42f9da Clarify a couple of error messages. 2015-10-29 15:59:34 -04:00
Rob Rix
ea90628828 .h is a perfectly cromulent path extension. 2015-10-29 15:50:08 -04:00
Rob Rix
78200a32de Map, not flatMap.
This causes it to select the file URL overload. Kinda silly.
2015-10-29 15:44:26 -04:00
Rob Rix
68aba834e3 Guard clauses for parsing the URLs. 2015-10-29 15:40:36 -04:00
Rob Rix
e10312ef53 Spacing. 2015-10-29 15:39:32 -04:00
Rob Rix
9114c91d82 Dedent. 2015-10-29 15:39:26 -04:00