mirror of
https://github.com/polserver/polserver
synced 2026-08-13 08:23:08 -04:00
* initial support for function calls with expression callee * Add support for identifier-named callees * add compilation failure test; better code docs * Add core-changes * Address compiler warnings - conversion from 'size_t' to 'unsigned int', possible loss of data * Update grammar * implementation * tests * update core-changes * Address CI warnings - declaration of 'method' hides previous local declaration
7 lines
128 B
Text
7 lines
128 B
Text
// The callee expression, `@sum`, implements MTH_CALL
|
|
|
|
print( @sum( 1, 2 ) );
|
|
|
|
function sum( a, b )
|
|
return a + b;
|
|
endfunction
|