]> de.git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - data/test.qs
More function parsing for assembler
[xonotic/gmqcc.git] / data / test.qs
index c5ad8941389bdfdf6b35c68979004de5f30efcb0..b714ba1f3949bce03542663fc47532fe0871b0ee 100644 (file)
-FLOAT: f 1;
-FLOAT: f 2;
-FLOAT: f 3;
-STRING: bar "hello world"
-
 ; these are builtin functions
-FUNCTION: foo
+FUNCTION: makevectors,    $1
+FUNCTION: setorigin,      $2
+FUNCTION: setmodel,       $3
+FUNCTION: setsize,        $4
+
+FUNCTION: break,          $6
+FUNCTION: random,         $7
+FUNCTION: sound,          $8
+FUNCTION: normalize,      $9
+FUNCTION: error,          $10
+FUNCTION: objerror,       $11
+FUNCTION: vlen,           $12
+FUNCTION: vectoyaw,       $13
+FUNCTION: spawn,          $14
+FUNCTION: remove,         $15
+FUNCTION: traceline,      $16
+
+FUNCTION: find,           $18
+FUNCTION: precache_sound, $19
+FUNCTION: precache_model, $20
+
+FUNCTION: findradius,     $22
+
+FUNCTION: dprint,         $25
+FUNCTION: ftos,           $26
+FUNCTION: vtos,           $27
+FUNCTION: coredump,       $28
+FUNCTION: traceon,        $29
+FUNCTION: traceoff,       $30
+FUNCTION: eprint,         $31
+FUNCTION: walkmove,       $32
+
+FUNCTION: droptofloor,    $34
+FUNCTION: lightstyle,     $35
+FUNCTION: rint,           $36
+FUNCTION: floor,          $37
+FUNCTION: ceil,           $38
+
+FUNCTION: checkbottom,    $40
+FUNCTION: pointcontents,  $41
+
+FUNCTION: fabs,           $43
+              
+FUNCTION: cvar,           $45
+FUNCTION: localcmd,       $46
+FUNCTION: nextent,        $47
+FUNCTION: particle,       $48
+FUNCTION: ChangeYaw,      $49
+
+FUNCTION: vectoangles,    $51
+FUNCTION: vectoangles2,   $51
+
+FUNCTION: sin,            $60
+FUNCTION: cos,            $61
+FUNCTION: sqrt,           $62
+FUNCTION: changepitch,    $63
+FUNCTION: tracetoss,      $64
+FUNCTION: etos,           $65
+
+FUNCTION: precache_file,  $68
+FUNCTION: makestatic,     $69
 
-FUNCTION: foo
-       ADD_F 200.4f, 300.3, OFS_RETURN
+FUNCTION: cvar_set,       $72
+
+FUNCTION: ambientsound,   $74
+FUNCTION: precache_model2,$75
+FUNCTION: precache_sound2,$76
+FUNCTION: precache_file2, $77
+
+FUNCTION: stof,           $81
+
+FUNCTION: tracebox,       $90
+FUNCTION: randomvec,      $91
+FUNCTION: getlight,       $92
+FUNCTION: getlight2,      $92
+FUNCTION: registercvar,   $93
+FUNCTION: min,            $94
+FUNCTION: max,            $95
+FUNCTION: bound,          $96
+FUNCTION: pow,            $97
+FUNCTION: findfloat,      $98
+FUNCTION: checkextension, $99
+
+
+;code_chars_put("m_init",        0x6);
+;code_chars_put("m_keydown",     0x9);
+;code_chars_put("m_draw",        0x6);
+;code_chars_put("m_toggle",      0x8);
+;code_chars_put("m_shutdown",    0xA);
+
+FUNCTION: m_init     #1
        DONE
+FUNCTION: m_keydown  #1
+       DONE
+FUNCTION: m_draw     #1
+       DONE
+FUNCTION: m_toggle   #1
+       DONE
+FUNCTION: m_shutdown #1
+       DONE
+