Fernando Herrera
5c94528fe2
create history file if it doesnt exit ( #605 )
2021-12-28 06:14:23 +11:00
Fernando Herrera
53330c5676
def argument check ( #604 )
...
* def argument check
* corrected test
* clippy error
2021-12-28 06:13:52 +11:00
Michael Angerman
f50f37c853
fix issue #559 : to json -r serializes datetime without spaces ( #596 )
...
* fix issue #559 : to json -r serializes datetime without spaces
* add in a third test which checks spaces in both keys and values
* fix clippy error
2021-12-27 21:51:38 +11:00
JT
3706bef0a1
Require let to be a statement ( #594 )
2021-12-27 14:04:22 +11:00
JT
e1c92e90ca
Add line ending autodetect to 'lines' ( #589 )
2021-12-27 10:11:18 +11:00
JT
e62e0fb679
Flush stmts ( #584 )
...
* Flush the stmt via table to the screen
* Fix test
2021-12-27 07:21:24 +11:00
JT
ca6baf7a46
Add single tick string interpolation ( #581 )
...
* Add single tick string interpolation
* give string interpolation its own highlighting
2021-12-26 07:50:02 +11:00
JT
d603086d2f
Fix custom call scope leak, refactor tests ( #580 )
...
* Fix custom call scope leak, refactor tests
* Actually add tests
2021-12-26 06:39:42 +11:00
JT
a811eee6b8
Add support for 'open' ( #573 )
2021-12-25 06:24:55 +11:00
JT
3522bead97
Add string stream and binary stream, add text decoding ( #570 )
...
* WIP
* Add binary/string streams and text decoding
* Make string collection fallible
* Oops, forgot pretty hex
* Oops, forgot pretty hex
* clippy
2021-12-24 18:22:11 +11:00
Darren Schroeder
29c8b826d4
add configuration point for hint coloring ( #564 )
2021-12-23 15:02:57 -06:00
Darren Schroeder
ba1ff4cf6c
add configuration of maximum history size ( #563 )
2021-12-23 13:59:00 -06:00
Fernando Herrera
f3c175562d
vi mode ( #561 )
2021-12-23 09:31:16 +00:00
Michael Angerman
5d3b63fa90
add in a raw flag in the command to json ( #555 )
...
* add in the method to_string_raw
* add in a raw flag to json
* add in a test
2021-12-23 06:56:49 +11:00
JT
9fb12fefb0
Improve history hinting ( #551 )
2021-12-22 20:12:24 +11:00
Jakub Žádník
deeb1da359
Allow having only one env conversion ( #548 )
...
Allows setting only `from_string` or `to_string` in `env_conversions`
config. Previously, both were required.
2021-12-22 00:32:38 +02:00
Jakub Žádník
52dba91e1a
Wrap captured env var names into quotes as well ( #546 )
2021-12-21 23:31:30 +02:00
Ștefan
a93a9b9029
Add skip-empty flag to lines command ( #543 )
...
* Add skip-empty flag to lines command
* Fix failing length test
2021-12-22 07:24:11 +11:00
JT
fc7ed1bfe4
switch substring to bytes ( #538 )
...
* switch substring to bytes
* Add a test
2021-12-21 11:49:02 +11:00
Jakub Žádník
1609101e62
Fix capturing environment variables with " or ' ( #537 )
...
* Fix path expand error span
* Fix capturing env vars containing ' or "; Rustfmt
2021-12-20 23:19:43 +02:00
JT
152467a858
Flatten should flatten embedded table ( #534 )
2021-12-21 06:03:18 +11:00
JT
caf73c36f2
Finish adding support for optional params ( #530 )
2021-12-20 17:58:09 +11:00
JT
2883d6cd1e
Remove Span::unknown ( #525 )
2021-12-19 18:46:13 +11:00
Michael Angerman
00bb203756
add in a new command called columns ( #519 )
2021-12-18 12:14:28 -06:00
Jakub Žádník
ada9c742c6
Fix broken env var reading on startup ( #513 )
2021-12-17 23:09:44 +02:00
Ștefan
6f6340186a
Port flatten ( #512 )
...
* A first working version of flatten. Needs a lot of cleanup. Committing to have a working version
* Typo fix
* Flatten tests pass
* Final cleanup, ready for push
* Final cleanup, ready for push
* Final cleanup, ready for push
* Final cleanup, ready for push
* Update flatten.rs
Co-authored-by: JT <547158+jntrnr@users.noreply.github.com>
2021-12-18 07:44:51 +11:00
Jakub Žádník
6a0f404558
Treating environment variables as Values ( #497 )
...
* Proof of concept treating env vars as Values
* Refactor env var collection and method name
* Remove unnecessary pub
* Move env translations into a new file
* Fix LS_COLORS to support any Value
* Fix spans during env var translation
* Add span to env var in cd
* Improve error diagnostics
* Fix non-string env vars failing string conversion
* Make PROMPT_COMMAND a Block instead of String
* Record host env vars to a fake file
This will give spans to env vars that would otherwise be without one.
Makes errors less confusing.
* Add 'env' command to list env vars
It will list also their values translated to strings
* Sort env command by name; Add env var type
* Remove obsolete test
2021-12-17 12:04:54 +11:00
Stefan Holderbach
efb4a9f95c
Fix Ctrl-D
exit in cli ( #508 )
...
Clears to a new line for the potentially hosting process
Remove the output for `Ctrl-C`
2021-12-16 15:40:12 -06:00
Stefan Holderbach
bf6780967b
Make dialoguer completion abortable ( #507 )
...
Fixes #505
2021-12-16 15:11:06 -06:00
Darren Schroeder
9a864b5017
allow flatshape (command line syntax) theming ( #502 )
...
* allow flatshape (command line syntax) theming
* renamed crate, organized
2021-12-16 06:17:29 -06:00
JT
1d74d9c5ae
Fix comment issue and shadowing issue ( #501 )
2021-12-16 09:56:12 +11:00
Michael Angerman
1cbb785969
port over from nushell drop column ( #495 )
...
* port over from nushell drop column
* fix clippy
2021-12-15 06:54:27 +11:00
JT
04a9c8f3fd
Fix bug in chained boolean typecheck ( #490 )
2021-12-14 16:19:16 +11:00
Jakub Žádník
930cb26e99
Fix hiding of import patterns with globs ( #487 )
...
* Fix glob hiding
* Remove docs comment
2021-12-13 20:35:35 +02:00
JT
2013e9300a
Make config default if broken ( #482 )
...
* Make config default if broken
* Make config default if broken
2021-12-13 14:16:51 +11:00
JT
bee7ef21eb
Add in variable and sub-command completions ( #480 )
...
* WIP
* wip
* Add in variable and subcommand completions
* clippy
2021-12-13 10:18:31 +11:00
Fernando Herrera
4d7dd23779
Plugin json ( #474 )
...
* json encoder
* thread to pass messages
* description for example
2021-12-12 11:50:35 +00:00
Darren Schroeder
5c27ffa42e
update to latest reedline, change config point name, enable output without ansi ( #458 )
2021-12-09 16:06:26 -06:00
Darren Schroeder
3dc19d4179
Filesize formatting ( #456 )
...
* configure the format of filesize
* type-o
* removed some comments
* updated tests
* accomodated filesize_metric better, added test
2021-12-09 13:19:36 -06:00
Darren Schroeder
512dcf0988
enable cargo build --features=extra
to build plugins ( #448 )
2021-12-07 14:06:34 -06:00
JT
fdde95f675
Update clippy to check all features ( #441 )
...
* Update clippy to check all features
* Fix tests
* oops
2021-12-06 07:23:43 +13:00
Michael Angerman
03e22b071a
port over the reject command from nushell ( #419 )
...
* port over reject
* add some tests to src/tests
2021-12-05 16:09:45 +13:00
JT
ddd8c3d9dc
Improve running main ( #431 )
2021-12-05 07:02:53 +13:00
JT
3e0c5e55b6
Add simple commandline args for scripts ( #427 )
2021-12-05 06:06:17 +13:00
Fernando Herrera
8a06ea133b
removed unwraps ( #430 )
2021-12-04 12:38:21 +00:00
JT
eed22605ef
Fix the failure if the prompt breaks ( #426 )
2021-12-04 18:24:38 +13:00
JT
8cf4402e6c
Reset ansi more often when showing errors ( #425 )
2021-12-04 18:02:57 +13:00
Darren Schroeder
bef138232c
this fixes garbage ansi when externals turn off vt processing ( #422 )
...
* this fixes garbage ansi when externals turn off vt processing
* clippy
* changes are only for windows
* type-o
2021-12-03 13:49:25 -06:00
Fernando Herrera
f3c8d35eb7
Plugin repeated ( #417 )
...
* not repeated decl in file and help
* implemented heashmap for repeated
* sorted scope commands
2021-12-03 14:29:55 +00:00
JT
574d7f6936
Add table streaming ( #413 )
2021-12-03 19:15:23 +13:00
JT
ccd5f59314
Update external spawn ( #406 )
...
* Simplify external spawn, improve arg cleaning
* Fix tests
* Fix windows test
2021-12-03 09:55:16 +13:00
JT
071066b6d9
Move prompt animation setting to config ( #400 )
2021-12-02 20:10:40 +13:00
JT
45eba8b922
Introduce metadata into the pipeline ( #397 )
2021-12-02 18:59:10 +13:00
Fernando Herrera
56307553ae
Plugin with evaluated call ( #393 )
...
* plugin trait
* impl of trait
* record and absolute path
* plugin example crate
* clippy error
* correcting cargo
* evaluated call for plugin
2021-12-02 05:42:56 +00:00
Stefan Holderbach
3916ac4165
Fix busy poll with reedline ( #387 )
...
Fixes #386
Makes the changes to accept https://github.com/nushell/reedline/pull/188
Change CLI option EQ_PROMPT_ANIMATE_MS to binary EQ_PROMPT_ANIMATE
2021-11-30 09:59:54 -06:00
Jakub Žádník
c17e1473db
Hiding of environment variables ( #362 )
...
* Remember environment variables from previous scope
* Re-introduce env var hiding
Right now, hiding decls is broken
* Re-introduce hidden field of import patterns
All tests pass now.
* Remove/Address tests TODOs
* Fix test typo; Report hiding error
* Add a few more tests
* Fix wrong expected test result
2021-11-30 19:14:05 +13:00
Darren Schroeder
6d58e2b51e
enable env setting for prompt animation ( #376 )
...
* enable env setting for prompt animation
* default to on
* updated comment
2021-11-28 15:09:52 -06:00
JT
5d88ed6c75
Add better exit command ( #369 )
2021-11-26 21:00:57 +13:00
JT
143855b662
Add better comment skipping ( #359 )
2021-11-22 07:13:09 +13:00
Fernando Herrera
88988dc9f4
Plugins signature load ( #349 )
...
* saving signatures to file
* loading plugin signature from file
* is_plugin column for help command
2021-11-19 15:51:42 +13:00
Jakub Žádník
5459d30a24
Add environment variable support for modules ( #331 )
...
* Add 'expor env' dummy command
* (WIP) Abstract away module exportables as Overlay
* Switch to Overlays for use/hide
Works for decls only right now.
* Fix passing import patterns of hide to eval
* Simplify use/hide of decls
* Add ImportPattern as Expr; Add use env eval
Still no parsing of "export env" so I can't test it yet.
* Refactor export parsing; Add InternalError
* Add env var export and activation; Misc changes
Now it is possible to `use` env var that was exported from a module.
This commit also adds some new errors and other small changes.
* Add env var hiding
* Fix eval not recognizing hidden decls
Without this change, calling `hide foo`, the evaluator does not know
whether a custom command named "foo" was hidden during parsing,
therefore, it is not possible to reliably throw an error about the "foo"
name not found.
* Add use/hide/export env var tests; Cleanup; Notes
* Ignore hide env related tests for now
* Fix main branch merge mess
* Fixed multi-word export def
* Fix hiding tests on Windows
* Remove env var hiding for now
2021-11-16 12:16:06 +13:00
JT
be827e5628
Fix multiword imports/exports ( #336 )
2021-11-15 08:40:26 +13:00
JT
0f107b2830
Add a config variable with engine support ( #332 )
...
* Add a config variable with engine support
* Add a config variable with engine support
* Oops, cleanup
2021-11-15 08:25:57 +13:00
JT
568e566adf
Add record literal syntax ( #326 )
2021-11-11 12:14:00 +13:00
JT
bb1740d733
Add from csv and from tsv ( #320 )
2021-11-10 09:17:37 +13:00
JT
34617fabd9
Do some str collect cleanup ( #312 )
2021-11-09 17:46:26 +13:00
JT
066afb059e
Add magic in variable, part 2 ( #310 )
2021-11-08 20:13:55 +13:00
JT
e9a7def183
Add magic $in variable ( #309 )
...
* Add magic in variable
* Oops, missing file
2021-11-08 19:21:24 +13:00
JT
b5bade6187
Let list and table exprs get indexed ( #307 )
2021-11-08 12:18:00 +13:00
JT
19645575d6
Add 'did you mean' error ( #305 )
2021-11-08 10:48:50 +13:00
JT
00a8752c76
Move where to helper ( #302 )
2021-11-07 15:40:44 +13:00
JT
6c31377c21
Fix precedence parse ( #298 )
2021-11-06 20:31:28 +13:00
JT
d401ed64ed
Add range to the math reductions ( #296 )
2021-11-06 20:12:08 +13:00
JT
02b8027749
Improve external output in subexprs ( #294 )
2021-11-06 18:50:33 +13:00
JT
183d200b9f
Add updating cell paths
2021-11-05 16:59:12 +13:00
JT
1949ba080e
Add env shorthand
2021-11-04 15:32:35 +13:00
JT
5e42b14026
Documenting some code and doing cleanups
2021-11-03 08:53:48 +13:00
JT
25846d3c1e
Add zip command
2021-11-02 18:28:28 +13:00
JT
d856cebebd
Add a simple scope variable
2021-11-02 16:08:05 +13:00
JT
3176f60b5b
Merge pull request #243 from kubouch/module-files
...
Loading modules from files
2021-11-01 11:08:03 +13:00
Jakub Žádník
b340672331
Remove leftover test from previous iteration
2021-10-31 18:01:15 +02:00
Jakub Žádník
b7c0ba104f
Fix hiding module; Fmt
...
This fixes the case when you call `hide spam`. It will now hide all
commands you'd call like `spam foo` etc.
2021-10-31 17:38:00 +02:00
Jakub Žádník
2dcfecbbd7
Add test for multi-word alias
2021-10-29 23:57:33 +03:00
JT
cf3f3fde92
Add some support for
2021-10-30 07:15:17 +13:00
JT
bac8b8a450
Add initial ctrl-c support
2021-10-28 17:13:10 +13:00
JT
f92e9d25a5
Make the history path more central
2021-10-28 13:30:58 +13:00
Jakub Žádník
bd6c550470
Change import pattern delimiter to space
...
Subcommands and module imports will have the same syntax now.
2021-10-27 00:13:39 +03:00
Jakub Žádník
595fc7a7f6
Switch to cross-platform fail message
2021-10-26 21:03:12 +03:00
Jakub Žádník
402a4acd7a
Fix leftover test
2021-10-26 21:03:12 +03:00
Jakub Žádník
5163dbb7a1
Add tests and cover edge cases of the :: delim.
2021-10-26 21:03:12 +03:00
Jakub Žádník
cbda1b1650
Change import pattern delimiter to ::
2021-10-26 21:03:12 +03:00
JT
5455270446
Add a simple parallel each
2021-10-26 14:30:53 +13:00
JT
4be61ce604
Tests pass
2021-10-26 11:18:45 +13:00
JT
5d19017603
WIP
2021-10-26 05:58:58 +13:00
JT
baac60a5a7
WIP
2021-10-25 19:42:38 +13:00
JT
b5965ee8ef
WIP
2021-10-25 19:31:39 +13:00
Darren Schroeder
7ef5a7945f
clippy take2
2021-10-15 15:52:03 -05:00
Darren Schroeder
e330fdabb7
updated theme + clippy
2021-10-15 15:42:36 -05:00
Darren Schroeder
c9439c962b
allow esc and q to get out of completions
2021-10-15 15:33:56 -05:00
JT
82b0415d92
Try out select completions from dialoguer
2021-10-16 07:37:58 +13:00
JT
fdd2c35fd9
Add the default help flag
2021-10-14 06:53:27 +13:00
JT
a760e46c1c
Add config file loading
2021-10-13 16:57:05 +13:00
JT
aea8627c30
Prevent invalid var names
2021-10-12 18:08:55 +13:00
JT
5f14faf4b4
Custom switch support
2021-10-12 17:49:17 +13:00
JT
c8277a3da9
Do rest args
2021-10-12 16:28:39 +13:00
JT
96419f168b
Also fix the flag params
2021-10-12 10:17:45 +13:00
JT
1f45304cf9
Fix parser when def has missing params
2021-10-12 09:58:38 +13:00
JT
63e3552eef
Add the remaining missing operators
2021-10-12 09:35:12 +13:00
JT
0d031636a9
Error on missing column during cell path
2021-10-12 08:55:14 +13:00
JT
576471cc3c
Fix test
2021-10-12 08:33:09 +13:00
JT
0504a7a776
Make errors emit first
2021-10-12 06:35:40 +13:00
Jakub Žádník
77c520e10b
Make predeclarations scoped; Add hiding tests
...
In some rare cases, the global predeclarations would clash, for example:
> module spam { export def foo [] { "foo" } }; def foo [] { "bar" }
In the example, the `foo [] { "bar" }` would get predeclared first, then
the predeclaration would be overwritten and consumed by `foo [] {"foo"}`
inside the module, then when parsing the actual `foo [] { "bar" }`, it
would not find its predeclaration.
2021-10-10 14:31:13 +03:00
Arthur Targaryen
d5fdfdb614
Add missing test attribute
2021-10-09 19:40:47 +02:00
Arthur Targaryen
9e7e8ed48f
Handle not-in
operator
2021-10-09 19:40:47 +02:00
Arthur Targaryen
7f06d6144f
Support in
operator for record and value stream
2021-10-09 19:27:54 +02:00
Arthur Targaryen
d3bc096d47
Handle reverse ranges
...
This is really ugly and should be refactored.
2021-10-09 19:27:54 +02:00
Arthur Targaryen
8783cf0138
Add basic in
operator support
2021-10-09 19:27:54 +02:00
JT
5d36d37d20
Merge branch 'main' into fix_for
2021-10-10 05:20:50 +13:00
JT
e4ce41ba15
Fix the for loop to create vars
2021-10-10 05:10:46 +13:00
Fernando Herrera
a1bfa2788c
not found message for windows
2021-10-09 16:44:45 +01:00
JT
5c29a83a7a
Add tests
2021-10-09 15:45:25 +13:00
JT
f80e9d4b60
Merge pull request #91 from nushell/list_completions
...
Use list completions and better expansion
2021-10-05 10:44:26 +13:00
JT
7c2bf68d45
Use list completions and better expansion
2021-10-05 10:37:32 +13:00
Jakub Žádník
1e1e12b027
Fmt
2021-10-04 22:17:18 +03:00
Jakub Žádník
0fe525de87
Add test with TODO note
2021-10-04 20:16:43 +03:00
Jakub Žádník
4dacfaa44a
Add import pattern support to 'hide'
2021-10-04 20:08:24 +03:00
JT
1d7ab28a0f
Merge pull request #74 from kubouch/module-export
...
Modules: export & hide
2021-10-03 06:25:43 +13:00
JT
eba3484611
Update tests.rs
2021-10-03 06:17:51 +13:00
JT
0cc121876b
Update tests.rs
...
Update test errors to be more portable
2021-10-03 06:12:05 +13:00
Jakub Žádník
81cd03626d
Merge branch 'main' into module-export
2021-10-02 18:53:35 +03:00
Fernando Herrera
03339beae1
prompt with env variable
2021-10-02 14:10:28 +01:00
JT
63a0aa6088
Let strings be cell paths
2021-10-02 18:43:43 +13:00
JT
6b76dd7cd7
Add select
2021-10-02 17:55:05 +13:00
JT
5843acec02
Add wrap and get and cell_path parsing
2021-10-02 15:59:11 +13:00
Jakub Žádník
2c1b074bdc
Add test for double def
2021-10-02 00:21:08 +03:00
Jakub Žádník
fb0f83e574
Disallow hiding the same def twice; Add tests
...
Tests got removed after rebase.
2021-10-02 00:12:30 +03:00
Jakub Žádník
8ed6afe1e5
Fix tests failing without export
2021-10-01 23:24:57 +03:00
Jakub Žádník
a16144baf1
Disable crossterm raw mode
...
Without this change, the output of panic messages by miette would ignore
newlines and become unreadable.
2021-10-01 19:42:23 +03:00
JT
3e232a5db8
Add 'from json'
2021-10-01 18:11:49 +13:00
JT
0108a935ed
add import lists
2021-09-27 13:23:22 +13:00
JT
abb0d7bd22
Add support for module imports
2021-09-27 07:39:19 +13:00
Fernando Herrera
d9c42eb194
contents declaration
2021-09-25 17:28:15 +01:00
Fernando Herrera
6387401041
clippy error
2021-09-25 17:03:25 +01:00
Fernando Herrera
dadc354847
move print to function
2021-09-25 16:58:50 +01:00
Fernando Herrera
637e4f6e6d
simplify command call
2021-09-25 15:58:04 +01:00
Fernando Herrera
b12a265f1e
writing to stdout
2021-09-25 15:56:33 +01:00
Fernando Herrera
cf60f72452
table as string output
2021-09-25 15:47:23 +01:00
JT
0ccbebee7a
multiline validation
2021-09-22 17:29:53 +12:00
JT
d1474c0691
Show entry number in error
2021-09-22 15:14:57 +12:00
Kat Marchán
32f39c2fb8
use miette's new panic hook
2021-09-21 12:47:52 -07:00
JT
4841d62d76
Add some improvements to errors
2021-09-21 16:03:06 +12:00
Kat Marchán
a1d6cefdf8
replace codespan-reporting with miette 3.0
2021-09-20 17:14:20 -07:00
Michael Angerman
b6fdf611f6
more block param and build string tests
2021-09-13 09:32:03 -07:00
JT
32c1f0c8d4
better it detection and block params in shapes
2021-09-13 19:54:13 +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
b821b14987
Add simple completions support
2021-09-09 21:06:55 +12:00
JT
6dd9f05ea1
Add an experimental record iteration
2021-09-08 10:00:20 +12:00
JT
2904002008
Make reedline prompt more resilient
2021-09-07 19:41:52 +12:00
JT
6af3affee2
add a test and update TODO
2021-09-07 19:09:49 +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
f91d0d6d65
merge main
2021-09-07 06:07:41 +12:00
JT
4ce9a5c894
Make variable assignment convert streams to full values
2021-09-07 06:05:46 +12:00
Michael Angerman
3534bd8a64
some build-string tests
2021-09-06 09:05:53 -07: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
Fernando Herrera
b3d287815d
updated dependencies
2021-09-05 20:06:57 +01: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
c4c4d82bf4
Try putting streams in Value
2021-09-02 09:20:53 +12:00
JT
08014c6a98
Move sys, ps, fetch, post to internal commands ( #3983 )
...
* Move sys, ps, fetch, post to internal commands
* Remove old plugins
* clippy
Co-authored-by: JT <jonatha.d.turner@gmail.com>
2021-09-01 14:29:09 +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
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
7655b070df
fix tests
2021-08-11 06:57:08 +12:00
JT
1355a5dd33
refactor to subcrates
2021-08-11 06:51:08 +12:00
Jonathan Turner
f62e3119c4
a little more progress on errors
2021-08-10 18:31:34 +12:00
Jonathan Turner
828585a312
add more type helpers and span fixes
2021-08-10 17:55:25 +12:00
Jonathan Turner
ef4af443a5
parser fixes for windows and pretty errors
2021-08-10 17:08:10 +12:00
JT
1a3e1e0959
touchup alias highlight
2021-08-09 20:00:16 +12:00
JT
40004e64a6
Merge branch 'main' of github.com:jonathandturner/engine-q
2021-08-09 19:55:22 +12:00
JT
50dc0ad207
aliases
2021-08-09 19:55:06 +12:00
JT
3da4f02ffa
aliases
2021-08-09 19:53:06 +12:00
Jonathan Turner
1ba80224ad
More gracefully handle reedline errors
2021-08-09 17:29:25 +12:00
JT
bf19918e3c
begin aliases
2021-08-09 12:19:07 +12:00
JT
38fef28c84
Add subcommand test
2021-08-09 09:55:18 +12:00
JT
273f964293
slight improvement
2021-08-09 09:34:21 +12:00
JT
d2577acccd
env vars
2021-08-09 09:02:47 +12:00
JT
d92e661253
Adding floating point
2021-08-09 08:21:21 +12:00
JT
cb11f042ab
Start env shorthand
2021-07-31 17:20:40 +12:00
JT
b82a4869d5
Add test
2021-07-31 16:25:26 +12:00
JT
c2be740ad4
def predecl
2021-07-31 16:04:42 +12:00
JT
61258d03ad
add more tests
2021-07-31 09:57:22 +12:00
JT
79a05d63c8
add more tests
2021-07-31 09:26:05 +12:00
JT
18752672d0
add more tests
2021-07-31 08:02:16 +12:00
JT
cdc37bb142
fix eval bug
2021-07-30 20:06:48 +12:00
JT
083dcd4541
Better for loop
2021-07-30 19:50:39 +12:00
JT
b6f00d07e8
Fix var decl. improve for loop
2021-07-30 19:30:11 +12:00
JT
b0ffaf1c91
add for loop and benchmark
2021-07-30 18:10:40 +12:00
JT
2af61bd07e
add correct eval scope
2021-07-30 17:42:33 +12:00
JT
1caae90c02
cleanup some highlighting
2021-07-30 16:43:31 +12:00
JT
184125a70a
cleanup some highlighting
2021-07-30 16:38:41 +12:00
JT
53314cb8b2
slightly better coloring
2021-07-30 15:33:33 +12:00
JT
b5e287e065
WIP string interp
2021-07-30 15:26:06 +12:00
JT
2eeceae613
fix clippy, add strings and concat
2021-07-30 10:56:51 +12:00
JT
ad48387aa0
WIP
2021-07-24 18:44:38 +12:00
JT
a4bcc1ff3d
WIP
2021-07-24 17:57:17 +12:00
JT
fca3a6b75e
Support adding variables
2021-07-24 09:46:55 +12:00
JT
6fcdc76059
Improve call eval and live check
2021-07-24 09:19:30 +12:00
JT
3eefa6dec8
start expanding eval
2021-07-23 17:14:49 +12:00
JT
8c6feb7e80
Fix up global span logic
2021-07-23 08:45:23 +12:00
JT
37f8ff0efc
Add highlighting
2021-07-23 07:50:59 +12:00
JT
07c22c7e81
Start working on highlighter
2021-07-22 19:48:45 +12:00
JT
1ac0c0bfc5
Move to refcell for permanent parser state
2021-07-22 19:33:38 +12:00
JT
c25209eb34
Fix running multiple times, add reedline
2021-07-22 18:04:50 +12:00
JT
4deed7c836
improve subcommand parse
2021-07-18 07:40:39 +12:00
JT
92f72b4103
add subcommand parsing
2021-07-18 07:34:43 +12:00
JT
30f54626d3
add companion short flags
2021-07-18 06:52:50 +12:00
JT
3a8206d1fb
fix parser merge. start highlighter
2021-07-17 18:31:34 +12:00
JT
6b0b8744c1
Fix assignment parse
2021-07-17 17:28:25 +12:00
JT
0b8352049c
Add pipelines
2021-07-17 15:42:08 +12:00
JT
c03f700662
Add rest param
2021-07-17 11:22:01 +12:00
JT
d08f2e73d0
Add optional params
2021-07-17 10:53:45 +12:00
JT
aa7f23e1e1
Simple short flag parse
2021-07-17 10:39:30 +12:00
JT
4249c5b3e0
Add param descriptions
2021-07-17 10:31:36 +12:00
JT
6f1a5c8e02
Remove lexmode
2021-07-17 10:11:15 +12:00
JT
03a93bd089
Improve colon sep
2021-07-17 10:00:41 +12:00
JT
6aef00ecff
basic signature parse
2021-07-17 09:55:12 +12:00
JT
949c6a5932
intern blocks sooner
2021-07-17 08:26:40 +12:00
JT
7922bb4020
More decl parsing
2021-07-16 18:24:46 +12:00
JT
697bf16f26
Start moving towards decls and add a simple eval
2021-07-16 13:10:22 +12:00
JT
9916f35b22
cleanup
2021-07-09 18:23:20 +12:00
JT
0a6f62bc0e
proper list/table guards
2021-07-09 09:45:56 +12:00
JT
bc974a3e7d
cleanup
2021-07-09 09:31:08 +12:00
JT
1aa70c50aa
refactor positional arg parse
2021-07-09 09:16:25 +12:00
JT
134b45dc03
refactor long/short flags
2021-07-09 08:29:00 +12:00
JT
96c0b933d9
Add parameterized list parsing
2021-07-08 19:49:17 +12:00
JT
7b51c5c49f
Add alias and external
2021-07-08 19:20:01 +12:00
JT
eac02b55f6
some cleanup
2021-07-08 18:57:24 +12:00
JT
5d4ae4a2a4
drive let from internal call
2021-07-08 18:19:38 +12:00
JT
04cbef3aa8
Improve keyword detecting for call parsing
2021-07-08 17:30:36 +12:00
JT
e540f0ad26
start adding row expr parsing
2021-07-08 10:55:46 +12:00
JT
bf1a23afcf
Add table parsing
2021-07-06 13:48:45 +12:00
JT
04a6a4f860
Add list parsing
2021-07-06 10:58:56 +12:00