Menu

Compiled language syntax

Shmuel Safonov

This topic describes the differences between MALAB(TM) language and the language supported by TMC Compiler.

  • No graphics support. The generated code is suggested to be a library used by an application that provides its own GUI. However for debugging purpose some code that calls user-provided graphics server may be generated.
  • Only functions may be compiled, not scripts; each file may contain a single function with the same name as the file has (case sensitive).
  • The usage of 'end' keyword has some restrictions. It is supported for simple arrays but not is expressions line str.fld(end).
  • The expression of 'if' command should be separated from instructions body by ',' or newline separator. That is code like
    if expr var=val end
    written in single line produces an error.
  • Only 2D matrixes are supported; the 3D matrixes may be supported in future.
  • Structure arrays are not supported, cell arrays may replace them.
  • No classes support
  • try/catch are support implementation is supported depending on host platform and C compiler: the support exists with MS VC, Borland C Builder but it doesn't work with Android/Linux GNU C.
  • Symbols that are detected as functions and also the reserved symbols like j=i=sqrt(-1) may not be re-assigned to become variables. Thus j and i may not be used as variables !

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.