File: sdc.ads

package info (click to toggle)
gnat-gps 4.3-5
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 49,096 kB
  • ctags: 20,461
  • sloc: ada: 274,120; ansic: 154,849; python: 9,890; tcl: 9,812; sh: 8,192; xml: 7,970; cpp: 4,737; yacc: 3,520; makefile: 2,136; lex: 2,043; java: 1,638; perl: 302; awk: 265; sed: 161; asm: 14; fortran: 2; lisp: 1
file content (25 lines) | stat: -rw-r--r-- 1,023 bytes parent folder | download | duplicates (16)
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
--  SDC comprises several sub-components:

--    o An INPUT-OUTPUT sub-system (packages Input & Output). These 2 packages
--      group the low-level routines used to read characters typed by the user
--      (package Input) as well as messages emitted by SDC (package Output).

--    o A LEXICAL ANALYZER (package Tokens). Its goal is to read the characters
--      typed by the user and convert them into a series of tokens.
--      There are 3 types of tokens:
--
--        . Values
--        . Operations that operate on these values
--        . Instructions (eg print, clear, quit)
--
--      The routines to scan each token (ie recognize a sequence of characters
--      as being a specific token) as well as process each token are stored
--      in the packages for Values, Operations and Instructions.

--    o A STACK (package Stack) used to store the values input to SDC as well
--      as all temporary computations.

--    o The main SDC routine (this procedure). This is the main loop of SDC.

procedure Sdc;