Changeset 491
- Timestamp:
- 10/20/07 18:18:45 (12 months ago)
- Location:
- trunk/thune
- Files:
-
- 4 modified
-
charset.c (modified) (2 diffs)
-
gl/scripts/view.t (modified) (5 diffs)
-
gl/test.t (modified) (1 diff)
-
tokenize.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/thune/charset.c
r458 r491 26 26 /* Start of Word: a-z A-Z ?!.*&|=_~ and all ascii >= 127 */ 27 27 uint8_t charset_sword[32] = { 28 #ifdef UR_CONFIG_MACROS29 0x00,0x00,0x00,0x00,0x42,0x44,0x00,0xA0, // Don't allow < >30 #else31 28 0x00,0x00,0x00,0x00,0x42,0x44,0x00,0xF0, 32 #endif33 29 0xFE,0xFF,0xFF,0x97,0xFF,0xFF,0xFF,0x57, 34 30 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, … … 39 35 /* Word: 0-9 a-z A-Z ?!.+-*&|=_~ and all ascii >= 127 */ 40 36 uint8_t charset_word[32] = { 41 #ifdef UR_CONFIG_MACROS42 0x00,0x00,0x00,0x00,0x42,0x6C,0xFF,0xA3, // Don't allow < >43 #else44 37 0x00,0x00,0x00,0x00,0x42,0x6C,0xFF,0xF3, 45 #endif46 38 0xFE,0xFF,0xFF,0x97,0xFF,0xFF,0xFF,0x57, 47 39 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, -
trunk/thune/gl/scripts/view.t
r468 r491 1 1 ; Thune GL View 2 2 3 <"scripts/stars.t" load do> 3 ^("scripts/stars.t" load do) 4 4 5 5 ;"scripts/timer_bar.t" load do … … 33 33 particle 34 34 shader star-sh 35 call <400 make-stars>35 call ^(400 make-stars) 36 36 37 37 particle/sprite 38 38 shader bstar-sh 39 call <10 make-stars>39 call ^(10 make-stars) 40 40 pop 41 41 ;particle/off … … 128 128 [ 129 129 model 130 shader ent-shader ; FIXME: Causes text not to render.130 shader ent-shader 131 131 call ent-dl 132 132 … … 256 256 dup :mouse-pos 257 257 mouse-pos/5 [ 258 <mouse-lb>[mouse-pos/3 mouse-pos/4 view-cam/turntable]259 <mouse-mb>[light-amb mouse-pos/4 0.02 mul add :light-amb]260 <mouse-rb>[mouse-pos/3 mouse-pos/4 move-light]258 ^(mouse-lb) [mouse-pos/3 mouse-pos/4 view-cam/turntable] 259 ^(mouse-mb) [light-amb mouse-pos/4 0.02 mul add :light-amb] 260 ^(mouse-rb) [mouse-pos/3 mouse-pos/4 move-light] 261 261 ] case 262 ; KR "------------" print .s 262 263 ] 263 264 … … 301 302 text text-pos "Model Demo 1" 302 303 ;enable/? 303 image/trans logo-pos <"image/warpfleetc.png" load.tex.clamp>304 image/trans logo-pos ^("image/warpfleetc.png" load.tex.clamp) 304 305 305 306 ;shader matte -
trunk/thune/gl/test.t
r458 r491 2 2 3 3 4 " data_loc" change-dir4 "local_data" change-dir 5 5 6 6 ;1024,768 'fullscreen display -
trunk/thune/tokenize.c
r480 r491 400 400 goto dollar; 401 401 402 #ifdef UR_CONFIG_MACROS 403 case '^': 404 ++it; 405 if( it == end || *it != '(' ) 406 goto word; 407 // Fall through... 408 #endif 402 409 case '[': 403 410 case '(': 404 case '<':405 411 ur_arrayReserve( &stack, sizeof(UIndex), stack.used+1 ); 406 412 STACK[ stack.used ] = ur_makeBlock( 0 ); … … 411 417 case '(': mode = UT_PAREN; break; 412 418 #ifdef UR_CONFIG_MACROS 413 case ' <': mode = UT_MACRO;419 case '^': mode = UT_MACRO; 414 420 #ifdef MACRO_CONTEXT 415 421 if( ! macroNest ) … … 434 440 case ']': 435 441 case ')': 436 #ifdef UR_CONFIG_MACROS437 case '>':438 #endif439 442 if( stack.used == 1 ) 440 443 { … … 448 451 sol = 0; 449 452 #ifdef UR_CONFIG_MACROS 450 if( ch == ' >' && macroNest )453 if( ch == ')' && macroNest ) 451 454 { 452 455 UCell* otos; 453 456 UBlock* blk; 454 457 UIndex blkN; 458 459 blk = BLOCK; 460 if( (blk->used < 1) || 461 (ur_type(blk->ptr.cells + blk->used - 1) != 462 UT_MACRO) ) 463 break; 455 464 456 465 otos = UR_TOS; … … 467 476 } 468 477 469 blk = ur_blockPtr( STACK[stack.used - 1] );478 blk = BLOCK; 470 479 --blk->used; // Remove macro. 471 480
