Changeset 141 for trunk/thune/tests

Show
Ignore:
Timestamp:
05/06/06 04:54:25 (3 years ago)
Author:
krobillard
Message:

Thune - Implemented selector!

Location:
trunk/thune/tests/working
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/thune/tests/working/parse.good

    r125 r141  
    22[:a-b 1 c2 1.23 2 3 
    33    'go 'd' 0 
     4    arr/1 pos/x 
    45    0.1 z:] 
    56set-word! :a-b 
     
    1213char! 'd' 
    1314decimal! 0 
     15selector! arr/1 
     16selector! pos/x 
    1417decimal! 0.1 
    1518get-word! z: 
  • trunk/thune/tests/working/parse.t

    r130 r141  
    3838    ['0' - '9'] charset :digit 
    3939    ['a' - 'z' 'A' - 'Z'] charset :alpha 
    40     ['a' - 'z' 'A' - 'Z' '0' - '9' "+-*/_.,!?|&"] charset :wordc 
     40    ['a' - 'z' 'A' - 'Z' '0' - '9' "+-*_.,!?|&"] charset :wordc 
    4141    ['a' - 'z' 'A' - 'Z' "+-*/_.,!?|&"] charset :word-start 
    4242    ['0' - '9'] charset :digit 
     
    6565        | word [ 
    6666              ':' tok:  (get-word! tok slice.prev app) 
     67            | '/' [some digit | word] tok:  (selector! tok app) 
    6768            | tok:  (word! tok app) 
    6869          ] 
     
    104105{:a-b 1 c2 1.23 2 3 
    105106 'go 'd' 0.0 
     107 arr/1  pos/x 
    1061080.1 z:} read-thune 
    107109dup .