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

Поділитися
Вставка
  • Опубліковано 7 вер 2024
  • x.com/kolemannix
    github.com/kolemannix/bfl

КОМЕНТАРІ • 4

  • @kira.herself
    @kira.herself Місяць тому

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

  • @marshallbcodes
    @marshallbcodes Місяць тому +1

    Hell yea Zed!

  • @patrickshepherd1341
    @patrickshepherd1341 Місяць тому

    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.

    • @KolemanNix
      @KolemanNix  Місяць тому

      Feel free to share it! Disclaimer is that I'm not a compiler expert myself, though I am a highly successful programmer!
      There's nothing like the thrill of creation, great to hear you 'caught the bug'! Keep building and learning!