Article View: comp.lang.modula2
Article #2671Re: Converting Modula-2 to C
From: Bill Seurer
Date: Wed, 02 Aug 1995 19:13
Date: Wed, 02 Aug 1995 19:13
37 lines
1717 bytes
1717 bytes
In article <19950731.232859.34@callan.demon.co.uk>, simon@callan.demon.co.uk (Simon Callan) writes: |> I'm not sure if this is the best newsgroup for this, but since I got the |> info from the FAQ, it seem reasonable. |> |> I am trying to convert a large amount o2 Modula-2 to C, using the MTC |> program running under DOS and DJGPP. I have compiled MTC, with no |> problems, but I am having problems running it. |> |> I have a simple test program : |> |> IMPLEMENTATION MODULE test; |> |> VAR |> A : CARDINAL; |> BEGIN |> A:=1; |> END test. |> |> When I try to run MTC on this, I get the following result: |> |> D:\TEST>mtc test.mod |> go32 version 1.12.maint1 Copyright (C) 1994 DJ Delorie |> test.mod: |> 8, 1: Error illegal character |> 1 error(s) |> D:\TEST> |> |> does anyone know what is going wrong with this? The main problem is that you are converting from a good language into a cruddy one. :-) Actually, I think the message is referring to line 8 character 1. Since there appears to be only 7 lines perhaps you have some garbage at the end of your file? -- - Bill Seurer Language and Compiler Development IBM Rochester, MN Business: BillSeurer@vnet.ibm.com Home: BillSeurer@aol.com
Technical Details
Message-ID:
<3voip5$1353@locutus.rchland.ibm.com>Path:
arc1-ca.pugleaf.net!nordruth.rchland.ibm.com!seurerReferences:
<19950731.232859.34@callan.demon.co.uk>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!nordruth.rchland.ibm.com!seurer From: seurer@nordruth.rchland.ibm.com (Bill Seurer) Newsgroups: comp.lang.modula2 Subject: Re: Converting Modula-2 to C Date: 2 Aug 1995 19:13:41 GMT Organization: IBM Rochester MN Distribution: world Message-ID: <3voip5$1353@locutus.rchland.ibm.com> References: <19950731.232859.34@callan.demon.co.uk> Reply-To: BillSeurer@vnet.ibm.com NNTP-Posting-Host: nordruth.rchland.ibm.com