allow nonspace operators. sys command args. dict use:#103
Open
superiums wants to merge 8 commits intoadam-mcdaniel:mainfrom
Open
allow nonspace operators. sys command args. dict use:#103superiums wants to merge 8 commits intoadam-mcdaniel:mainfrom
superiums wants to merge 8 commits intoadam-mcdaniel:mainfrom
Conversation
Author
tested with the following cases:echo allow whitespace be skipped on operator;
echo
echo 0 testing negtive number ;
echo -1 ;
echo 3 + -1 ;
5 * -1 ;
echo;
echo 1 testing operator;
let a=10;
echo a+1 a-1 a*3 a//2 ;
let b=a+3-4*5//2 ;
echo b;
echo a%2 ;
echo;
echo 2 tesing lambda;
let add=x->x+100;
echo add a;
echo;
echo 3 testing overload;
let ++ =x->x+1;
++ a;
echo;
echo 4 testing command;
ls -l --color=auto ;
ls -l --color=auto /tmp ;
echo "--testing dict with : " ;
let z = {x:1,y:3} ;
echo z;
echo z@x;
let z = {x=11,y=13} ;
echo z;
echo z@y;
echo finished.
|
Owner
|
Wow, thank you so so much!! I really appreciate the effort!! I'll take a look in the morning and merge if everything is in order! |
Owner
|
Hmm the one issue I see with this is the |
Author
|
paths was recognized when : / folling a space and followed by some latter. (see parse_argument). operator / was recognized when: / with space surround. or letters surround. eg:
|
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
this branch fix symbols:
such as
let a=2+3;a>3let add=x->x+1but space is needed when you need to differ negtive numbers with operator:
such as
let a=2+ -3allow args in command.
such as
ls -l --color=auto /tmp-c--chars./diror/diror..but unfortunlately, single
/is not added currently, as this may be used as operator someday.single
.was ignored and default to cwd.allow
:to define dict.let dict={x:1,y:2}as well as the old one :let dict={x=1,y=2}