ion merge requestshttps://gitlab.redox-os.org/redox-os/ion/-/merge_requests2017-11-04T14:42:36Zhttps://gitlab.redox-os.org/redox-os/ion/-/merge_requests/572Add set_var() and get_var() methods to IonLibrary2017-11-04T14:42:36ZIan Douglas ScottAdd set_var() and get_var() methods to IonLibraryI presume this is the best way to make such functionality public.I presume this is the best way to make such functionality public.https://gitlab.redox-os.org/redox-os/ion/-/merge_requests/236Implement Basic Arithmetic For Let/Export2017-03-10T04:35:36ZMichael Aaron Murphymmstick@pm.meImplement Basic Arithmetic For Let/ExportWIth this change, it is possible to take variables which contain numbers, and apply basic arithmetic to them using the let command, without the need for an external application. It performs 32-bit floating point math, so irrational numbe...WIth this change, it is possible to take variables which contain numbers, and apply basic arithmetic to them using the let command, without the need for an external application. It performs 32-bit floating point math, so irrational numbers are supported.
```ion
let a = 1
echo $a
let a += 4
echo $a
let a *= 10
echo $a
let a /= 2
echo $a
let a -= 5
echo $a
```
```ion
let a = 1;
while test $a -lt 100
echo $a
let a += 1
end
```https://gitlab.redox-os.org/redox-os/ion/-/merge_requests/180update liner2016-07-21T23:39:31ZMichael Aaron Murphymmstick@pm.meupdate liner*Created by: MovingtoMars*
- bugfix in liner
- liner now specifies termion by commit to prevent breakage
*Created by: MovingtoMars*
- bugfix in liner
- liner now specifies termion by commit to prevent breakage
https://gitlab.redox-os.org/redox-os/ion/-/merge_requests/177Liner2016-07-13T21:50:23ZJeremy SollerLinerBring in liner, adding autocomplete and line editing to ion for Redox and Linux
Bring in liner, adding autocomplete and line editing to ion for Redox and Linux
https://gitlab.redox-os.org/redox-os/ion/-/merge_requests/18Add formatting check to .travis.yml2016-01-14T17:04:27ZMichael Aaron Murphymmstick@pm.meAdd formatting check to .travis.yml*Created by: polymetric1*
*Created by: polymetric1*
https://gitlab.redox-os.org/redox-os/ion/-/merge_requests/106[WIP] Support nested statements2016-03-20T16:27:55ZMichael Aaron Murphymmstick@pm.me[WIP] Support nested statements*Created by: nounoursheureux*
Currently there is no way to make an `if` inside another `if`, because the `end` instruction resets the current statement. To solve this problem I use a stack of `Statement`s: an `if` pushes a `Statement` t...*Created by: nounoursheureux*
Currently there is no way to make an `if` inside another `if`, because the `end` instruction resets the current statement. To solve this problem I use a stack of `Statement`s: an `if` pushes a `Statement` to the stack and an `end` pops it. For now it doesn't work for the `for` blocks, because they only interpret their content when they encounter an `end` instruction, but I am working on it. Let me know if you agree with the approach I took so far !
Goals:
- [x] `if` inside `if`
- [ ] `if` inside `for`
- [ ] `for` inside `for`
...
https://gitlab.redox-os.org/redox-os/ion/-/merge_requests/186add tilde expansion for other users' home directories2017-03-22T03:45:24ZMichael Aaron Murphymmstick@pm.meadd tilde expansion for other users' home directories*Created by: MovingtoMars*
Add support for #155 on non-Redox unix systems.
Redox and Windows both have stub implementations of `get_user_home`.
*Created by: MovingtoMars*
Add support for #155 on non-Redox unix systems.
Redox and Windows both have stub implementations of `get_user_home`.