default.txt 501 B

12345678910111213141516171819202122232425262728
  1. // This is a test
  2. #include pv.sdf
  3. proc (1) = calc(local__row, fin);
  4. if local__row;
  5. nr = local__row;
  6. else;
  7. k = colsf(fin);
  8. nr = floor(minc(maxbytes/(k*8*3.5)|maxvec/(k+1)));
  9. endif;
  10. retp(nr);
  11. endp;
  12. s = "{% test string %}";
  13. fn twopi=pi*2;
  14. /* Takes in multiple numbers.
  15. Output sum */
  16. keyword add(str);
  17. local tok,sum;
  18. sum = 0;
  19. do until str $== "";
  20. { tok, str } = token(str);
  21. sum = sum + stof(tok);
  22. endo;
  23. print "Sum is: " sum;
  24. endp;