1 ! Copyright (C) 2005, 2009 Daniel Ehrenberg
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: accessors kernel namespaces io ;
6 TUPLE: spot char line column next check version-1.0? ;
10 : get-char ( -- char ) spot get char>> ;
11 : set-char ( char -- ) spot get swap >>char drop ;
12 : get-line ( -- line ) spot get line>> ;
13 : set-line ( line -- ) spot get swap >>line drop ;
14 : get-column ( -- column ) spot get column>> ;
15 : set-column ( column -- ) spot get swap >>column drop ;
16 : get-next ( -- char ) spot get next>> ;
17 : set-next ( char -- ) spot get swap >>next drop ;
18 : get-check ( -- ? ) spot get check>> ;
19 : check ( -- ) spot get t >>check drop ;
20 : version-1.0? ( -- ? ) spot get version-1.0?>> ;
21 : set-version ( string -- )
22 spot get swap "1.0" = >>version-1.0? drop ;
28 SYMBOL: interpolating?
34 SYMBOL: extra-entities