You are browsing as a guest. Sign up (or log in) to start making projects!

RenanLang

  • 2 Devlogs
  • 4 Total hours

An stack-based language, written in C++

Open comments for this post

1h 37m 14s logged

Devlog 002

I started to develop the virtual machine! It has no complete commands yet but it can pop and manipulate the stack as it wants. It can interpret the commands PUSH ADD PRINT and HALT.

I am going to suffer a little by handling all edge casesm such as trying to pop the stack even when it is already empty.

I’ll fix this later. As seen on the video, it can sum the numbers. I plan to add the Hello world example (it need to exist!) and adding more functions such as input taking, jumps and loops.

0
0
8
Open comments for this post

2h 17m 40s logged

Devlog 01

Ok! So i was bored in a time so i decided that write a language would be cool. It is a fast project but kinda hard so i started with that in midn

First i opened draw.io just for sketching a liitle architecture,

I wrote:
The CLI usage
The File Reader module (Working as seen on screenshot!)
The basis for the compiler
The Initial OPCODE table

But i still need to write a tokenizer and think better in what opcodes i should implement. I want it to be fast and not really fancy. (The screenshot shows the dump of the main file because i forgot to write an example)

0
0
2

Delete project?

Are you sure you want to permanently delete this project? This action cannot be undone.

All devlogs, followers, and associated data will be removed.

Followers

Loading…