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

21
string/docs/find/count.md Normal file
View File

@@ -0,0 +1,21 @@
# string_Count
Count the number of times `needle` appears in `haystack`.
## Arguments
- haystack (string): the string to search through.
- needle (string): the substring to count.
## Returns
count (int): the number of times `needle` appears in `haystack`.
## Example
### Ground
```python
call !string_Count "Hello, World!" "l" &count
println $count # 3
```
### Solstice
```c
puts string_Count("Hello, World!", "l") // 3
```