[M3devel] m2tom3 Standard.m3, second try.

Rodney M. Bates rodney_bates at lcwb.coop
Fri Nov 18 18:11:04 CET 2011


Opps, sorry.  That was the unmodified version.  I seem to have two different
subdirectories with m3tom3 in them.  Try this one.



On 11/17/2011 02:18 PM, Mark Wickens wrote:
> 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.
>>>
>>>
> Hi Rodney, is the version of Standard.m3 attached to your email the one you modified?
> I can still see an import of TextF.
>
> Thanks for the help,
>
> Mark.
>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Standard.m3
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20111118/abe74c17/attachment-0002.ksh>


More information about the M3devel mailing list