Is there a tool for translating code from C to Smalltalk?

404 Views Asked by At

friends, I have a piece of code which can perform simple add, subtraction, multiplication, division, and formula with brackets.

Is there some kind of conversion tool for translating code from C to Smalltalk?

Or any other relatively easy way to achieve this?

Thanks in advance.

2

There are 2 best solutions below

1
Vijay Mathew On BEST ANSWER

There is an implementation of SWIG for Smalltalk. (SWIG is a software development tool that connects programs written in C and C++ with a variety of high-level programming languages).

0
Stephan Eggermont On

This should be trivial to write with PetitParser