a1ffad75e56f7cc753427084565b38132e4a9192
Implement the `count` method on string objects by adding a new `primitive_string_count` function that calculates the length of the string using `strlen` and returns it as a numeric value. Register the primitive on the string class during VM initialization, including the forward declaration and the class setup in the `newVM` function.
Description
Highly customized version of the wren programming language. It has all the modules that you would expect in a std library including http, websockets, sqlite3 and jinja-like templating engine. The idea is to make it suitable for web development.
22 MiB
Languages
HTML
50%
C
22.2%
PHP
13.4%
C++
6%
Makefile
2.9%
Other
5.5%