[M3devel] m2tom3

Rodney M. Bates rodney_bates at lcwb.coop
Thu Nov 17 18:09:49 CET 2011


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.
>
>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Standard.m3
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20111117/7d567337/attachment-0002.ksh>


More information about the M3devel mailing list