C:\yacco2\linker>rem file: testsuite.bat
C:\yacco2\linker>rem test suite for Linker
C:\yacco2\linker>cd "c:\yacco2\linker\release\"
######## Command line edits #######
######## perfect score: compile linker and yacco2 first set
C:\yacco2\linker\Release>lnk.exe "c:/yacco2/compiler/grammars/yacco2.fsc"
Load linker's keywords
Get command line and parse it
Parse linker control file
Parse alphabet
Parse fsc files
Sort thread dictionary
Emit file name: c:/yacco2/compiler/grammars/yacco2_fsc.cpp

######## Command line error: bad file name inputted
C:\yacco2\linker\Release>lnk.exe "c:/yacco2/compiler/grammars/yacco2.fscc"
Load linker's keywords
Get command line and parse it
Error in file#: 1 "linkercmd.tmp"
c:/yacco2/compiler/grammars/yacco2.fscc
^
        fpos: 0 line#: 1 cpos: 1
        bad-filename filename: "c:/yacco2/compiler/grammars/yacco2.fscc" does not exist

######## File control file error: no preamble construct
C:\yacco2\linker\Release>lnk.exe "c:/yacco2/linker/TS_1.fsc"
Load linker's keywords
Get command line and parse it
Parse linker control file
Error in file#: 2 "c:/yacco2/linker/TS_1.fsc"
emitfile "TS_1_fsc.tmp"
                        ^
        fpos: 121 line#: 7 cpos: 25
        preamble keyword not present

######## File control file error: no end-preamble present
C:\yacco2\linker\Release>lnk.exe "c:/yacco2/linker/TS_2.fsc"
Load linker's keywords
Get command line and parse it
Parse linker control file
Error in file#: 2 "c:/yacco2/linker/TS_2.fsc"
#include <yacco2.h>
                   ^
        fpos: 151 line#: 9 cpos: 20
        end-preamble keyword not present

######## File control file error: no preamble code present
C:\yacco2\linker\Release>lnk.exe "c:/yacco2/linker/TS_3.fsc"
Load linker's keywords
Get command line and parse it
Parse linker control file
Error in file#: 2 "c:/yacco2/linker/TS_3.fsc"
preamble
        ^
        fpos: 131 line#: 8 cpos: 9
        preamble source code not present

######## File control file error: no file-of-T-alphabet keyword present
C:\yacco2\linker\Release>lnk.exe "c:/yacco2/linker/TS_4.fsc"
Load linker's keywords
Get command line and parse it
Parse linker control file
Error in file#: 2 "c:/yacco2/linker/TS_4.fsc"
file-of-T-alphabe "c:/yacco2/linker/TS_4.fsc"
^
        fpos: 57 line#: 6 cpos: 1
        file-of-T-alphabet keyword not present

######## File control file error: no file-of-T-alphabet file present
C:\yacco2\linker\Release>lnk.exe "c:/yacco2/linker/TS_5.fsc"
Load linker's keywords
Get command line and parse it
Parse linker control file
Error in file#: 2 "c:/yacco2/linker/TS_5.fsc"
emitfile "TS_5_fsc.tmp"
^
        fpos: 82 line#: 7 cpos: 1
        T-alphabet file not present

######## File control file error: no emitfile keyword present
C:\yacco2\linker\Release>lnk.exe "c:/yacco2/linker/TS_6.fsc"
Load linker's keywords
Get command line and parse it
Parse linker control file
Error in file#: 2 "c:/yacco2/linker/TS_6.fsc"
emitfilee "TS_6_fsc.tmp"
^
        fpos: 102 line#: 7 cpos: 1
        emitfile keyword not present

######## File control file error: no emitfile file present
C:\yacco2\linker\Release>lnk.exe "c:/yacco2/linker/TS_7.fsc"
Load linker's keywords
Get command line and parse it
Parse linker control file
Error in file#: 2 "c:/yacco2/linker/TS_7.fsc"
preamble
^
        fpos: 108 line#: 8 cpos: 1
        emitfile file not present

######## File control file error: no fsc file present
C:\yacco2\linker\Release>lnk.exe "c:/yacco2/linker/TS_8.fsc"
Load linker's keywords
Get command line and parse it
Parse linker control file
Error in file#: 2 "c:/yacco2/linker/TS_8.fsc"
end-preamble
            ^
        fpos: 175 line#: 10 cpos: 13
        fsc control file not present

######## File control file error: bad fsc filename
C:\yacco2\linker\Release>lnk.exe "c:/yacco2/linker/TS_9.fsc"
Load linker's keywords
Get command line and parse it
Parse linker control file
Error in file#: 2 "c:/yacco2/linker/TS_9.fsc"
"c:/yacco2/linker/TS_9xx.fsc"
^
        fpos: 174 line#: 11 cpos: 1
        fsc control file does not exist

######## T-alphabet edits #######
######## T-alphabet: no T-alphabet keyword
C:\yacco2\linker\Release>lnk.exe "c:/yacco2/linker/TS_10.fsc"
Load linker's keywords
Get command line and parse it
Parse linker control file
Parse alphabet
Error in file#: 3 "c:/yacco2/linker/TS_10t1.fsc"
T-alphabett
^
        fpos: 75 line#: 5 cpos: 1
        T-alphabet keyword not present

######## T-alphabet: no end-T-alphabet keyword
C:\yacco2\linker\Release>lnk.exe "c:/yacco2/linker/TS_11.fsc"
Load linker's keywords
Get command line and parse it
Parse linker control file
Parse alphabet
Error in file#: 3 "c:/yacco2/linker/TS_11t1.fsc"
end-T-alphabett
  ^
        fpos: 125 line#: 10 cpos: 3
        end-T-alphabet keyword not present

######## T-alphabet: duplicate t definition
C:\yacco2\linker\Release>lnk.exe "c:/yacco2/linker/TS_12.fsc"
Load linker's keywords
Get command line and parse it
Parse linker control file
Parse alphabet
Error in file#: 3 "c:/yacco2/linker/TS_12t1.fsc"
LR1_eof
^
        fpos: 122 line#: 10 cpos: 1
        dup-entry-in-sym-table

######## T-alphabet: no t definition
C:\yacco2\linker\Release>lnk.exe "c:/yacco2/linker/TS_13.fsc"
Load linker's keywords
Get command line and parse it
Parse linker control file
Parse alphabet
Error in file#: 3 "c:/yacco2/linker/TS_13t1.fsc"
end-T-alphabet
^
        fpos: 68 line#: 6 cpos: 1
        no terminals in T-alphabet list

######## T-alphabet: comment overrun
C:\yacco2\linker\Release>lnk.exe "c:/yacco2/linker/TS_14.fsc"
Load linker's keywords
Get command line and parse it
Parse linker control file
Error in file#: 2 "c:/yacco2/linker/TS_14.fsc"
/*
^
        fpos: 0 line#: 1 cpos: 1
        comment-overrun

######## fsc control files #######
######## fsc control files: not defined terminal used in fsc control file

C:\yacco2\linker\Release>lnk.exe "c:/yacco2/linker/TS_15.fsc"
Load linker's keywords
Get command line and parse it
Parse linker control file
Parse alphabet
Parse fsc files
Error in file#: 4 "c:/yacco2/compiler/grammars/error_symbols_phrase.FSC"
no-of-T      513
             ^
        fpos: 195 line#: 7 cpos: 14
        T-alphabet list vs  no. of T not eq. re-compile grammar
Error in file#: 4 "c:/yacco2/compiler/grammars/error_symbols_phrase.FSC"
   LR1_fset_transience_operator
   ^
        fpos: 239 line#: 9 cpos: 4
        bad terminal in list, not defined in T-alphabet

######## fsc control files: thread used but not defined in fsc control file
C:\yacco2\linker\Release>lnk.exe "c:/yacco2/linker/TS_16.fsc"
Load linker's keywords
Get command line and parse it
Parse linker control file
Parse alphabet
Parse fsc files
Error in file#: 4 "c:/yacco2/linker/TS_16t1.fsc"
  NS_bad_char_set::TH_bad_char_set
  ^
        fpos: 378 line#: 18 cpos: 3
        bad thread in transitive list, not defined by fsc files
Error in file#: 4 "c:/yacco2/linker/TS_16t1.fsc"
  NS_c_comments::TH_c_comments
  ^
        fpos: 413 line#: 19 cpos: 3
        bad thread in transitive list, not defined by fsc files
Error in file#: 4 "c:/yacco2/linker/TS_16t1.fsc"
  NS_c_literal::TH_c_literal
  ^
        fpos: 444 line#: 20 cpos: 3
        bad thread in transitive list, not defined by fsc files
Error in file#: 4 "c:/yacco2/linker/TS_16t1.fsc"
  NS_c_string::TH_c_string
  ^
        fpos: 473 line#: 21 cpos: 3
        bad thread in transitive list, not defined by fsc files
Error in file#: 4 "c:/yacco2/linker/TS_16t1.fsc"
  NS_eol::TH_eol
  ^
        fpos: 500 line#: 22 cpos: 3
        bad thread in transitive list, not defined by fsc files
Error in file#: 4 "c:/yacco2/linker/TS_16t1.fsc"
  NS_identifier::TH_identifier
  ^
        fpos: 517 line#: 23 cpos: 3
        bad thread in transitive list, not defined by fsc files
Error in file#: 4 "c:/yacco2/linker/TS_16t1.fsc"
  NS_ws::TH_ws
  ^
        fpos: 548 line#: 24 cpos: 3
        bad thread in transitive list, not defined by fsc files

######## fsc control files: bad native first set number
C:\yacco2\linker\Release>lnk.exe "c:/yacco2/linker/TS_17.fsc"
Load linker's keywords
Get command line and parse it
Parse linker control file
Parse alphabet
Parse fsc files
Error in file#: 4 "c:/yacco2/linker/TS_17t1.fsc"
no-of-T      502
             ^
        fpos: 205 line#: 11 cpos: 14
        T-alphabet list vs  no. of T not eq. re-compile grammar
Error in file#: 4 "c:/yacco2/linker/TS_17t1.fsc"
list-of-native-first-set-terminals -3
                                   ^
        fpos: 244 line#: 12 cpos: 36
        list-of-native-terminals... number not present

######## fsc control files: native first set number mismatch to no in list
C:\yacco2\linker\Release>lnk.exe "c:/yacco2/linker/TS_18.fsc"
Load linker's keywords
Get command line and parse it
Parse linker control file
Parse alphabet
Parse fsc files
Error in file#: 4 "c:/yacco2/linker/TS_18t1.fsc"
no-of-T      502
             ^
        fpos: 229 line#: 11 cpos: 14
        T-alphabet list vs  no. of T not eq. re-compile grammar
Error in file#: 4 "c:/yacco2/linker/TS_18t1.fsc"
list-of-native-first-set-terminals 2
                                   ^
        fpos: 268 line#: 12 cpos: 36
        no terminals in list not equal, chk items in list

######## fsc control files: thread list number mismatch to no in list
C:\yacco2\linker\Release>lnk.exe "c:/yacco2/linker/TS_19.fsc"
Load linker's keywords
Get command line and parse it
Parse linker control file
Parse alphabet
Parse fsc files
Error in file#: 4 "c:/yacco2/linker/TS_19t1.fsc"
no-of-T      502
             ^
        fpos: 224 line#: 11 cpos: 14
        T-alphabet list vs  no. of T not eq. re-compile grammar
Error in file#: 4 "c:/yacco2/linker/TS_19t1.fsc"
list-of-transitive-threads 2
                           ^
        fpos: 383 line#: 17 cpos: 28
        no threads in list not equal, chk items in list

######## fsc control files: bad thread list number
C:\yacco2\linker\Release>lnk.exe "c:/yacco2/linker/TS_20.fsc"
Load linker's keywords
Get command line and parse it
Parse linker control file
Parse alphabet
Parse fsc files
Error in file#: 4 "c:/yacco2/linker/TS_20t1.fsc"
no-of-T      502
             ^
        fpos: 205 line#: 11 cpos: 14
        T-alphabet list vs  no. of T not eq. re-compile grammar
Error in file#: 4 "c:/yacco2/linker/TS_20t1.fsc"
list-of-transitive-threads -7
                           ^
        fpos: 364 line#: 17 cpos: 28
        list-of-transitive-threads... number not present

######## fsc control files: no thread list number present
C:\yacco2\linker\Release>lnk.exe "c:/yacco2/linker/TS_21.fsc"
Load linker's keywords
Get command line and parse it
Parse linker control file
Parse alphabet
Parse fsc files
Error in file#: 4 "c:/yacco2/linker/TS_21t1.fsc"
no-of-T      502
             ^
        fpos: 212 line#: 11 cpos: 14
        T-alphabet list vs  no. of T not eq. re-compile grammar
Error in file#: 4 "c:/yacco2/linker/TS_21t1.fsc"
  NS_bad_char_set::TH_bad_char_set
  ^
        fpos: 374 line#: 18 cpos: 3
        list-of-transitive-threads... number not present

######## fsc control files: no native first set number present
C:\yacco2\linker\Release>lnk.exe "c:/yacco2/linker/TS_22.fsc"
Load linker's keywords
Get command line and parse it
Parse linker control file
Parse alphabet
Parse fsc files
Error in file#: 4 "c:/yacco2/linker/TS_22t1.fsc"
no-of-T      502
             ^
        fpos: 222 line#: 11 cpos: 14
        T-alphabet list vs  no. of T not eq. re-compile grammar
Error in file#: 3 "c:/yacco2/compiler/grammars/yacco2_T_enumeration.fsc"
raw_at_sign
^
        fpos: 746 line#: 74 cpos: 1
        list-of-native-terminals... number not present

######## fsc control files: no-of-T # not matched against T-alphabet
C:\yacco2\linker\Release>lnk.exe "c:/yacco2/linker/TS_23.fsc"
Load linker's keywords
Get command line and parse it
Parse linker control file
Parse alphabet
Parse fsc files
Error in file#: 4 "c:/yacco2/linker/TS_23t1.fsc"
no-of-T      1502
             ^
        fpos: 223 line#: 11 cpos: 14
        T-alphabet list vs  no. of T not eq. re-compile grammar

######## fsc control files: no transitive keyword
C:\yacco2\linker\Release>lnk.exe "c:/yacco2/linker/TS_24.fsc"
Load linker's keywords
Get command line and parse it
Parse linker control file
Parse alphabet
Parse fsc files
Error in file#: 4 "c:/yacco2/linker/TS_24t1.fsc"
transitivee   y
^
        fpos: 69 line#: 5 cpos: 1
        transitive keyword not present

######## fsc control files: bad transitive value
C:\yacco2\linker\Release>lnk.exe "c:/yacco2/linker/TS_25.fsc"
Load linker's keywords
Get command line and parse it
Parse linker control file
Parse alphabet
Parse fsc files
Error in file#: 4 "c:/yacco2/linker/TS_25t1.fsc"
transitive   x
             ^
        fpos: 81 line#: 5 cpos: 14
        linker's transitive value not n or y

######## fsc control files: bad grammar-name keyword
C:\yacco2\linker\Release>lnk.exe "c:/yacco2/linker/TS_26.fsc"
Load linker's keywords
Get command line and parse it
Parse linker control file
Parse alphabet
Parse fsc files
Error in file#: 4 "c:/yacco2/linker/TS_26t1.fsc"
grammar-namee "pass3"
^
        fpos: 87 line#: 6 cpos: 1
        grammar-name keyword not present

######## fsc control files: bad grammar-name value
C:\yacco2\linker\Release>lnk.exe "c:/yacco2/linker/TS_27.fsc"
Load linker's keywords
Get command line and parse it
Parse linker control file
Parse alphabet
Parse fsc files
Error in file#: 4 "c:/yacco2/linker/TS_27t1.fsc"
grammar-name pass3
             ^
        fpos: 98 line#: 6 cpos: 14
        grammar-name value not present or quoted value

######## fsc control files: bad name-space keyword
C:\yacco2\linker\Release>lnk.exe "c:/yacco2/linker/TS_28.fsc"
Load linker's keywords
Get command line and parse it
Parse linker control file
Parse alphabet
Parse fsc files
Error in file#: 4 "c:/yacco2/linker/TS_28t1.fsc"
name-spacee   "NS_pass3"
^
        fpos: 106 line#: 7 cpos: 1
        name-space keyword not present

######## fsc control files: bad name-space value
C:\yacco2\linker\Release>lnk.exe "c:/yacco2/linker/TS_29.fsc"
Load linker's keywords
Get command line and parse it
Parse linker control file
Parse alphabet
Parse fsc files
Error in file#: 4 "c:/yacco2/linker/TS_29t1.fsc"
name-space   NS_pass3
             ^
        fpos: 117 line#: 7 cpos: 14
        name-space value not present or quoted value

######## fsc control files: bad thread-name keyword
C:\yacco2\linker\Release>lnk.exe "c:/yacco2/linker/TS_30.fsc"
Load linker's keywords
Get command line and parse it
Parse linker control file
Parse alphabet
Parse fsc files
Error in file#: 4 "c:/yacco2/linker/TS_30t1.fsc"
thread-namee  "Cpass3"
^
        fpos: 131 line#: 8 cpos: 1
        thread-name keyword not present

######## fsc control files: bad thread-name value
C:\yacco2\linker\Release>lnk.exe "c:/yacco2/linker/TS_31.fsc"
Load linker's keywords
Get command line and parse it
Parse linker control file
Parse alphabet
Parse fsc files
Error in file#: 4 "c:/yacco2/linker/TS_31t1.fsc"
thread-name  Cpass3
             ^
        fpos: 142 line#: 8 cpos: 14
        thread-name value not present or quoted value

######## fsc control files: bad monolithic keyword
C:\yacco2\linker\Release>lnk.exe "c:/yacco2/linker/TS_32.fsc"
Load linker's keywords
Get command line and parse it
Parse linker control file
Parse alphabet
Parse fsc files
Error in file#: 4 "c:/yacco2/linker/TS_32t1.fsc"
monolithicc   y
^
        fpos: 152 line#: 9 cpos: 1
        monolithic keyword not present

######## fsc control files: bad monolithic value
C:\yacco2\linker\Release>lnk.exe "c:/yacco2/linker/TS_33.fsc"
Load linker's keywords
Get command line and parse it
Parse linker control file
Parse alphabet
Parse fsc files
Error in file#: 4 "c:/yacco2/linker/TS_33t1.fsc"
monolithic   Y
             ^
        fpos: 163 line#: 9 cpos: 14
        linker's monolithic value not n or y

######## fsc control files: bad file-name keyword
C:\yacco2\linker\Release>lnk.exe "c:/yacco2/linker/TS_34.fsc"
Load linker's keywords
Get command line and parse it
Parse linker control file
Parse alphabet
Parse fsc files
Error in file#: 4 "c:/yacco2/linker/TS_34t1.fsc"
file-namee    "pass3.fsc"
^
        fpos: 166 line#: 10 cpos: 1
        file-name keyword not present

######## fsc control files: bad file-name value
C:\yacco2\linker\Release>lnk.exe "c:/yacco2/linker/TS_35.fsc"
Load linker's keywords
Get command line and parse it
Parse linker control file
Parse alphabet
Parse fsc files
Error in file#: 4 "c:/yacco2/linker/TS_35t1.fsc"
file-name    monolithic.fsc
             ^
        fpos: 177 line#: 10 cpos: 14
        file-name value not present or quoted value

######## fsc control files: bad no-of-T keyword
C:\yacco2\linker\Release>lnk.exe "c:/yacco2/linker/TS_36.fsc"
Load linker's keywords
Get command line and parse it
Parse linker control file
Parse alphabet
Parse fsc files
Error in file#: 4 "c:/yacco2/linker/TS_36t1.fsc"
no-of-Tt      504
^
        fpos: 189 line#: 11 cpos: 1
        no-of-T keyword not present

######## fsc control files: bad no-of-T value
C:\yacco2\linker\Release>lnk.exe "c:/yacco2/linker/TS_37.fsc"
Load linker's keywords
Get command line and parse it
Parse linker control file
Parse alphabet
Parse fsc files
Error in file#: 4 "c:/yacco2/linker/TS_37t1.fsc"
no-of-T      +504
             ^
        fpos: 200 line#: 11 cpos: 14
        no-of-T value not present

######## fsc control files: bad list-of-native-first-set-terminals keyword
C:\yacco2\linker\Release>lnk.exe "c:/yacco2/linker/TS_38.fsc"
Load linker's keywords
Get command line and parse it
Parse linker control file
Parse alphabet
Parse fsc files
Error in file#: 4 "c:/yacco2/linker/TS_38t1.fsc"
no-of-T      504
             ^
        fpos: 229 line#: 11 cpos: 14
        T-alphabet list vs  no. of T not eq. re-compile grammar
Error in file#: 4 "c:/yacco2/linker/TS_38t1.fsc"
transitive 3
^
        fpos: 233 line#: 12 cpos: 1
        list-of-native-terminals keyword not present

######## fsc control files: bad end-list-of-native-first-set-terminals keyword
C:\yacco2\linker\Release>lnk.exe "c:/yacco2/linker/TS_39.fsc"
Load linker's keywords
Get command line and parse it
Parse linker control file
Parse alphabet
Parse fsc files
Error in file#: 4 "c:/yacco2/linker/TS_39t1.fsc"
no-of-T      504
             ^
        fpos: 233 line#: 11 cpos: 14
        T-alphabet list vs  no. of T not eq. re-compile grammar
Error in file#: 4 "c:/yacco2/linker/TS_39t1.fsc"
end-list-of-native-first-set-terminalss
^
        fpos: 326 line#: 16 cpos: 1
        bad terminal in list, not defined in T-alphabet

######## fsc control files: bad list-of-transitive-threads keyword
C:\yacco2\linker\Release>lnk.exe "c:/yacco2/linker/TS_40.fsc"
Load linker's keywords
Get command line and parse it
Parse linker control file
Parse alphabet
Parse fsc files
Error in file#: 4 "c:/yacco2/linker/TS_40t1.fsc"
no-of-T      504
             ^
        fpos: 221 line#: 11 cpos: 14
        T-alphabet list vs  no. of T not eq. re-compile grammar
Error in file#: 4 "c:/yacco2/linker/TS_40t1.fsc"
list-of-transitive-threadss 0
^
        fpos: 353 line#: 17 cpos: 1
        list-of-transitive-threads keyword not present

######## fsc control files: bad end-list-of-transitive-threads keyword
C:\yacco2\linker\Release>lnk.exe "c:/yacco2/linker/TS_41.fsc"
Load linker's keywords
Get command line and parse it
Parse linker control file
Parse alphabet
Parse fsc files
Error in file#: 4 "c:/yacco2/linker/TS_41t1.fsc"
no-of-T      504
             ^
        fpos: 225 line#: 11 cpos: 14
        T-alphabet list vs  no. of T not eq. re-compile grammar
Error in file#: 4 "c:/yacco2/linker/TS_41t1.fsc"
end-list-of-transitive-threadss
  ^
        fpos: 387 line#: 18 cpos: 3
        end-list-of-transitive-threads keyword not present

C:\yacco2\linker\Release>del c:\yacco2\linker\ts*.tmp
