| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2026-02-28 | modify headersHEADmaster | Paul Buetow | |
| 2026-02-28 | Remove dead token/symbol types and fix SYM_INLINEFUNCTION latent error | Paul Buetow | |
| - Remove IS_A_FUNCTION/IS_NOT_A_FUNCTION macros from symbol.h: referenced non-existent SYM_INLINEFUNCTION enum value (latent compile error) and were never used anywhere in the codebase - Remove TT_BOOL from TokenType enum: marked "temporarily disabled" but unused for years; YAGNI - Remove TT_NOTEQ from TokenType enum: duplicate of TT_NEQ ("!="), never referenced - Remove IS_NON_TERMINAL/IS_NOT_NON_TERMINAL macros: referenced START_NON_TERMINALS/END_NON_TERMINALS sentinels that don't exist in the enum — would cause compile errors if ever used - Remove token_new_couble declaration (typo) and token_new_double implementation: function had no callers Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> | |||
| 2026-02-19 | Implement function named arguments, ret, and multiple return values | Paul Buetow | |
| - Add FuncDef struct to symbol.h/symbol.c: holds body token list, strdup'd param names, and param count; replaces the bare List* that SYM_FUNCTION used to store; funcdef_delete frees param strings and body list (tokens are GC-managed) - Add CONTROL_RET to ControlType so ret can propagate cleanly through the interpreter's control-flow stack - Update _func_decl to parse optional (p1, p2, ...) param list and store a FuncDef* instead of a raw List* - Implement case TT_RET in _control: clears intermediate stack values, evaluates comma-separated return expressions, sets CONTROL_RET - Propagate CONTROL_RET in all loop bodies (while/until, loop, do) without clearing it; while/until rescues return values from the temporary condition stack before it is destroyed - Update _term call site to support parenthesised func(arg1, arg2) syntax alongside the existing no-parens style for backward compat - Modify interpret_subprocess to merge the sub's stack into the parent when CONTROL_RET is active so return values survive teardown - Update function_process_self_defined SYM_FUNCTION case to pop and bind named args, run the body, then clear CONTROL_RET - Add -D_POSIX_C_SOURCE=200809L to Makefile CFLAGS for strdup under -std=c99 -pedantic - Add examples/func_args_ret.fy covering zero-arg, single-arg, two-arg, conditional ret, multiple return values, and old-style no-parens backward compat Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> | |||
| 2021-11-02 | move to codeberg | Paul Buetow | |
| 2021-04-29 | update URIs | Paul Buetow | |
| 2008-12-15 | modified headers | Paul Buetow | |
| 2008-12-15 | say foo[1] works | Paul Buetow | |
| 2008-11-09 | changed the src headers. | Paul Buetow | |
| 2008-11-04 | astyle | Paul Buetow | |
| 2008-11-04 | array_new_size | Paul Buetow | |
| array_new_copy implemented | |||
| 2008-11-01 | modified headers | Paul Buetow | |
| 2008-10-28 | initial references support. | Paul Buetow | |
| run "make headers" | |||
| 2008-10-26 | added the "scope" function | Paul Buetow | |
| 2008-10-25 | astyle. | Paul Buetow | |
| more BSD style in return (FOO); | |||
| 2008-10-25 | make headers | Paul Buetow | |
| 2008-10-19 | synonyms work | Paul Buetow | |
| 2008-08-24 | some mods | Paul Buetow | |
| 2008-08-23 | changed headers | Paul Buetow | |
| 2008-08-23 | some enhancements | Paul Buetow | |
| 2008-08-08 | changed header. | Paul Buetow | |
| 2008-05-15 | Moved stuff into trunk. | Paul Buetow | |
