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,22 @@
# string_Replace
Replace all occurences of `from` in `str` with `to`.
## Arguments
- str (string): the string to run a find and replace on.
- from (string): the substring you want to replace.
- to (string): the thing to replace all occurences of `from` with.
## Returns
result (string): the resulting string after the find and replace.
## Example
### Ground
```python
call !string_Replace "abacabacacacabacacacabac" "c" "b" &result
println $result # "abababababababababababab"
```
### Solstice
```c
puts string_Replace("abacabacacacabacacacabac", "c", "b") // "abababababababababababab"
```