@@ -943,11 +943,11 @@ Janet janet_disasm(JanetFuncDef *def) {
943943}
944944
945945JANET_CORE_FN (cfun_asm ,
946- "(asm assembly)" ,
947- "Returns a new function that is the compiled result of the assembly.\n"
948- "The syntax for the assembly can be found on the Janet website, and should correspond\n"
949- "to the return value of disasm. Will throw an\n"
950- "error on invalid assembly." ) {
946+ "(asm assembly)" ,
947+ "Returns a new function that is the compiled result of the assembly.\n"
948+ "The syntax for the assembly can be found on the Janet website, and should correspond\n"
949+ "to the return value of disasm. Will throw an\n"
950+ "error on invalid assembly." ) {
951951 janet_fixarity (argc , 1 );
952952 JanetAssembleResult res ;
953953 res = janet_asm (argv [0 ], 0 );
@@ -958,23 +958,23 @@ JANET_CORE_FN(cfun_asm,
958958}
959959
960960JANET_CORE_FN (cfun_disasm ,
961- "(disasm func &opt field)" ,
962- "Returns assembly that could be used to compile the given function. "
963- "func must be a function, not a c function. Will throw on error on a badly "
964- "typed argument. If given a field name, will only return that part of the function assembly. "
965- "Possible fields are:\n\n"
966- "* :arity - number of required and optional arguments.\n"
967- "* :min-arity - minimum number of arguments function can be called with.\n"
968- "* :max-arity - maximum number of arguments function can be called with.\n"
969- "* :vararg - true if function can take a variable number of arguments.\n"
970- "* :bytecode - array of parsed bytecode instructions. Each instruction is a tuple.\n"
971- "* :source - name of source file that this function was compiled from.\n"
972- "* :name - name of function.\n"
973- "* :slotcount - how many virtual registers, or slots, this function uses. Corresponds to stack space used by function.\n"
974- "* :constants - an array of constants referenced by this function.\n"
975- "* :sourcemap - a mapping of each bytecode instruction to a line and column in the source file.\n"
976- "* :environments - an internal mapping of which enclosing functions are referenced for bindings.\n"
977- "* :defs - other function definitions that this function may instantiate.\n" ) {
961+ "(disasm func &opt field)" ,
962+ "Returns assembly that could be used to compile the given function. "
963+ "func must be a function, not a c function. Will throw on error on a badly "
964+ "typed argument. If given a field name, will only return that part of the function assembly. "
965+ "Possible fields are:\n\n"
966+ "* :arity - number of required and optional arguments.\n"
967+ "* :min-arity - minimum number of arguments function can be called with.\n"
968+ "* :max-arity - maximum number of arguments function can be called with.\n"
969+ "* :vararg - true if function can take a variable number of arguments.\n"
970+ "* :bytecode - array of parsed bytecode instructions. Each instruction is a tuple.\n"
971+ "* :source - name of source file that this function was compiled from.\n"
972+ "* :name - name of function.\n"
973+ "* :slotcount - how many virtual registers, or slots, this function uses. Corresponds to stack space used by function.\n"
974+ "* :constants - an array of constants referenced by this function.\n"
975+ "* :sourcemap - a mapping of each bytecode instruction to a line and column in the source file.\n"
976+ "* :environments - an internal mapping of which enclosing functions are referenced for bindings.\n"
977+ "* :defs - other function definitions that this function may instantiate.\n" ) {
978978 janet_arity (argc , 1 , 2 );
979979 JanetFunction * f = janet_getfunction (argv , 0 );
980980 if (argc == 2 ) {
0 commit comments