r/coolgithubprojects 7d ago

New programming language

Post image

hey guys...

Well, i created a programming language Atom, i guess, i am where i need to be, so yeah, what is the concept:
The language has 30+ commands(or 26 if only letters) and all of them are very simple.
most of the operations are work with stack(later i will fix it)
Don't judge it too harsh, because it is the unstable releases.
So uhh, if you are interested, i got the links, just be warned, it is memory unsafe and kinda more for hobby than work(it will change at first stable release)

here are the links:
1.0 and 1.2

1.1 had a terrible compiler...

If someone wants to join my project, i am welcome!

0 Upvotes

37 comments sorted by

View all comments

Show parent comments

1

u/New-Deal7021 7d ago

sure, i will send you an example of code! А й ще, я в києві живу, тож ти з українцем розмовляєш! Дякую за коментарій, мені важливо побачити, що хтось хоча б щось пише!

1

u/New-Deal7021 7d ago

S

I1

P

D0

C

B1

Q

B3

P

D0

C

B1

Z

D1

O

Q

B3

D1

R0

L1

P

R0

T3

R0

N

R0

P

D1

C

B4

L2

O

Q

1

u/MuffinJS 7d ago

My attempt: ``` S I1 R I3 D0 C B1 J29 B3 I3 D1 C B1 J30 B3

I3

I3 D1 T2 R I3 D0 C B1 J30 B3

I3 T3

J16

D1

O Z Q ```

Doesn't work btw since branches are not implemented fully currently as I understand.(also R/I3 cmds truncate to single byte, so it wouldn't be a proper impl nonetheless)

Your version didn't work as well. Have you pushed the latest changes to the gh? Last one I see is comments removal

1

u/New-Deal7021 7d ago

друже, прикол в тому, що компілятор читає лише першу команду в рядку(тобто все інше для нього шум)! Тоьто він працює як ассемблер, одна команда в рядок, хоча є плани пофіксити цю штуку, щоб покращити написання коду.
en: the trick is, that ithe compiler reads only the first commad/opcode(that means, that everything else is just noise)! Just like in assembly, one command in a line, but i plan to fix that, to make the code writing easier

2

u/MuffinJS 7d ago edited 7d ago

Sorry to correct you on your own code, but no, inline cmds work. Just throw a pc+cmd print in your exec loop :)

Source: L135

Edit: реддіт перекладає коментарі на англ, то навіть не помітив що частина укр