Bob Nystrom a1ffad75e5 feat: add string count primitive returning character length
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.
2013-10-26 21:34:15 +00:00
S
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%