Dec 192017
 
Unix LEX ported to Turbo C.
File TCLEX.ZIP from The Programmer’s Corner in
Category C Source Code
Unix LEX ported to Turbo C.
File Name File Size Zip Size Zip Type
ABC.LXI 896 322 deflated
BASE.C 6638 2031 deflated
BCPL.LXI 3840 1164 deflated
BTOB.LXI 1280 496 deflated
C.OUT 11759 968 deflated
CAP.LXI 768 345 deflated
CLEX.LXI 4736 1026 deflated
COMMEN.C 649 318 deflated
CSTOCK.LXI 5760 1841 deflated
CTOC.LXI 1792 705 deflated
DFA.C 5232 1883 deflated
ECLOSU.C 1379 633 deflated
GETTOK.C 475 294 deflated
HWORD.LXI 2688 1007 deflated
IMPURE.C 1360 626 deflated
INTEG.C 505 219 deflated
LEX.C 14429 4204 deflated
LEX.DOC 73218 20251 deflated
LEX.EXE 23720 13516 deflated
LEX.Y 15495 3488 deflated
LEXCHA.C 322 241 deflated
LEXECH.C 464 317 deflated
LEXERR.C 489 309 deflated
LEXGET.C 381 267 deflated
LEXLEN.C 295 215 deflated
LEXLEX.H 4151 1321 deflated
LEXMAI.C 143 123 deflated
LEXPEE.C 257 201 deflated
LEXSRT.C 2219 610 deflated
LEXSWI.C 401 238 deflated
LEXX.PRJ 248 123 deflated
LEXX.SYM 17732 6698 deflated
LH.H 3636 731 deflated
LLSAVE.C 248 175 deflated
LMOVB.C 557 349 deflated
LMOVI.C 769 362 deflated
MAKEFILE.MAK 2022 844 deflated
MAPCH.C 1163 558 deflated
MIN.C 5048 1681 deflated
OUT1.C 11353 3273 deflated
OUT2.C 4186 1490 deflated
PR.LXI 3456 1080 deflated
READ.ME 1990 1041 deflated
SYSTEM.H 3456 1158 deflated
TCCONFIG.TC 1380 392 deflated
TOKEN.C 304 211 deflated
WORD.LXI 2048 737 deflated
YTAB.C 22848 5665 deflated
YTAB.H 148 120 deflated
YYLEX.C 3943 1726 deflated

Download File TCLEX.ZIP Here

Contents of the READ.ME file


I didn't spend much time on this because whether or not I support
TurboC for the Emerald Bay SQL is largely dependent upon how
compatible it is with the HighC/MicrosoftC/PCC code I am writing.
This is the DECUS LEX, found somewhere else on CS that had been
converted to compile and link under MSC. I don't like the code
style here but my hats off to the guy who did the work of translating it from
DeSmet C to MSC. In particular, LINT doesn't like the
spacing of assignment and negation operators ( i.e. c =- 9 for set c to -9 )
( old style =- operator is assumed ).
This and the fact that there are too many globals prevents it
from compiling and linking in MPW C on the Mac as an MPW tool.

Anyway, the move to TC was completely trivial and owed
what little work there was to do to the fact the TC seems to be
pickier about what it will and will not allow in prototypes than either
MSC or HighC. In other words, it is smarter about specifiers in prototypes
and the presumption of forward declarations.

Play with this before you use it seriously. I have not tested the TC version
much but it DOES work with my SQL system. There are some samples in the
archive for this.

For you UNIX wizards, the syntax here is slightly
different so be careful. For you beginners, read the docs and try the
examples and check out the book "Introduction to Compiler Construction
with UNIX" for instruction on using LEX with YACC. BTW, the make file
included is a PolyMake make file because that's what I use. The Turbo C
Make program is also a UNIX-derivative but is slightly different.
I suggest using the TC Docs to learn your make and when you know
what dependencies are and how to set them up, just use the dependencies
as a guide to building a make file of your own because that is one of
the syntax commonalities between TC Make and other UNIX makes. I don't
have time to learn Borland's Make program.






- Gary Lang, Ratliff Software Productions


 December 19, 2017  Add comments

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)