forked from lightscript/babylon-lightscript
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
commit 15799aa Author: William C. Johnson <[email protected]> Date: Mon Sep 25 16:01:25 2017 -0400 @oigroup/[email protected] commit e816aa7 Author: William C. Johnson <[email protected]> Date: Mon Sep 25 15:54:40 2017 -0400 @oigroup/[email protected] commit 2376b75 Author: William C. Johnson <[email protected]> Date: Mon Sep 25 15:41:14 2017 -0400 2.3.0 - Syntactic placeholders - Pipe calls `|>`, `<|` - Track block nesting level in parser state - Fix bang call subscript unwinding crossing block boundaries - Fix premature “comprehensions are illegal” error disallowing patterns with “for” or “case” keys - Don’t lint when testing commit 64f066f Author: William C. Johnson <[email protected]> Date: Mon Sep 25 15:36:41 2017 -0400 Fix for bang call subscripting issue across block boundaries commit bda54e5 Author: William C. Johnson <[email protected]> Date: Mon Sep 25 14:38:44 2017 -0400 Comprehension fixes commit 476419a Author: William C. Johnson <[email protected]> Date: Sat Sep 23 15:53:55 2017 -0400 Run lint and flow at `preversion`, not `test` commit 266f948 Author: William C. Johnson <[email protected]> Date: Mon Sep 18 23:16:07 2017 -0400 @oigroup/[email protected] commit 2342c39 Author: William C. Johnson <[email protected]> Date: Tue Sep 5 16:51:01 2017 -0400 @oigroup/[email protected] commit 21a26a8 Merge: e61679c 7c5e20e Author: William C. Johnson <[email protected]> Date: Tue Sep 5 15:24:38 2017 -0400 Merge branch 'prerelease/2.3.0' of https://github.com/wcjohnson/babylon-lightscript into prerelease/2.3.0 commit e61679c Author: William C. Johnson <[email protected]> Date: Tue Sep 5 15:24:20 2017 -0400 Unit test for unfortunate flow typecast in if test clause commit 7c5e20e Author: William C. Johnson <[email protected]> Date: Sun Aug 6 12:58:46 2017 -0400 Misc cleanup - Remove errant copypasta from tildeCall.js - Clean up spacing/comments commit ffb7ddb Author: William C. Johnson <[email protected]> Date: Wed Jul 19 21:43:42 2017 -0400 @oigroup/[email protected] commit fb570ee Author: William C. Johnson <[email protected]> Date: Wed Jul 19 21:28:23 2017 -0400 Pipe call improvements - Support arrows as pipe call operands - Support leftward-pointing pipe calls commit f248451 Author: William C. Johnson <[email protected]> Date: Mon Jul 17 16:09:12 2017 -0400 @oigroup/[email protected] commit 00a76ef Author: William C. Johnson <[email protected]> Date: Mon Jul 17 15:52:31 2017 -0400 Fix for left-associativity and subscripts of pipeCalls commit 6d4d300 Author: William C. Johnson <[email protected]> Date: Mon Jul 17 00:43:08 2017 -0400 `pipeCall` tests commit 4e579c7 Author: William C. Johnson <[email protected]> Date: Mon Jul 17 00:28:40 2017 -0400 @oigroup/[email protected] commit 17f5a44 Author: William C. Johnson <[email protected]> Date: Sun Jul 16 23:19:22 2017 -0400 @oigroup/[email protected] commit 0bcd865 Author: William C. Johnson <[email protected]> Date: Sun Jul 16 23:07:36 2017 -0400 @oigroup/[email protected] commit 6975053 Author: William C. Johnson <[email protected]> Date: Sun Jul 16 23:03:53 2017 -0400 Parsing for pipe operator commit b10a5e48d1552ff389de314762e863197bc0da7e Author: William C. Johnson <[email protected]> Date: Sun Jul 16 22:55:34 2017 -0400 Fix associativity commit 0fac7c226b9cd9cda94a5956a45a067a145e2976 Author: William C. Johnson <[email protected]> Date: Sun Jul 16 22:22:34 2017 -0400 Parse pipe operator as subscript commit b21acb2f12941d9d7d4279320de4c55c7ee3b50f Author: William C. Johnson <[email protected]> Date: Sun Jul 16 21:17:17 2017 -0400 Basic pipeCall parsing commit 70ee2c8 Author: William C. Johnson <[email protected]> Date: Sun Jul 16 20:46:52 2017 -0400 Syntactic placeholders commit d5d4e74 Author: William C. Johnson <[email protected]> Date: Sun Jul 16 20:41:48 2017 -0400 Allow placeholder to be changed via config commit 32e43a0 Author: William C. Johnson <[email protected]> Date: Sun Jul 16 20:24:59 2017 -0400 Spread placeholder tests commit 73b9d32 Author: William C. Johnson <[email protected]> Date: Sun Jul 16 15:31:50 2017 -0400 Initial implementation of syntactic placeholders commit 833e5b9 Author: William C. Johnson <[email protected]> Date: Sun Aug 6 12:58:46 2017 -0400 Misc cleanup - Remove errant copypasta from tildeCall.js - Clean up spacing/comments
- Loading branch information
Showing
12 changed files
with
352 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@oigroup/babylon-lightscript", | ||
"version": "2.3.0-alpha.3", | ||
"version": "2.3.1", | ||
"description": "A LightScript parser, based on babylon (a JavaScript parser)", | ||
"author": "Alex Rattray <[email protected]>", | ||
"homepage": "http://lightscript.org/", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
test/fixtures/bang-call/subscripts/ambiguous-arrow-body/actual.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
a! -> | ||
b | ||
~c() |
195 changes: 195 additions & 0 deletions
195
test/fixtures/bang-call/subscripts/ambiguous-arrow-body/expected.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,195 @@ | ||
{ | ||
"type": "File", | ||
"start": 0, | ||
"end": 16, | ||
"loc": { | ||
"start": { | ||
"line": 1, | ||
"column": 0 | ||
}, | ||
"end": { | ||
"line": 3, | ||
"column": 6 | ||
} | ||
}, | ||
"program": { | ||
"type": "Program", | ||
"start": 0, | ||
"end": 16, | ||
"loc": { | ||
"start": { | ||
"line": 1, | ||
"column": 0 | ||
}, | ||
"end": { | ||
"line": 3, | ||
"column": 6 | ||
} | ||
}, | ||
"sourceType": "script", | ||
"body": [ | ||
{ | ||
"type": "ExpressionStatement", | ||
"start": 0, | ||
"end": 16, | ||
"loc": { | ||
"start": { | ||
"line": 1, | ||
"column": 0 | ||
}, | ||
"end": { | ||
"line": 3, | ||
"column": 6 | ||
} | ||
}, | ||
"expression": { | ||
"type": "CallExpression", | ||
"start": 0, | ||
"end": 16, | ||
"loc": { | ||
"start": { | ||
"line": 1, | ||
"column": 0 | ||
}, | ||
"end": { | ||
"line": 3, | ||
"column": 6 | ||
} | ||
}, | ||
"callee": { | ||
"type": "Identifier", | ||
"start": 0, | ||
"end": 1, | ||
"loc": { | ||
"start": { | ||
"line": 1, | ||
"column": 0 | ||
}, | ||
"end": { | ||
"line": 1, | ||
"column": 1 | ||
}, | ||
"identifierName": "a" | ||
}, | ||
"name": "a" | ||
}, | ||
"arguments": [ | ||
{ | ||
"type": "ArrowFunctionExpression", | ||
"start": 3, | ||
"end": 16, | ||
"loc": { | ||
"start": { | ||
"line": 1, | ||
"column": 3 | ||
}, | ||
"end": { | ||
"line": 3, | ||
"column": 6 | ||
} | ||
}, | ||
"id": null, | ||
"generator": false, | ||
"expression": false, | ||
"async": false, | ||
"params": [], | ||
"skinny": true, | ||
"body": { | ||
"type": "BlockStatement", | ||
"start": 3, | ||
"end": 16, | ||
"loc": { | ||
"start": { | ||
"line": 1, | ||
"column": 3 | ||
}, | ||
"end": { | ||
"line": 3, | ||
"column": 6 | ||
} | ||
}, | ||
"body": [ | ||
{ | ||
"type": "ExpressionStatement", | ||
"start": 8, | ||
"end": 16, | ||
"loc": { | ||
"start": { | ||
"line": 2, | ||
"column": 2 | ||
}, | ||
"end": { | ||
"line": 3, | ||
"column": 6 | ||
} | ||
}, | ||
"expression": { | ||
"type": "CallExpression", | ||
"start": 8, | ||
"end": 16, | ||
"loc": { | ||
"start": { | ||
"line": 2, | ||
"column": 2 | ||
}, | ||
"end": { | ||
"line": 3, | ||
"column": 6 | ||
} | ||
}, | ||
"callee": { | ||
"type": "Identifier", | ||
"start": 13, | ||
"end": 14, | ||
"loc": { | ||
"start": { | ||
"line": 3, | ||
"column": 3 | ||
}, | ||
"end": { | ||
"line": 3, | ||
"column": 4 | ||
}, | ||
"identifierName": "c" | ||
}, | ||
"name": "c" | ||
}, | ||
"arguments": [ | ||
{ | ||
"type": "Identifier", | ||
"start": 8, | ||
"end": 9, | ||
"loc": { | ||
"start": { | ||
"line": 2, | ||
"column": 2 | ||
}, | ||
"end": { | ||
"line": 2, | ||
"column": 3 | ||
}, | ||
"identifierName": "b" | ||
}, | ||
"name": "b" | ||
} | ||
], | ||
"tilde": true | ||
} | ||
} | ||
], | ||
"directives": [], | ||
"extra": { | ||
"curly": false | ||
} | ||
} | ||
} | ||
], | ||
"extra": { | ||
"bang": true | ||
} | ||
} | ||
} | ||
], | ||
"directives": [] | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
test/fixtures/bang-call/subscripts/ambiguous-arrow-body/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"alternatives": { | ||
"default": { | ||
"throws": "Indentation required. (3:2)" | ||
}, | ||
"noEnforcedSubscriptIndentation": { | ||
"allPlugins": true, | ||
"excludePlugins": ["enforceSubscriptIndentation"] | ||
} | ||
} | ||
} |
2 changes: 2 additions & 0 deletions
2
test/fixtures/lightscript/whitespace/no-enforced-indentation-tilde/actual.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
a | ||
~b() |
Oops, something went wrong.