Skip to content

Latest commit

 

History

History
40 lines (27 loc) · 1.07 KB

README.md

File metadata and controls

40 lines (27 loc) · 1.07 KB

PROJECT FROZEN. CURRENTLY REWORKING WHOLE LANGUAGE!


Gofra Programming Language

Stack - Based programming language "written in Python"

Features

  • Interpretate code (Will removed with isolated VM/Bytecode interpretation).
  • Bytecode (Compile, Interpretate) [WIP]

Language features

  • Stack implementation (push, pop)
  • Conditional IFs ([bool_from_stack] if [code] else [code] end).
  • WHILE loops (while [expression] do [code] end)
  • Bytearray Memory (mbwrite, mbread, mbshowc, mbptr etc...)
  • Characters, Strings.
  • Basic I/O.

Simple example

35 // Push 35 in the stack.
5 // Push 5 in the stack.
+ // Pop both 35 and 5, and push their sum in the stack.
show // Pop value from the stack and show it on the screen.

Hello World example

"Hello, World!" mshowc // Show string "Hello, World!" on the screen.

Add syntax for your own PyCharm (or JetBrains IDE): JB Docs

Documentation: DOCUMENTATION.MD, Examples: ./examples/README.MD.