[M3devel] m2tom3
Mark Wickens
mark at wickensonline.co.uk
Thu Nov 17 19:40:37 CET 2011
On 17/11/11 17:09, Rodney M. Bates wrote:
> I dragged this out and, if a few minutes, got m2tom3 to compile under CM3
> by eliminating IMPORT TextF and changing 4 places from the form
> TextVariable[j]
> to Text.GetChar(TextVariable,j). This is file
> m2tom3/src/Analyzer/Standard,m3.
> The result is attached.
>
> It compiled and linked on AMD64_LINUX, and executed enough to give the
> help text
> and to translate a tiny bit of Modula-2 code.
>
> I'm biting my tongue on why it was coded this way in the first place.
>
> On 11/15/2011 04:44 PM, Mark Wickens wrote:
>> Guys,
>>
>> I found the m2tom3 translation utility here:
>> http://freepages.modula2.org/downloads/m2tom3-2.03.tar.gz
>> I attempted to compile it using cm3, but I get an unknown interface:
>>
>> msw at x60:~/m2tom3/m2tom3/src$ cm3
>> --- building in ../LINUXLIBC6 ---
>>
>> unsupported m3_option value: "-O"
>> new source -> compiling Standard.m3
>> "../src/Analyzer/Standard.m3", line 25: unable to find interface (TextF)
>> 1 error encountered
>> compilation failed => not building program "m2tom3"
>> Fatal Error: package build failed
>>
>>
>> Has anyone heard of interface TextF? Alternatively, is there a port
>> of this utility to cm3?
>>
>> I recently uncovered a machine-readable copy of my degree final year
>> project, a Meta Assembler, written in Modula-2, and wondered if I
>> could get it to compile using the utility to work with Modula-3.
>>
>> Regards,
>>
>> Makr.
>>
>>
Thanks Rodney,
My M3 skills aren't up to much - I'll give it a whirl later.
Regards, Mark.
More information about the M3devel
mailing list