Rev 7693 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7693 | Rev 7696 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | (* |
1 | (* |
2 | BSD 2-Clause License |
2 | BSD 2-Clause License |
Line 3... | Line 3... | ||
3 | 3 | ||
4 | Copyright (c) 2018, 2019, Anton Krotov |
4 | Copyright (c) 2018-2019, Anton Krotov |
5 | All rights reserved. |
5 | All rights reserved. |
Line 6... | Line 6... | ||
6 | *) |
6 | *) |
Line 75... | Line 75... | ||
75 | 75 | ||
Line 76... | Line 76... | ||
76 | program*: PROG.PROGRAM; |
76 | program*: PROG.PROGRAM; |
Line -... | Line 77... | ||
- | 77 | ||
- | 78 | parsers: C.COLLECTION; |
|
Line 77... | Line 79... | ||
77 | 79 | ||
78 | parsers: C.COLLECTION; |
80 | lines*: INTEGER; |
79 | 81 | ||
80 | 82 | ||
Line 1176... | Line 1178... | ||
1176 | checklex(parser, SCAN.lxEND); |
1178 | checklex(parser, SCAN.lxEND); |
Line 1177... | Line 1179... | ||
1177 | 1179 | ||
1178 | ExpectSym(parser, SCAN.lxIDENT); |
1180 | ExpectSym(parser, SCAN.lxIDENT); |
1179 | check1(parser.lex.s = unit.name.s, parser, 25); |
1181 | check1(parser.lex.s = unit.name.s, parser, 25); |
1180 | ExpectSym(parser, SCAN.lxPOINT) |
- | |
1181 | 1182 | ExpectSym(parser, SCAN.lxPOINT) |
|
Line -... | Line 1183... | ||
- | 1183 | END; |
|
1182 | END; |
1184 | |
1183 | 1185 | INC(lines, parser.lex.pos.line); |
|
Line 1184... | Line 1186... | ||
1184 | PROG.closeUnit(unit) |
1186 | PROG.closeUnit(unit) |
Line 1246... | Line 1248... | ||
1246 | 1248 | ||
1247 | 1249 | ||
1248 | PROCEDURE init* (bit_depth, target: INTEGER; options: PROG.OPTIONS); |
1250 | PROCEDURE init* (bit_depth, target: INTEGER; options: PROG.OPTIONS); |
1249 | BEGIN |
1251 | BEGIN |
- | 1252 | program := PROG.create(bit_depth, target, options); |
|
1250 | program := PROG.create(bit_depth, target, options); |
1253 | parsers := C.create(); |
Line 1251... | Line 1254... | ||
1251 | parsers := C.create() |
1254 | lines := 0 |
1252 | END init; |
1255 | END init; |