🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.functional
Article #924

Re: Including files from ml-lex and -yacc

#924
From: Patrick Miller
Date: Tue, 17 Nov 1992 16:57
21 lines
1482 bytes
In article <farrell.721895635@coral>, farrell@coral.cs.jcu.edu.au (John Farrell) writes:
|> >directive %Include <filename> meaning that the file <filename> is to
|> ...

|>   I thought the standard way to do this was to use the same compiler
|> directives as C does, then use the C preprocessor :-). It's a hack, I know,
|> but it provides a well-known set of functions at very low cost.

One has to be careful how this is done.  Remember that C preprocessors
have varying awareness of comment characters, etc...   The following
was causing the Sisal preprocessor (a CPP hack as described) to bomb.
The % is a comment character.

		for initial			% Can't do it too much

The problem was that Sisal uses Mark-to-endofline comments.  The CPP
was getting confused over the single quote without matching end quote!

-- 
Pat Miller                            I have many opinions, but they
patmiller@llnl.gov                      generally aren't humble ones
Technical Details
Message-ID: <141745@lll-winken.LLNL.GOV>
Path: arc1-ca.pugleaf.net!sparky!uunet!portal!lll-winken!diego.llnl.gov!miller
References: <1992Nov10.142821.8095@daimi.aau.dk> <farrell.721895635@coral>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!portal!lll-winken!diego.llnl.gov!miller
From: miller@diego.llnl.gov (Patrick Miller)
Newsgroups: comp.lang.functional
Subject: Re: Including files from ml-lex and -yacc
Keywords: ml-lex ml-yacc sml
Message-ID: <141745@lll-winken.LLNL.GOV>
Date: 17 Nov 92 16:57:06 GMT
References: <1992Nov10.142821.8095@daimi.aau.dk> <farrell.721895635@coral>
Sender: usenet@lll-winken.LLNL.GOV
Organization: Lawrence Livermore National Laboratory
Lines: 21
Nntp-Posting-Host: diego.llnl.gov