DynC banner

DynC

5 devlogs
21h 15m 4s

Esoteric language, which have C like syntax, but with objects and dynamic typing. Built with help of c4 compiler, crafting interpreters by Robert Nystrom, Writing an Interpreter in Go by Thorsten Ball and many others

This project uses AI

Used ChatGPT for generating testing files (I felt lazy). Also used AI for debugging as it was absolutely painful by mysef. Some parts of it were written with a tremendous help of AI (correcting my code or giving me a upgraded versions of my functions).

Demo Repository

Loading README...

tvixeries

I wanted to go to sleep early, but here we are… 6 AM…. Anyways, here is a website interpreter. GG

Attachment
0
tvixeries

Finally finished! It works, still have a lot features to implement, but for now it’s a basic scripting language, which I am very proud of. I am absolutely amazed that I managed to do this in such a short time. Thank God I am sick and could spend literally from 7 AM to 4 AM on this project. Now I want the code to be highlighted and just more optimized, but that’s for another time for sure.

Attachment
0
tvixeries

Tried fixing objects and implementing arrays, but broke the language completely. Here are some debug lines

Attachment
0
tvixeries

Alright, so we fixed some of the problems with object creation, as they all were stored as a null objects, now they just can’t figure out how to loop etc. I would like to try to make arrays possible in this unholy language. Oh and btw I don’t know how it works in Vim, but I literally was writing these fixes for 4 hours and it logged half of that time somehow, but it’s alright, I guess

Attachment
0
tvixeries

Alright chat, I am cooked. I did what a typical small C compiler would do, but as a interpreter with dynamic typing and all that. And it absolutely does not work. I’ll try though

Attachment
1

Comments

tvixeries
tvixeries 8 days ago

Also I changed to using notepad– instead of VIM, so I sacrificed some time for more clarity in my workflow (I can see more code or sum, idk, just felt more visible)