JT
f459f77335
Merge pull request #40 from elferherrera/parse-error
...
Parse errors for def, let and alias
2021-09-13 04:58:25 +12:00
Fernando Herrera
66c58217af
change message
2021-09-12 16:36:16 +01:00
Fernando Herrera
8f07f40f22
external call
2021-09-12 16:34:43 +01:00
Jakub Žádník
e6a2e27e33
Fix failing compilation after rebase
2021-09-12 15:57:49 +03:00
Jakub Žádník
8577d3ff41
Check for left-unbounded range before external cmd
2021-09-12 15:56:58 +03:00
Jakub Žádník
78054a5352
Allow parsing left-unbounded range (..10)
...
It is implemented as a preliminary check when parsing a call and relies
on a fact that a token that successfully parses as a range is unlikely
to be a valid path or command name.
2021-09-12 15:56:58 +03:00
Jakub Žádník
ce0b5bf4ab
Add test for float ranges
2021-09-12 15:36:54 +03:00
Jakub Žádník
9936946eb5
Fmt
2021-09-12 14:58:32 +03:00
Jakub Žádník
013b12a864
Do not allow precision interval to rach < epsilon
2021-09-12 14:55:11 +03:00
Jakub Žádník
2f04c172fe
Add floating point support for ranges
2021-09-12 14:12:53 +03:00
JT
648fe052db
Merge branch 'main' into wip
2021-09-12 09:26:47 +12:00
JT
55aa70c88a
WIP
2021-09-12 09:26:35 +12:00
Fernando Herrera
9c98783917
clippy correcgtions
2021-09-11 13:16:40 +01:00
Fernando Herrera
4b8ba29cdb
check for = before internal parsing
2021-09-11 13:07:19 +01:00
Jakub Žádník
4749776984
Add stepping to ranges & enable reverse ranges
...
Follows the following syntax: <start>..<next-value>..<end>
2021-09-11 14:28:46 +03:00
Fernando Herrera
47ee50072e
Merge branch 'main' of https://github.com/nushell/engine-q into parse-error
2021-09-11 08:26:29 +01:00
Fernando Herrera
198c884158
change name in error
2021-09-11 08:22:41 +01:00
Tanishq Kancharla
1d945d8ce3
added source command
2021-09-11 00:54:24 -04:00
JT
bfd05772ef
Improve completions inside of a pipeline
2021-09-10 20:07:18 +12:00
Fernando Herrera
9a16a8fd06
corrected error check
2021-09-10 08:44:31 +01:00
Fernando Herrera
2ea19aeac0
Merge branch 'main' of https://github.com/nushell/engine-q into parse-error
2021-09-10 08:28:58 +01:00
Fernando Herrera
0794ebf5fa
error parsing for def, alias and let
2021-09-10 08:28:43 +01:00
JT
26d50ebcd5
Add a very silly table
2021-09-10 14:27:12 +12:00
JT
c1194b3d1e
Add a very silly ls
2021-09-10 13:09:54 +12:00
JT
16baf5e16a
Add a very silly ls
2021-09-10 13:06:44 +12:00
JT
abda6f148c
Finish up completions
2021-09-10 10:09:40 +12:00
JT
bb6781a3b1
Add row conditions
2021-09-10 09:47:20 +12:00
JT
2d7192e390
Add parser README, some parser fixups
2021-09-09 06:54:27 +12:00
Tanishq Kancharla
d35a58e05c
Remove unused imports
2021-09-07 22:32:28 -04:00
Tanishq Kancharla
ecbe7bf8d7
move value into its own folder
2021-09-07 22:26:57 -04:00
JT
6dd9f05ea1
Add an experimental record iteration
2021-09-08 10:00:20 +12:00
JT
a8646f94ab
Add cell paths for streams
2021-09-07 19:35:59 +12:00
JT
b0ab78a767
Switch tables to list/streams of records
2021-09-07 19:07:11 +12:00
JT
e00da070fd
Fail more gently for bad list/table parses
2021-09-07 15:56:30 +12:00
JT
bdce34676a
Allow rest vars to have a custom name
2021-09-07 15:37:02 +12:00
JT
3b7d7861e3
Add cell paths
2021-09-07 10:02:24 +12:00
Fernando Herrera
f7a19d37c6
one parser function
2021-09-06 21:41:30 +01:00
JT
4ce9a5c894
Make variable assignment convert streams to full values
2021-09-07 06:05:46 +12:00
JT
a1f7a3c17b
improve int division to be more nushell-like
2021-09-06 17:35:58 +12:00
JT
3b99ce71a0
add simple value iteration
2021-09-06 16:16:32 +12:00
JT
96b0edf9b0
range iteration
2021-09-06 16:07:48 +12:00
JT
979faf853a
Block params
2021-09-06 14:20:02 +12:00
JT
aaee3a8b61
WIP
2021-09-06 11:16:27 +12:00
Fernando Herrera
b3d287815d
updated dependencies
2021-09-05 20:06:57 +01:00
JT
57677a50b5
Fix #15
2021-09-06 06:44:18 +12:00
JT
6ebc97dec2
Update parser.rs
2021-09-06 06:09:36 +12:00
Jakub Žádník
56c8987e0f
Add '.' and '-' to restricted characters
...
This means that commands cannot start with these characters.
However, we get the following benefits:
* Negative numbers > -10
* Ranges with negative numbers > -10..-1
* Left-unbounded ranges > ..10
2021-09-05 20:33:53 +03:00
Jakub Žádník
7ae4ca88b6
"Fix" failing CI
2021-09-05 11:03:04 +03:00
Jakub Žádník
f0d469f1d4
Fix clippy warnings
2021-09-05 01:40:15 +03:00
Jakub Žádník
6b4fee88c9
Fmt
2021-09-05 01:35:08 +03:00
Jakub Žádník
672fa852b3
Add some tests to range parsing
2021-09-05 01:25:31 +03:00
Jakub Žádník
0b412cd6b3
Add support for positive integer ranges
...
Including support for variables and subexpressions as range bounds.
2021-09-05 00:52:57 +03:00
Fernando Herrera
d6b1ff932a
Merge branch 'main' of https://github.com/jonathandturner/engine-q into similar-name
2021-09-04 09:20:35 +01:00
JT
26b1f022b7
fixup
2021-09-04 20:19:07 +12:00
Fernando Herrera
ab307c8d38
Merge branch 'main' of https://github.com/jonathandturner/engine-q into similar-name
2021-09-04 09:10:38 +01:00
Fernando Herrera
a3d4794341
moved test to protocol
2021-09-04 09:10:31 +01:00
JT
25c7d8ead6
Merge pull request #13 from jntrnr/ci
...
Add CI
2021-09-04 20:09:05 +12:00
JT
d9cff4238d
clippy
2021-09-04 19:59:38 +12:00
Fernando Herrera
ca8d311c78
Merge branch 'main' of https://github.com/jonathandturner/engine-q into similar-name
2021-09-04 08:45:55 +01:00
Fernando Herrera
acc035dbef
signature check for similar name
2021-09-04 08:45:49 +01:00
JT
5e33b8536b
Add discrete list/table
2021-09-04 18:52:28 +12:00
JT
74bb2af3e1
Fix up block parse recovery
2021-09-04 08:58:44 +12:00
JT
b20c4047d4
Some cleanup, better subexpressions
2021-09-03 19:35:29 +12:00
JT
82cf6caba4
Add do
2021-09-03 16:01:45 +12:00
JT
bc3f820227
Merge pull request #10 from jntrnr/value_streams_in_value
...
Value streams in value
2021-09-03 15:49:27 +12:00
JT
12d80c2732
Fix test
2021-09-03 15:49:14 +12:00
JT
6c0ce95d0f
Add simple each
2021-09-03 15:45:34 +12:00
JT
750502c870
Fix up for_in
2021-09-03 14:57:18 +12:00
JT
df63490266
Fix up calls and pipelines
2021-09-03 14:15:01 +12:00
JT
7c8504ea24
Add commands
2021-09-03 10:58:15 +12:00
JT
94687a7603
Back to working state
2021-09-03 06:21:37 +12:00
JT
e1be8f61fc
WIP
2021-09-02 20:25:22 +12:00
JT
3d252a9797
Add nu-protocol
2021-09-02 13:29:43 +12:00
JT
c4c4d82bf4
Try putting streams in Value
2021-09-02 09:20:53 +12:00
Fernando Herrera
4ed79614ac
removed unused empty function
2021-09-01 21:34:16 +01:00
Fernando Herrera
73f6a57b12
upper comments get attached to command
2021-09-01 21:05:37 +01:00
Fernando Herrera
5da2ab1b7d
comments with a newline dont get together
2021-08-31 20:33:41 +01:00
JT
d0be193307
Merge pull request #7 from elferherrera/tests
...
Tests for lex and lite parser
2021-08-31 12:07:46 +12:00
Fernando Herrera
b3fb106cce
tests for lex and lite parser
2021-08-30 19:36:07 +01:00
JT
46d2efca13
Fix table parsing
2021-08-29 07:17:30 +12:00
JT
24cd1b591c
Update todo
2021-08-27 14:30:10 +12:00
JT
bb9e6731ea
More parsing fixes with tests
2021-08-27 11:44:08 +12:00
JT
5dd5a89775
Fix condition parsing for if
2021-08-27 09:48:27 +12:00
JT
35c3622405
Add a few operators. Needs parser work
2021-08-26 07:29:36 +12:00
JT
739425431a
improve type inference
2021-08-17 12:26:05 +12:00
JT
dda6554990
Fix up subcommand alias colours
2021-08-17 11:04:45 +12:00
JT
2f43cc353b
Fix some expects, add subcommand alias
2021-08-17 11:00:00 +12:00
JT
ceea7e5aeb
Remove lifetime from eval state
2021-08-16 14:30:31 +12:00
JT
579814895d
Fix up eval params and refactor
2021-08-16 10:33:34 +12:00
JT
1355a5dd33
refactor to subcrates
2021-08-11 06:51:08 +12:00