1
1
mirror of https://github.com/github/semantic.git synced 2024-12-25 16:02:43 +03:00
Commit Graph

8059 Commits

Author SHA1 Message Date
Rob Rix
5e4f221585 Define a MonadIO instance for Task. 2017-07-21 13:09:51 -04:00
Rob Rix
d886ba21f0 Run tasks by refinement, writing log messages for each one. 2017-07-21 13:06:14 -04:00
Timothy Clem
289e0cbd2a Merge remote-tracking branch 'origin/master' into lenient-ruby-assignment 2017-07-21 09:52:57 -07:00
Timothy Clem
4b25ff1636 Merge remote-tracking branch 'origin/master' into lenient-ruby-assignment 2017-07-21 09:52:03 -07:00
Timothy Clem
dad86d0dd8 Merge branch 'master' into program-nodes-in-parse-tree-output 2017-07-21 09:51:50 -07:00
Timothy Clem
5d1720f93c Merge remote-tracking branch 'origin/master' into fix-some-python-assignment-errors 2017-07-21 09:47:16 -07:00
Timothy Clem
1269577a75 Merge remote-tracking branch 'origin/master' into fix-ruby-empty-statement 2017-07-21 09:28:46 -07:00
Rob Rix
b51da4519e Log from a serializing background thread. 2017-07-21 12:13:50 -04:00
Rob Rix
8b4db1d3e8 Define a record selector for message content. 2017-07-21 12:10:34 -04:00
Rob Rix
86169b6eb6 Define informational messages. 2017-07-21 12:10:06 -04:00
Rob Rix
007fdd0e5c Define runTask using foldFreer. 2017-07-21 12:09:06 -04:00
Timothy Clem
2f9f9f5752 Merge remote-tracking branch 'origin/master' into remove-sourceState 2017-07-21 09:07:33 -07:00
Rob Rix
4a067250c6 Merge branch 'bump-freer' into serialize-concurrent-logging 2017-07-21 12:03:39 -04:00
Timothy Clem
20905f6e65 Write this as guards instead 2017-07-21 08:59:38 -07:00
Rob Rix
6a04e3843b Sort the import of Files down. 2017-07-21 11:42:06 -04:00
Rob Rix
e2a21addf2 Log messages to stderr. 2017-07-21 11:38:17 -04:00
Rob Rix
6c272105a4 Format messages as ByteStrings. 2017-07-21 11:38:02 -04:00
Rob Rix
03862a33f5 Define a Message type for logging. 2017-07-21 11:37:54 -04:00
Rob Rix
d1b3cc5c06 🔥 runAlgorithm/runAlgorithmSteps.
These have been subsumed by freer-cofreer’s runFreer & freerSteps.
2017-07-21 11:08:01 -04:00
Rob Rix
07edce5bfc Bump freer-cofreer to master. 2017-07-21 11:05:58 -04:00
Rick Winfrey
dc0d6ed90b Fix typo 2017-07-20 17:34:19 -07:00
Rick Winfrey
e1460fadc1 Clarify "rest" in terms of Union 2017-07-20 17:25:27 -07:00
Rick Winfrey
74c6714be1 📝 the Diffable instances 2017-07-20 17:21:20 -07:00
Timothy Clem
cf268a3ce3 Make Ruby assignment lenient: everything is an expression 2017-07-20 15:10:12 -07:00
Rick Winfrey
16ed7e704a Merge branch 'master' into diff-assignment-by-syntax 2017-07-20 14:50:52 -07:00
Timothy Clem
ad7342b93f Merge branch 'master' into catch-error-specs 2017-07-20 14:25:23 -07:00
Rick Winfrey
ad70ccb97d 🔥 Diffable for old Syntax 2017-07-20 14:21:59 -07:00
Rick Winfrey
ec5ec8ebb5 Replace diffLinearly -> diffRecursively 2017-07-20 14:17:01 -07:00
Rick Winfrey
b6396fbd51 Derive Diffable instances for Syntax constructors 2017-07-20 14:16:18 -07:00
Rick Winfrey
c8da38ddc2 Add Diffable class and instances 2017-07-20 14:15:01 -07:00
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
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
4cdac77633 Test out catchError 2017-07-20 09:32:24 -07: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
aaf39930b0 Simplify how the output is defaulted to stdout. 2017-07-19 20:07:17 -04:00
Rob Rix
839c64b4a3 Rename Command.Files to Files. 2017-07-19 19:57:36 -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
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
joshvera
e637d195b9 Add remaining json syntax 2017-07-19 15:35:47 -04:00
Rob Rix
6afe6a94a4 Define a high-level operation to read a pair of blobs 2017-07-19 15:28:26 -04:00
Rob Rix
90f4aa38a7 Define a high-level operation to read in blobs. 2017-07-19 15:24:55 -04:00
Rob Rix
ab7b39e771 Align the doc comments for AssignmentParser. 2017-07-19 15:17:02 -04:00
joshvera
381d5e741f Add some structure to JSON.Syntax 2017-07-19 15:17:00 -04:00
Rob Rix
abd0e5ab41 Correct the docs for readFile. 2017-07-19 15:14:21 -04:00
Rob Rix
446ee85894 Pass extant blobs’ paths to showPos. 2017-07-19 15:02:27 -04:00
Rob Rix
b11cf64103 Pass the blob to printError. 2017-07-19 14:59:42 -04:00
Rob Rix
4d62b8be3f Merge branch 'master' into task-input-output 2017-07-19 14:47:53 -04:00
Rob Rix
97c8b90c83 runParser takes a Blob. 2017-07-19 14:47:07 -04:00
Rob Rix
6dd56e5bd9 Parse tasks take blobs. 2017-07-19 14:42:02 -04:00
Rob Rix
5481883b9f 🔥 Command. 2017-07-19 14:14:07 -04:00
Rob Rix
1c51f23ef4 Import all the symbols from Command.Files instead of Command. 2017-07-19 14:13:22 -04:00
Rob Rix
b630a11b6e 🔥 Arguments. 2017-07-19 14:08:38 -04:00
Rob Rix
7aa8ea1150 Export the DiffMode/ParseMode constructors. 2017-07-19 14:08:32 -04:00
Rob Rix
be5de7acaf Move DiffMode into SemanticCmdLine. 2017-07-19 14:07:18 -04:00
Rob Rix
4df9192d02 Move ParseMode into SemanticCmdLine. 2017-07-19 14:05:23 -04:00
Rob Rix
2cd59243a0 🔥 DiffArguments. 2017-07-19 14:04:39 -04:00
Rob Rix
b74cc92213 🔥 ParseArguments. 2017-07-19 14:04:33 -04:00
Rob Rix
30d4c6a6e8 🔥 ProgramMode. 2017-07-19 14:04:17 -04:00
Rob Rix
5e13616358 🔥 Arguments. 2017-07-19 14:03:51 -04:00
Rob Rix
1a3708a462 Format the export list. 2017-07-19 14:02:22 -04:00
Rob Rix
e03ba6b0e4 Define diffing/parsing CLI parsers in terms of SomeRenderer and the action to be performed. 2017-07-19 14:00:30 -04:00
Rob Rix
5ea5b7fb05 Export SomeRenderer. 2017-07-19 13:59:20 -04:00
Rob Rix
0722f09626 Define a SomeRenderer type to abstract type indices away. 2017-07-19 13:54:48 -04:00
Rick Winfrey
9d1f4f19ca Update ErrorSummary to use MaybeLanguage 2017-07-18 17:18:09 -07:00
Rick Winfrey
c92157b988 🔥 Undetected constructor
- Representing as Maybe Language is helpful for blobs that are null.
2017-07-18 17:17:33 -07:00
Rick Winfrey
c7eb0dc482 🔥 language from Summaries; 🔥 language from JSONSummary
- We only care about the language when there's a parse error, so language is added to ErrorSummary only
2017-07-18 16:49:39 -07:00
Rick Winfrey
565445039e Add language to Summaries 2017-07-18 15:59:55 -07:00
Rick Winfrey
9d2119ffc8 Add language field to JSONSummary 2017-07-18 15:58:37 -07:00
Rick Winfrey
7fdc32b77c Add Undetected Language constructor 2017-07-18 15:52:18 -07:00
Timothy Clem
74d7bc9d36 Merge branch 'master' into constructor-name 2017-07-18 11:34:54 -07:00
Timothy Clem
28a3313d12 Rename constructorLabelWithSource => constructorNameAndConstantFields 2017-07-18 11:33:28 -07:00
Timothy Clem
31a2e6a08d Return a ConstructorLabel instead of a ByteString 2017-07-18 11:32:59 -07:00
Timothy Clem
b0e98bd6b5 Reduce language pragmas needed 2017-07-18 11:23:37 -07:00
Timothy Clem
49100a7479 Use Generic1 to get conName for syntax constructor labels 2017-07-18 10:03:32 -07:00
Timothy Clem
a6f375859f Update Parser to use Either instead of Result 2017-07-17 14:39:08 -07:00
Timothy Clem
039e019551 Track errors in AssignmentState, Result => Either 2017-07-17 14:39:03 -07:00
Timothy Clem
902aa213f5 Assign HTMLInline in markdown 2017-07-17 10:50:02 -07:00
Rob Rix
9370addba1 Print the source in white. 2017-07-17 12:58:41 -04:00
Rob Rix
1c1349ef82 Apply the ShowS in putStrErr. 2017-07-17 12:56:40 -04:00
Rob Rix
1b117ef8b0 Add a newline after the callstack. 2017-07-17 12:55:39 -04:00
Rob Rix
dcb1794cfa Print the callstack in white. 2017-07-17 12:55:13 -04:00
joshvera
3f6c71b3a4 Add json grammar module 2017-07-17 12:52:50 -04:00
Rob Rix
d997779bdf Traverse the Maybe directly. 2017-07-17 12:52:17 -04:00
Rob Rix
36801584e0 Prefer the later error. 2017-07-17 12:51:42 -04:00
Rob Rix
a07726fcf3 Preserve errors through repetitions. 2017-07-17 12:22:27 -04:00
Rob Rix
8354b701ae Alternating results preserves errors. 2017-07-17 12:20:02 -04:00
Rob Rix
3a7c4a238f Produce errors at the current node’s location instead of the end of the previous node.
This gives us better localization of errors, pointing at the start of the (guaranteed extant) current node instead of the state’s current location (which can be an arbitrary distance earlier in the source).
2017-07-17 12:19:15 -04:00
Rob Rix
b66cfcc52c Select the lesser of the node symbol & the parse error symbol.
This effectively clamps the ERROR symbol (65535) to the maximal constructor.
2017-07-14 14:43:36 -04:00
Rick Winfrey
921be5bfca Assign Let statements in Except clauses 2017-07-13 15:52:03 -07:00
Rick Winfrey
af8b0ffd2f Add Catch record fields 2017-07-13 15:49:33 -07:00
Rick Winfrey
9c9f43d4e9 Assign Decorators with no ArgumentList 2017-07-13 15:22:01 -07:00
Rick Winfrey
08560875b6 uncurry and swap 2017-07-13 15:15:36 -07:00
Rick Winfrey
c0e47ffd8a 🔥 old comment 2017-07-13 15:15:17 -07:00
Rick Winfrey
8a0e952a11 Merge branch 'master' into python-slice-expressions 2017-07-13 10:03:53 -07:00
Rick Winfrey
0999f42b96 Merge branch 'master' into python-slice-expressions 2017-07-13 10:02:57 -07:00
Rick Winfrey
8b2f608221 🔥 toEnumeration 2017-07-13 09:50:19 -07:00
Rob Rix
8546dc80b7 Merge branch 'master' into parse-error-symbols 2017-07-13 11:03:15 -04:00
Rob Rix
b264246b93 Merge branch 'master' into nested-decorators 2017-07-13 11:01:10 -04:00
Rob Rix
7b888cd760 Merge branch 'master' into parse-error-symbols 2017-07-13 10:58:28 -04:00
Rick Winfrey
0e5a22da2b Assign nested decorators 2017-07-12 18:51:14 -07:00
Rick Winfrey
91d15699ce Assign slice expressions 2017-07-12 15:31:41 -07:00
Rick Winfrey
6da98f3d34 Rename Literal.Range -> Expression.Enumeration 2017-07-12 15:28:05 -07:00
Rob Rix
47e8fdeef5 Represent Markdown nodes with the Node/AST types. 2017-07-12 17:03:57 -04:00
Rob Rix
3bd4fe5665 Assign parse errors in Ruby statements. 2017-07-12 16:20:42 -04:00
Rob Rix
d229ec2310 Assign parse errors in Python. 2017-07-12 16:20:37 -04:00
Rob Rix
1e4eb2d24e Remove the error parameter from Syntax.Error. 2017-07-12 16:20:24 -04:00
Rob Rix
e050a44cf4 Define a Node type for the intermediate representation of metadata. 2017-07-12 15:55:21 -04:00
Rob Rix
c4fc6e5c4a Use the AST synonym. 2017-07-12 15:40:54 -04:00
Rob Rix
00221d421f 🔥 the ParseError ErrorCause. 2017-07-12 15:35:00 -04:00
Rob Rix
cf8148f804 Merge branch 'master' into parse-error-symbols 2017-07-12 14:58:40 -04:00
Timothy Clem
7fff9cc64a Merge branch 'master' into ruby-assignment 2017-07-12 10:49:19 -07:00
Rick Winfrey
83fcc206f3 Merge branch 'master' into par-arg-eters 2017-07-12 10:09:06 -07:00
Rick Winfrey
934cb445b0 🔥 the >>=! 2017-07-12 10:02:55 -07:00
Rob Rix
230570c42b Obviate the need for Maybe around symbols. 2017-07-12 12:55:57 -04:00
Timothy Clem
b3ef7cbded Fix up unary defined?, thanks @robrix 2017-07-12 09:06:50 -07:00
Timothy Clem
f87a5039a7 Go back to original Syntax.Empty 2017-07-12 08:18:03 -07:00
Timothy Clem
4d70e1c358 Merge branch 'master' into markdown-headings 2017-07-12 08:12:47 -07:00
Rick Winfrey
10a0efcf0b Move literal assignment to top 2017-07-11 16:20:30 -07:00
Rick Winfrey
f1e9e215ce Collapse parameter assignments 2017-07-11 16:08:49 -07:00
Rick Winfrey
be2969b153 Collapse argument assignments 2017-07-11 16:08:28 -07:00
Rick Winfrey
6bfb27adcc Reflow literals and 🔤 2017-07-11 16:07:35 -07:00
Rick Winfrey
4419502a2c Collapse argument assignments 2017-07-11 16:07:20 -07:00
Rick Winfrey
b1405f90dd 🔥 no longer valid comment 2017-07-11 16:06:41 -07:00
Rick Winfrey
ad681cc3a0 Collapse import assignments 2017-07-11 16:06:17 -07:00
Rick Winfrey
240ebbfdfe Combine keyword parameter and argument assignments 2017-07-11 15:43:44 -07:00
Rick Winfrey
a83a6a7e49 Combine list splat parameter and arguments assignments 2017-07-11 15:43:26 -07:00
Rick Winfrey
e61251f589 Assign dictionary splat arguments 2017-07-11 15:42:59 -07:00
Rick Winfrey
aaf2ce089e Assign dictionary splat parameters 2017-07-11 15:31:19 -07:00
Timothy Clem
2c5b12f8de Merge branch 'master' into ruby-assignment 2017-07-11 14:19:20 -07:00
Rick Winfrey
3f4d47030b Assign list splat parameters 2017-07-11 13:53:25 -07:00
Rick Winfrey
821c6813ec Assign typedDefaultParameter 2017-07-11 13:43:35 -07:00
Timothy Clem
210417a9d7 Explain why binary minus is a challenge 2017-07-11 13:23:19 -07:00
Timothy Clem
7c513d3e01 Assign heredocs as TextElement for now 2017-07-11 13:23:05 -07:00
Timothy Clem
c314330e14 Handle === style markdown headings 2017-07-11 09:37:24 -07:00
Rick Winfrey
d6e1017117 Assign wildcard (*) in import from statements 2017-07-10 16:11:03 -07:00
Rick Winfrey
b35091f754 Assign aliased imports 2017-07-10 15:58:41 -07:00
Rick Winfrey
c46a0bd615 📝 2017-07-10 15:58:29 -07:00
Timothy Clem
bd684d0ed6 Merge remote-tracking branch 'origin/master' into ruby-assignment 2017-07-10 14:09:00 -07:00
Rick Winfrey
9f0a7c2c94 Merge branch 'master' into python-assignment-improvements 2017-07-10 13:59:55 -07:00
Rick Winfrey
a64d85410c Assign default parameters 2017-07-10 13:53:42 -07:00
Rick Winfrey
c4206016e9 Reflow declaration rule 2017-07-10 13:53:33 -07:00
Timothy Clem
f715e6fdf1 Show 'Heading N' instead of 'Section' for md toc summaries 2017-07-10 11:15:03 -07:00
Timothy Clem
2e6ae403bd ReservedIdentifiers and minor cleanup 2017-07-10 08:32:39 -07:00
Timothy Clem
39a457ceaf Introduce blocks 2017-07-07 15:17:15 -07:00
Timothy Clem
96910c7d55 Any statement as parameter 2017-07-07 15:16:51 -07:00
Timothy Clem
2235b5a614 Streamline literal 2017-07-07 15:16:36 -07:00
Timothy Clem
4a553ff4fa Slightly different ForEach structure 2017-07-07 15:13:32 -07:00
Timothy Clem
61e0d8b83e Merge remote-tracking branch 'origin/master' into ruby-assignment 2017-07-07 14:43:32 -07:00
Timothy Clem
fbe6e451f4 Keywords as identifiers 2017-07-07 14:23:38 -07:00
Timothy Clem
39b7c05e50 case/when/else 2017-07-07 14:22:17 -07:00
Timothy Clem
7d8978f764 Uninterpreted 2017-07-07 13:53:16 -07:00
Timothy Clem
cf17c77a5e Rescue modifiers 2017-07-07 13:47:50 -07:00
Rick Winfrey
1e84cc3f8e Add comment for python grammar version 2017-07-07 13:03:42 -07:00
Rick Winfrey
9634dcb94a Add comment about decorator 2017-07-07 12:21:16 -07:00
Rick Winfrey
6563d4ce2b Rework functionDefinition assignment 2017-07-07 12:07:13 -07:00
Timothy Clem
b63e86a9a5 Alias and undef just as function calls 2017-07-07 10:51:18 -07:00
Rick Winfrey
fbd5b57137 Remove case for function and async function assignments 2017-07-07 10:38:02 -07:00
Rick Winfrey
e563a0908b 🔥 unnecessary $ 2017-07-07 10:37:42 -07:00
Timothy Clem
d470d3218d No longer need this import 2017-07-07 10:34:17 -07:00
Timothy Clem
10a2238952 Bring in String literal changes 2017-07-07 10:31:20 -07:00
Timothy Clem
9904a39fb2 Fix up rescue, allow in methods 2017-07-07 10:04:49 -07:00
Timothy Clem
277c6114ff Force template haskell to re-generate 2017-07-07 10:03:44 -07:00
Rick Winfrey
c3e4c82be5 🔥 old comment 2017-07-07 09:48:22 -07:00
Timothy Clem
2fcc566542 Clean up argument/parameter parsing 2017-07-07 09:15:24 -07:00
Timothy Clem
60c932acd3 Singleton methods 2017-07-07 08:46:06 -07:00
Rick Winfrey
6c2e7500c4 Assign keyword argument 2017-07-06 18:31:37 -07:00
Timothy Clem
1a0445b49c Singleton classes 2017-07-06 15:57:31 -07:00
Timothy Clem
cedb1905be One level of statement 2017-07-06 15:57:14 -07:00
Timothy Clem
94311623d0 Add Statement.Retry - support retry and redo 2017-07-06 15:41:04 -07:00
Timothy Clem
c53256e720 Fix typo now that ruby grammar is updated 2017-07-06 15:40:45 -07:00
Timothy Clem
5cebfd3b6c First pass at begin, rescue, ensure, else 2017-07-06 14:43:49 -07:00
Timothy Clem
40a2fc6820 Bring in Else and changes to Try 2017-07-06 14:43:34 -07:00
Rick Winfrey
352d090ce0 Assign decoratedDefinitions 2017-07-06 12:58:09 -07:00
Rick Winfrey
b4e81ab360 Fix names for Decorator instances 2017-07-06 12:57:34 -07:00
Timothy Clem
1acbd78108 Assignment 2017-07-06 12:56:16 -07:00
Rick Winfrey
9267ba91df Add Data.Syntax.Declaration.Decorator 2017-07-06 12:02:10 -07:00
Rick Winfrey
a3c22babce Update classScope -> classBody for consistency 2017-07-06 12:01:56 -07:00
Rick Winfrey
5010d8962d Simplify Data.Syntax.Literal.String 2017-07-06 11:02:55 -07:00
Timothy Clem
06e0e07920 Subscripts 2017-07-06 09:54:54 -07:00
Timothy Clem
a4c0c93b2b Method calls 2017-07-06 09:45:03 -07:00
Timothy Clem
0ef935eb2b Hash literal 2017-07-06 09:44:43 -07:00
Timothy Clem
83642f15e6 Duplicate Symbol 2017-07-06 09:44:31 -07:00
Timothy Clem
0aa0c614b7 For 2017-07-06 09:44:10 -07:00
Timothy Clem
2d1596de3c Multiple bindings allowed in ForEach 2017-07-06 09:43:19 -07:00
Rick Winfrey
97d6cefb0b Assign withStatements 2017-07-05 18:37:16 -07:00
Rick Winfrey
64b2845138 Assign multiple identifiers for except clauses and many expressions 2017-07-05 17:49:02 -07:00
Rick Winfrey
84cd43a1ff Assign tryStatements with except clauses 2017-07-05 17:34:09 -07:00
Rick Winfrey
64538daa3a Update Data.Syntax.Statement.Catch to require two terms 2017-07-05 17:32:38 -07:00
Timothy Clem
7cdddebfce Class and Module 2017-07-05 15:41:54 -07:00
Timothy Clem
dd464f01d5 Assign lambdas and methods (with parameters) 2017-07-05 14:51:12 -07:00
Timothy Clem
3e9827a890 s/keywords/keyword 2017-07-05 14:48:57 -07:00
Timothy Clem
a6820d12a8 Merge remote-tracking branch 'origin/master' into ruby-assignment 2017-07-05 12:21:21 -07:00
Rick Winfrey
6d1ac8af87 🔥 unused function 2017-06-30 18:00:54 -07:00
Rick Winfrey
b1a7dba4ec Rename arguments 2017-06-30 18:00:45 -07:00
Rick Winfrey
19dcdc3fd9 Assign while statements with else clauses 2017-06-30 18:00:35 -07:00
Rick Winfrey
9ab480a90d Assign for statements with else clauses 2017-06-30 17:52:13 -07:00
Rick Winfrey
2bbec1e6e6 Add Data.Syntax.Statement.Else for handling Python for else, and while else statements 2017-06-30 17:25:43 -07:00
Rick Winfrey
48141cbe0a Add Data.Syntax.Statement.Let 2017-06-30 17:23:06 -07:00
Rick Winfrey
1e05fbf754 Update functionDefinition and asyncFunctionDefinition assignments 2017-06-30 17:21:04 -07:00
Rick Winfrey
c2800edd0b Favor pure over return 2017-06-29 16:45:44 -07:00
Rick Winfrey
29bdbaf52c Assing lambda with Type.Annotation
- Maintain consistency with functionDefinition and asyncFunctionDefinition assignments
2017-06-29 16:45:30 -07:00
Rick Winfrey
b585c01b32 Assign functionDefinition and asyncFunctionDefinition
- Uses Data.Syntax.Type.Annotation to capture the function definition type

- Uses Data.Syntax.Type.Annotation to capture if function definition is async
2017-06-29 15:52:41 -07:00
Rick Winfrey
4c4e61e000 Update TOC renderer 2017-06-29 15:04:23 -07:00
Rick Winfrey
246f2b8c74 🔥 functionType field on Data.Syntax.Declaration.Function 2017-06-29 15:03:57 -07:00
Rick Winfrey
8df150fa17 Update Language.Python.Syntax typedParameter to use Data.Syntax.Type.Annotation 2017-06-29 13:33:16 -07:00
Rick Winfrey
150a0c2461 Add Eq1 and Show instances for Data.Syntax.Type.Annotation 2017-06-29 13:32:44 -07:00
Rick Winfrey
9d0cef141a 🔥 Data.Syntax.TypedIdentifier 2017-06-29 13:32:23 -07:00
Rick Winfrey
b362e8f7b4 Merge branch 'master' into python-conditional-expressions 2017-06-28 11:49:06 -07:00
Rob Rix
006dac8f68 Inline run. 2017-06-26 12:12:46 -04:00
Rob Rix
af3038fc1f Evaluate the spine of the list strictly. 2017-06-26 11:44:20 -04:00
Rob Rix
89ec9e11c0 Avoid slicing down the source when advancing through the state. 2017-06-26 11:44:08 -04:00
Rob Rix
10e81996fa 🔥 Empty. 2017-06-26 10:03:08 -04:00
Rob Rix
2be307e967 many participates in committed choice. 2017-06-24 17:16:57 -04:00
Rob Rix
eaa4423dec Define a Many rule. 2017-06-24 17:10:04 -04:00
Rob Rix
7df59da281 Frame the <|> rule in terms of the choices along each side. 2017-06-24 16:51:00 -04:00
Rob Rix
1bbb252738 Return is the left-identity of alternation. 2017-06-24 16:44:00 -04:00
Rob Rix
4a00ee3e23 Make sure the end column makes sense. 2017-06-24 15:55:51 -04:00
Rob Rix
f2b6cdb223 Deal with nonsensical end lines. 2017-06-24 15:46:07 -04:00
Rob Rix
5d75659c6e Define spanToRange tacitly. 2017-06-24 15:22:58 -04:00
Rob Rix
d44684cd4e Simplify how sections and code blocks are projected. 2017-06-24 15:01:00 -04:00