1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 14:54:16 +03:00
Commit Graph

9881 Commits

Author SHA1 Message Date
Rob Rix
b9360fbdc8 Reformat the someParser signature. 2017-10-06 12:20:43 -04:00
Timothy Clem
90a6471dbd Move diff timing up a level 2017-10-06 08:59:04 -07:00
Rob Rix
5e163648da Link to AdvancedOverlap. 2017-10-06 11:30:06 -04:00
Rob Rix
c474b15ee2 Note that you don’t want new instances of HasDeclarationWithStrategy. 2017-10-06 11:29:10 -04:00
Rob Rix
88477db7fa 📝 the HasDeclarationWithStrategy instances. 2017-10-06 11:28:07 -04:00
Rob Rix
f7cec59848 📝 DeclarationStrategy. 2017-10-06 11:26:30 -04:00
Rob Rix
5b0479e724 Rename the part type parameter to syntax. 2017-10-06 11:23:07 -04:00
Rob Rix
63afadfb8e 📝 HasDeclarationWithStrategy. 2017-10-06 11:22:36 -04:00
Rob Rix
28dc2ce1dd 📝 the Union instance. 2017-10-06 11:21:58 -04:00
Rob Rix
1b8836b0ec 📝 the Declaration.Method instance. 2017-10-06 11:20:57 -04:00
Rob Rix
e3e120ad74 📝 the Declaration.Function instance. 2017-10-06 11:19:34 -04:00
Rob Rix
552e3c0a5d Clarify the Markup.Section instance docs. 2017-10-06 11:18:27 -04:00
Rob Rix
c8a3116cf6 📝 the Syntax.Error instance. 2017-10-06 11:18:02 -04:00
Rob Rix
ef8a734c17 📝 the Markup.Section instance. 2017-10-06 11:17:40 -04:00
Rob Rix
a746547fd2 📝 customToDeclaration. 2017-10-06 11:17:01 -04:00
Rob Rix
0aa58d68a7 📝 CustomHasDeclaration. 2017-10-06 11:16:54 -04:00
Rob Rix
2027e94622 📝 the HasDeclaration instance. 2017-10-06 11:15:22 -04:00
Rob Rix
926f9a256d 📝 toDeclaration. 2017-10-06 11:09:47 -04:00
Rob Rix
570c5c3327 📝 HasDeclaration. 2017-10-06 11:09:42 -04:00
Rob Rix
4ab27365da Move the HasDeclaration instance up next to the typeclass. 2017-10-06 11:07:20 -04:00
Rob Rix
1ce6693dc2 📝 declarationAlgebra. 2017-10-06 11:06:42 -04:00
Rob Rix
b305182f50 Sort the declarationAlgebra higher. 2017-10-06 11:02:42 -04:00
Rob Rix
981eda3b61 📝 Strategy. 2017-10-06 11:01:36 -04:00
Rob Rix
59c2a64770 Remove the inner bind in the lambda rule. 2017-10-06 10:50:37 -04:00
Rob Rix
faf3215124 Remove the outer bind in the lambda rule. 2017-10-06 10:49:25 -04:00
Rob Rix
f22ed8fb9d Use emptyTerm when constructing lambdas. 2017-10-06 10:48:37 -04:00
Rob Rix
f86fcf32cd Abbreviate the location of empty terms. 2017-10-06 10:48:22 -04:00
Rob Rix
5510e5b0fd Revert "Add Syntax to the DeclarationStrategy predicate."
This reverts commit dc841faff44ea966969563f729ee23edc03e2db8.
2017-10-06 10:30:17 -04:00
Rob Rix
ba850e9853 Combine the code paths for ToC rendering. 2017-10-06 10:29:38 -04:00
Rob Rix
3830324818 🔥 the first parameter to HasDeclaration. 2017-10-06 10:25:59 -04:00
Rob Rix
7ae35a79c2 Revert "Define a CustomHasDeclaration instance for Syntax."
This reverts commit 91510ce6e8c93f1728c138905b26bb93630f8864.
2017-10-06 10:24:50 -04:00
Rob Rix
e9c0377d03 Revert "Decorate Syntax with declarationAlgebra."
This reverts commit 4a4f799bdb63824d6e403ff292ac9fda8059876b.
2017-10-06 10:24:06 -04:00
Rob Rix
913d0f6979 Revert "🔥 syntaxDeclarationAlgebra."
This reverts commit 042d42db1a9df6876ec061de35517f3e823f16e3.
2017-10-06 10:23:56 -04:00
Rob Rix
a644e46efc Test for emptiness without a membership constraint. 2017-10-06 10:17:17 -04:00
Rob Rix
53e6f80d93 Add Syntax to the DeclarationStrategy predicate. 2017-10-06 10:14:05 -04:00
Rob Rix
58e4a5fcf1 Spacing. 2017-10-05 20:54:29 -04:00
Rob Rix
37845baa08 Reorder the re-exports. 2017-10-05 20:38:45 -04:00
Rob Rix
5b55bb37a9 🔥 syntaxDeclarationAlgebra. 2017-10-05 20:38:35 -04:00
Rob Rix
9bf11258a5 Decorate Syntax with declarationAlgebra. 2017-10-05 20:38:30 -04:00
Rob Rix
e6ad277ef7 Define a CustomHasDeclaration instance for Syntax. 2017-10-05 20:37:20 -04:00
Rob Rix
25ca026c83 🔥 markupSectionAlgebra. 2017-10-05 20:36:33 -04:00
Rob Rix
f09621444f Decorate Markdown declarations using declarationAlgebra. 2017-10-05 20:36:14 -04:00
Rob Rix
30fb1bb324 Silence a warning in Semantic.Util. 2017-10-05 20:35:18 -04:00
Rob Rix
072f3e1e0a Replace declarationAlgebra with toDeclarationAlgebra. 2017-10-05 20:32:57 -04:00
Rob Rix
6082c5090e Export HasDeclaration. 2017-10-05 20:30:33 -04:00
Rob Rix
e9e17b71da Merge remote-tracking branch 'origin/abstract-high-level-flow-over-syntax-types' into open-toc-rendering 2017-10-05 20:12:46 -04:00
Rob Rix
85872a3e2e Merge branch 'master' into abstract-high-level-flow-over-syntax-types 2017-10-05 20:11:56 -04:00
Rob Rix
17be494d3c Rename toDeclaration' to customToDeclaration. 2017-10-05 20:07:25 -04:00
Rob Rix
544071884b Rename HasDeclaration' to CustomHasDeclaration. 2017-10-05 20:06:34 -04:00
Rob Rix
f701045232 Define a HasDeclaration' instance for Declaration.Method. 2017-10-05 20:04:42 -04:00
Rob Rix
683ea586d5 Comment on the named functions clause. 2017-10-05 20:02:34 -04:00
Rob Rix
8284db1320 We have a custom instance for Error, not Empty. 2017-10-05 19:38:23 -04:00
Rob Rix
025429f6cc Add the Union to the predicate. 2017-10-05 19:31:22 -04:00
Rob Rix
43df678875 Add Syntax.Empty & Declaration.Function to the predicate. 2017-10-05 19:29:55 -04:00
Rob Rix
bc73d982a9 Define a HasDeclaration' instance for Declaration.Function. 2017-10-05 19:26:31 -04:00
Timothy Clem
701cbd7bf2 No need for bang patterns here 2017-10-05 16:19:40 -07:00
Timothy Clem
077deb44c2 Extract withTiming and measure overall run time 2017-10-05 16:15:32 -07:00
Rob Rix
9e7cde3e9a 🔥 the membership constraint for Context in diffWithParser. 2017-10-05 18:48:53 -04:00
Rob Rix
193167e3e9 Lift the file helper into MonadIO. 2017-10-05 18:42:19 -04:00
Rob Rix
89b22f5efa Re-export toDeclarationAlgebra. 2017-10-05 18:40:42 -04:00
Timothy Clem
82968ac175 Merge branch 'master' into stats 2017-10-05 14:34:55 -07:00
Timothy Clem
5e692a5127 Documenting things 2017-10-05 14:07:18 -07:00
joshvera
71eefd92a5 Merge remote-tracking branch 'origin/master' into typescript-fixes 2017-10-05 14:04:57 -07:00
joshvera
f5514b89c7 Add readonly modifiers to parameters 2017-10-05 13:24:53 -07:00
joshvera
fca4818269 Move abstract class to declaration 2017-10-05 13:16:39 -07:00
Timothy Clem
b61d9a5619 Docs 2017-10-05 13:09:44 -07:00
Timothy Clem
d301cca11a Point free 2017-10-05 13:06:14 -07:00
Timothy Clem
8f0e8bf151 Format with one less indent 2017-10-05 13:02:57 -07:00
Timothy Clem
1c9c5e420e Make sure stat names don't use reserved chars 2017-10-05 13:02:44 -07:00
Rob Rix
40a6fa47cf Merge branch 'master' into open-toc-rendering 2017-10-05 14:48:56 -04:00
Timothy Clem
97c5efa774 Only use this in one place now 2017-10-05 11:41:04 -07:00
Rob Rix
19094e0a60 Merge branch 'master' into abstract-high-level-flow-over-syntax-types 2017-10-05 14:30:43 -04:00
Timothy Clem
ac733fa9e3 Merge remote-tracking branch 'origin/master' into stats 2017-10-05 11:30:35 -07:00
Timothy Clem
d1248d54fd Update the address parsing 2017-10-05 11:30:12 -07:00
Timothy Clem
dd18879361 Reporting timing stats 2017-10-05 11:29:59 -07:00
Timothy Clem
f9c93b4158 Show 5 decimal points on Doubles 2017-10-05 11:26:31 -07:00
Timothy Clem
87bd442c96 Refactor a bit more into Semantic.Queue
Also, docs and record prefixes
2017-10-05 10:26:16 -07:00
Rob Rix
b2cb5764fa Split up HasDeclaration into two typeclasses. 2017-10-05 12:36:58 -04:00
Rob Rix
76f3e2049a Define a HasDeclaration instance for Unions. 2017-10-05 12:34:19 -04:00
Rob Rix
4d810c347c Define an algebra using toDeclaration. 2017-10-05 12:25:36 -04:00
Rob Rix
7203134bc2 Define a HasDeclaration instance for Syntax.Error. 2017-10-05 12:24:54 -04:00
Rob Rix
3de2d95dbc Pass the annotation to toDeclaration. 2017-10-05 12:24:35 -04:00
Timothy Clem
ce2e3e737e Merge branch 'master' into stats 2017-10-05 07:48:49 -07:00
Josh Vera
6deece7610 Merge branch 'master' into typescript-fixes 2017-10-04 14:31:57 -07:00
joshvera
973d136188 one or more decorators 2017-10-04 14:29:36 -07:00
joshvera
48ff06cafe Add decorator support 2017-10-04 13:25:34 -07:00
Rob Rix
67e3e91fac Merge branch 'master' into abstract-high-level-flow-over-syntax-types 2017-10-04 15:12:53 -04:00
Timothy Clem
e5973546a2 Just give Tags a type synonym 2017-10-04 11:55:26 -07:00
Timothy Clem
c7f4ae005b Test actual sending of data 2017-10-04 11:40:39 -07:00
Timothy Clem
f0edcd48f2 Docs 2017-10-04 11:40:20 -07:00
Timothy Clem
666585bf50 Start writing a few specs 2017-10-04 11:12:24 -07:00
Rob Rix
baa3ccdcf7 Reformat. 2017-10-04 13:01:45 -04:00
Rob Rix
5ec3499044 Rename the f parameter to syntax. 2017-10-04 13:00:27 -04:00
Rob Rix
90f8e9385e 🔥 the other customizations from the DeclarationStrategy predicate. 2017-10-04 12:55:38 -04:00
Rob Rix
df5a75375b Define a HasDeclaration instance for markup sections. 2017-10-04 12:55:03 -04:00
Rob Rix
deb199e4fe Parameterize HasDeclaration by the term type. 2017-10-04 12:49:31 -04:00
Timothy Clem
010287cd5a No need to log this now 2017-10-04 09:46:15 -07:00
Timothy Clem
e75ae60ad6 Clean up imports again 2017-10-04 09:46:10 -07:00
Rob Rix
20564b5a11 toDeclaration is an R-algebra. 2017-10-04 12:42:01 -04:00
Rob Rix
67b4da98c9 toDeclaration takes the Blob. 2017-10-04 12:38:31 -04:00
Timothy Clem
ca965e8e6a Clean up imports a bit 2017-10-04 09:35:49 -07:00
Rob Rix
9cb072ed8d Sort the language extensions. 2017-10-04 12:35:31 -04:00
Rob Rix
e30fe8f9bf Define a HasDeclaration instance in terms of strategies. 2017-10-04 12:35:14 -04:00
Timothy Clem
3d5cf4347e Continue to fill out stats functionality 2017-10-04 09:34:44 -07:00
Rob Rix
5ab89d2850 Define a type family to select the strategy for a given type. 2017-10-04 12:34:34 -04:00
Rob Rix
29f112e379 The Custom strategy uses toDeclaration. 2017-10-04 12:33:48 -04:00
Rob Rix
5a44b078ce The Default strategy produces Nothing. 2017-10-04 12:33:26 -04:00
Rob Rix
d9921b34a2 Define a class to produce Declarations using a Strategy. 2017-10-04 12:32:49 -04:00
Rob Rix
533452f150 Define a type representing strategies for producing Declarations. 2017-10-04 12:30:22 -04:00
Rob Rix
f43ab13f7b Define a typeclass to produce Declarations. 2017-10-04 12:29:58 -04:00
Rob Rix
2813d221a6 Discard the Range & Span immediately for Syntax, too. 2017-10-04 11:11:06 -04:00
Rob Rix
dd4060ae36 Discard the Range & Span immediately. 2017-10-04 11:09:40 -04:00
Rob Rix
76bee8e693 🔥 keepConstructorLabel. 2017-10-04 11:09:09 -04:00
Rob Rix
3c38aea3a3 📝 ApplyAll. 2017-10-04 10:57:39 -04:00
Rob Rix
73fe3aa62c Explain the example. 2017-10-04 10:54:01 -04:00
Rob Rix
093acc84dd Note the Language. 2017-10-04 10:53:56 -04:00
Rob Rix
7738433555 📝 someParser. 2017-10-04 10:50:07 -04:00
Rob Rix
274b9edee0 📝 SomeParser. 2017-10-04 10:46:26 -04:00
Rob Rix
44d278bc35 🔥 the unused Language.Ruby module. 2017-10-04 10:34:24 -04:00
Rob Rix
a45d5d62f5 TreeSitter doesn’t depend on Ruby. 2017-10-04 10:33:36 -04:00
Rob Rix
48081853d5 Correct references to TypeScript term assignment & categories. 2017-10-04 10:33:28 -04:00
Rob Rix
27f92be70e 🔥 the unused Language.Python module. 2017-10-04 10:30:18 -04:00
Rob Rix
db082b8b5f Merge branch 'abstract-high-level-flow-over-syntax-types' of https://github.com/github/semantic-diff into abstract-high-level-flow-over-syntax-types 2017-10-04 09:40:10 -04:00
Rob Rix
fc4be0c778 Merge branch 'master' into abstract-high-level-flow-over-syntax-types 2017-10-04 09:25:16 -04:00
Timothy Clem
f80445945c Write some UDP packets 2017-10-03 20:38:36 -07:00
Timothy Clem
6abc878243 Basic stat rendering 2017-10-03 19:44:52 -07:00
Timothy Clem
78f98ce352 Introduce Task.Stat and general pattern for Task.Queue 2017-10-03 17:22:26 -07:00
Rob Rix
51928473a7 Spacing. 2017-10-03 17:23:21 -04:00
Josh Vera
03d528dda6 Merge branch 'master' into generic-term-comparability-and-equivalence 2017-10-03 14:10:25 -07:00
Rob Rix
abde14cd95 Combine the code paths for JSON diffs of à la carte terms. 2017-10-03 16:28:37 -04:00
Rob Rix
79395e9af3 Combine the code paths for patch diffs of à la carte terms. 2017-10-03 16:27:44 -04:00
Rob Rix
0c5b268530 Combine the code paths for s-expression diffs of à la carte terms. 2017-10-03 16:26:45 -04:00
Rob Rix
684af38fe9 Merge branch 'generic-term-comparability-and-equivalence' into simplified-high-level-flow 2017-10-03 16:23:50 -04:00
Rob Rix
d9a0a87531 📝 comparableTo on Union. 2017-10-03 16:04:22 -04:00
Rob Rix
0c1f0b0e46 Correct the docs for the Diffable instance for Unions. 2017-10-03 16:02:23 -04:00
Rob Rix
b4f0cee138 📝 Equivalence. 2017-10-03 16:00:35 -04:00
Rob Rix
2c7e901043 📝 equivalentTerms. 2017-10-03 15:58:52 -04:00
Rob Rix
8f09c1c1bc 📝 comparableTerms. 2017-10-03 15:55:12 -04:00
Rob Rix
e7306fa43e 📝 comparableTo. 2017-10-03 15:51:56 -04:00
Rob Rix
048f66dec8 📝 equivalentBySubterm. 2017-10-03 15:49:06 -04:00
Rob Rix
8e9158c7f0 🔥 subequivalenceTo. 2017-10-03 15:37:51 -04:00
Rob Rix
cceed47743 Determine subequivalence using Equivalence & subalgorithmFor. 2017-10-03 15:37:42 -04:00
Rob Rix
8c9be81e51 Define an Equivalence functor. 2017-10-03 15:37:17 -04:00
Rob Rix
2e2d32c985 Merge branch 'master' into generic-term-comparability-and-equivalence 2017-10-03 15:31:58 -04:00
Rob Rix
b0723ee027 Clarify the comment on the inclusion of Method in Python. 2017-10-03 15:31:18 -04:00
Rob Rix
1a10479af6 🔥 Declaration.Function, Declaration.Method, & Syntax.Context from JSON syntax. 2017-10-03 15:30:13 -04:00
Rob Rix
d2382539d1 🔥 Declaration.Function, Declaration.Method, & Syntax.Context from Markdown syntax. 2017-10-03 15:29:37 -04:00
Rob Rix
4717bde7a8 Generalize diffTerms over the syntax functor. 2017-10-03 15:28:40 -04:00
Rob Rix
d2c9faf96f 🔥 the membership constraints on diffTerms. 2017-10-03 15:27:36 -04:00
Rob Rix
0d790823ab Use comparableTerms as the comparability relation for à la carte terms. 2017-10-03 14:59:41 -04:00