Skip to content

pozsarzs/sameinmanylanguages

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

Same program in many languages

This is just fun, nothing more.

Due to linguistic peculiarities, the structure of the programs is not perfectly identical. Any operational differences (e.g. input method) can be read in the footnote. For some programming languages, we have tried to use the older dialect to convey the significant syntactic differences between the languages. Modern languages​have become a little closer to each other.

If you feel like it, you can join this poor geek fun, submit your program written in several different languages ​and we will publish it. In the program header, please include the following information: purpose, author, license, language (dialect), testing environment, and the same information about the original file.

MBConv

Modbus register number/address converter utility (part of the ModShell).

Original file

  • filename: mbconv.msh
  • language: ModShell script
  • tried in and on: ModShell v0.1-beta1 (Linux, Windows)
  • licence: EUPL v1.2

Transscripts

filename language tried in and on
mbconv.bas BASIC1 Microsoft GW-BASIC v3.23 (FreeDOS)
mbconv.f FORTRAN IV1 FSF GNU Fortran v 12.2.0 (Linux)
mbconv.pas Pascal Borland Turbo Pascal v7.0 (FreeDOS)
mbconv.py Python3 PSF Python v3.11.2 (Linux)
mbconv.sh Bash shellscript GNU Bash 5.2.15 (Linux)

Footnotes

  1. This version of the language does not support the use of command line parameters, so it prompts for the data. 2