Building my own programming language - Generic Structs [1/3]

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

the syntax of your language looks very neat, I had smth similar in mind with "type" semantics

liliumgrl
Автор

This is really cool, man! I actually got on a binge about a month ago wanting to learn how to make a programming language (I've programmed about 10 years and never actually put my hands on the process).

Pulled up a tutorial in python and followed it long enough to get a bunch of the basics like basic math expressions, conditionals, loops, and functions. I just finished the core of my test suite (700 test cases lol) in my own language!

I went on after the tutorial and made structs, when-triggers that can be set to fire once or every time a condition is met, dot operators, indexing and slicing, static and dynamic types, importing code from other files, a way to hook functions to structs with a one-liner in the struct definition that avoids a lot of copy and pasting, some basic file io and built in functions, and some basic in-language error handling! Lol I've been obsessed with this project.

Anyway, I just found your videos and I'm really interested in these generics. I'll definitely be watching the whole playlist! I don't want to make an unsolicited plug for my own language, but I'd love to link you to the repo if you ever want to take a look out of curiosity. I'd love any feedback; I'm a good programmer but I'm REALLY inexperienced with language design, so I'm happy to hear any thoughts you might have.

patrickshepherd
welcome to shbcf.ru