Commit Graph

3 Commits

Author SHA1 Message Date
Bob Nystrom
73b92ca7f3 feat: add conditional operator and fn toString to wren compiler and core
Add TOKEN_QUESTION token type and implement conditional() parsing function in wren_compiler.c to support the ternary conditional operator (condition ? then : else). Register fn_toString native in wren_core.c to return "<fn>" string for function objects. Include comprehensive test suite covering precedence, short-circuit evaluation, and error cases for missing tokens.
2014-02-15 19:36:01 +00:00
Bob Nystrom
781ccf3fb6 docs: revise branching, classes, index, looping, qa, syntax docs and add concurrency/error-handling nav entries 2014-01-21 05:44:51 +00:00
Bob Nystrom
4026878ac6 docs: add branching, looping, classes, method calls, and Q&A documentation with updated navigation 2013-12-28 17:37:41 +00:00