started writing lexer after making string lib

This commit is contained in:
2026-04-13 19:59:48 +10:00
parent f67c045845
commit c0c35e4d17
24 changed files with 601 additions and 7 deletions

View File

@@ -0,0 +1,23 @@
# string_Trim
Trim whitespace from both sides of a string.
## Arguments
- str (string): the string to trim.
## Returns
trimmed (string): the string with its whitespace removed.
## Raises
- `AllocFail`: raised if Ground failed to allocate memory for the new string.
## Example
### Ground
```python
call !string_Trim " aaabbb " &trimmed
println $trimmed # "aaabbb"
```
### Solstice
```c
puts string_Trim(" aaabbb ") // "aaabbb"
```