File: AllBiFCTypes.fth

package info (click to toggle)
fcode-utils 1.0.2-7
  • links: PTS
  • area: main
  • in suites: buster, stretch
  • size: 46,976 kB
  • ctags: 1,402
  • sloc: ansic: 9,705; csh: 241; makefile: 106; sh: 17
file content (71 lines) | stat: -rw-r--r-- 2,152 bytes parent folder | download | duplicates (20)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
\  Test all the known Built-In FCode tokens
\     that have specific definition Types

\  Updated Tue, 10 Oct 2006 at 11:00 PDT by David L. Paktor

\  Applying "TO" to them ought to generate errors
\  except for the ones that legitimately take "TO",
\  namely the DEFER and VALUE definitions

fcode-version2

[message]  Constants.  Should generate errors
d# 10 to -1  (  CONST  )
d# 10 to -1  (  CONST  )
d# 10 to 0  (  CONST  )
d# 10 to 0  (  CONST  )
d# 10 to 0  (  CONST  )
d# 10 to 1  (  CONST  )
d# 10 to 2  (  CONST  )
d# 10 to 3  (  CONST  )
d# 10 to bell  (  CONST  )
d# 10 to bl  (  CONST  )
d# 10 to bs  (  CONST  )

[message]  Defer Words.  Should generate no errors
['] noop to  blink-screen  (  DEFER  )
['] noop to  delete-characters  (  DEFER  )
['] noop to  delete-lines  (  DEFER  )
['] noop to  draw-character  (  DEFER  )
['] noop to  draw-logo  (  DEFER  )
['] noop to  erase-screen  (  DEFER  )
['] noop to  insert-characters  (  DEFER  )
['] noop to  insert-lines  (  DEFER  )
['] noop to  invert-screen  (  DEFER  )
['] noop to  reset-screen  (  DEFER  )
['] noop to  toggle-cursor  (  DEFER  )

[message]  Value Words.  Should generate no errors
h# 32 to  #columns  (  VALUE  )
h# 32 to  #lines  (  VALUE  )
h# 32 to  char-height  (  VALUE  )
h# 32 to  char-width  (  VALUE  )
h# 32 to  column#  (  VALUE  )
h# 32 to  fontbytes  (  VALUE  )
h# 32 to  frame-buffer-adr  (  VALUE  )
h# 32 to  inverse-screen?  (  VALUE  )
h# 32 to  inverse?  (  VALUE  )
h# 32 to  line#  (  VALUE  )
h# 32 to  my-self  (  VALUE  )
h# 32 to  screen-height  (  VALUE  )
h# 32 to  screen-width  (  VALUE  )
h# 32 to  window-left  (  VALUE  )
h# 32 to  window-top  (  VALUE  )

[message]  Variables.  Should generate errors
h# 12 to  #line  (  VRBLE  )
h# 12 to  #out  (  VRBLE  )
h# 12 to  base  (  VRBLE  )
h# 12 to  mask  (  VRBLE  )
h# 12 to  span  (  VRBLE  )
h# 12 to  state  (  VRBLE  )

multi-line  #message" Using ['] on words that are both FWords and FCodes "\
                      should generate no errors"
['] new-device     drop
['] finish-device  drop
['] offset16       drop
['] instance       drop
['] end0           drop

fcode-end