mirror of
https://github.com/polserver/polserver
synced 2026-08-13 08:23:08 -04:00
* Update grammar * Update parser and AST generator * Update semantic analysis * Executor implementation - Move Executor stack modification logic to BFunctionRef - Handle user function calls - Handle expression function calls * Tests * Update existing listfile snapshots - Adds variadic boolean to instruction stack - Changes instruction counts and offsets * Fix test issue * Better implementation of calling user functions * Add var-args-captures test * Refactor continuation handling + handle variadic args - Move stack modifications from make/withContinuation into the executor's handling of the continuation - Only trim args in continuation call if function is not variadic * Add var-args-continuation test (via array.filter) * update escriptguide + formatting, docs * Fix CI annotations - '=': conversion from 'size_t' to 'unsigned int', possible loss of data - declaration of 'continuation' hides previous local declaration
5 lines
77 B
Text
5 lines
77 B
Text
function sum( args ... := 1 )
|
|
return $"sum of {args}";
|
|
endfunction
|
|
|
|
sum();
|