|
- // E02-S03 name-table fixture: case-insensitive IDs and declaration spelling.
- // "runner" and "ticker" are used before their declarations; the declaration
- // spelling must replace the first-use spelling. "Main" is declared once and
- // later written differently; the first declaration spelling must stay.
- interface Ticker
- method tick()
- end interface
-
- class Worker implements TICKER
- private runner count
- public method Tick()
- count.go(Count, COUNT)
- end method
- end class
-
- class RunnerJob
- end class
-
- class Runner
- public method go(a as word, b as word)
- end method
- end class
-
- program Main
- var w as WORKER
- var job_2 as runnerjob
- var Count as word
- w = new worker()
- main = MAIN
- end program
|