Dinfio Programming Language

A simple and fun programming language.

Get Started



What is Dinfio?

Dinfio is a high-level, general-purpose, interpreted, minimalist, simple programming language. Dinfio design philosophy is "code simple, simple, and simple!". Here is an example of "Hello world" program in Dinfio:

start
    writeln("Hello world!")
stop

Dinfio supports multiple paradigms, including procedural, object-oriented, and event-driven programming. Dinfio comes with great built-in modules, like Standard I/O, String manipulation functions, Mathematical functions, File system, and Graphical User Interface (GUI).

So, let's get started!

  1. Download and install the Dinfio Programming Language
  2. Launch your favourite text editor and code this:
    ' My first program
    
    start
        for i, 1, 5
            writeln("Hello, I'm Dinfio")
        endfor
    stop

  3. Save your code with any file name you want, for example we'll save it as D:\Hello.fio
  4. Launch command prompt and type > dinfio-console "D:\Hello.fio", and you'll see the greeting:
    Hello, I'm Dinfio
    Hello, I'm Dinfio
    Hello, I'm Dinfio
    Hello, I'm Dinfio
    Hello, I'm Dinfio

  5. Viola! You have created your first great program using Dinfio.

Download

You can download the latest version of Dinfio and Dinfio IDE[?] here:

Download Dinfio + Dinfio IDE Download Dinfio Only Download Dinfio IDE Only

Current Dinfio version: 2.0.14, current Dinfio IDE version: 2.0.97.
For this time, Dinfio only supports Windows operating system.

Examples

The Dinfio IDE[?] comes with many great Dinfio program examples. You can find them on <Dinfio IDE installation path>\examples\ folder. And here is an example of great GUI Programming in Dinfio with very simple code lines:

' GUI Programming

import gui

start
    create_gui()
stop

function create_gui()
    global gui_window @window
    global gui_label @label
    global gui_textbox @textbox
    global gui_button @button

    @window = @gui_window("Hello!", gui_window_sizable, 260, 130)

    @label = @gui_label("Your name: ", @window, 20, 20)
    @textbox = @gui_textbox("", @window, 100, 17)
    @button = @gui_button("OK", @window, 99, 50, 60)

    button.setdefault(true)
    button.addevent(gui_onclick, "button_click()")

    window.show()
stop

function button_click()
    messagebox(textbox.gettext())
stop

It's very simple, isn't it? You can even find more great and fun Dinfio program examples on the Dinfio Playground.

The IDE

Dinfio IDE is the default Integrated Development Environment (IDE) for creating your Dinfio programs. You can directly run your programs using this IDE. Dinfio IDE comes with so many features, including Syntax highlighting, Auto completion, Code hint, Editor theming, and many more.

Here are some of Dinfio IDE screenshots:

The overview





 

Run program





 

Auto completion





 

Dark theme





 

Editor style customisation





 

License

Dinfio and Dinfio IDE are absolutely free, so anyone can use them without any cost. Dinfio and Dinfio IDE are licensed under Dafturn Free Software License (DFSL).