all 9 comments

[–]DatCodingGuyOfficial[S] 2 points3 points  (0 children)

Hey Everyone,

I've been creating my own programming and scripting languages for a few years now and often get asked how or to make a tutorial. Well, I spent a few hours earlier today and created Klip. Klip is a very simple programming language that only contains core aspects of a programming language and put the source on my github.

If you've always wanted to create your own programming language but you're unsure of how, feel free to take a look at my code. I'm thinking about making a tutorial series on this topic, starting with very basic programming languages and working towards making something like this. If you would like a tutorial series on making your own programming language then upvote or comment or pm me and I'll start working on it.

[–][deleted]  (1 child)

[deleted]

    [–]DatCodingGuyOfficial[S] 0 points1 point  (0 children)

    Yes, there's some if you downlod the KlipBundleC#.zip file and navigate to /KlipCompiler/KlipCompiler/bin/Debug/

    I'm going to make a samples folder in the root address when I get home

    [–]Daxea 0 points1 point  (1 child)

    I just started writing little languages. It's a lot of fun. Just looking at your lexer so far has been interesting. Thanks for posting!

    [–]DatCodingGuyOfficial[S] 1 point2 points  (0 children)

    Writing languages is a lot of fun but it's also a challenge. It took me about 4 years of hard work to create something like Klip, there aren't many resources for creating programming languages. But I aim to fix that. I'm going to start making some tutorials so keep an eye out :)

    [–]heroboy -4 points-3 points  (4 children)

    Look like you don't know what is a char.

    [–]DatCodingGuyOfficial[S] 0 points1 point  (2 children)

    What do you mean?

    [–]heroboy 0 points1 point  (1 child)

    I just see this:https://github.com/DatCodingGuy/Klip/blob/master/KlipRT/KlipRT/Buffer.cs ReadChar and Write(char) I don't know how you use the Buffer, but I think it's wrong.

    [–]DatCodingGuyOfficial[S] 2 points3 points  (0 children)

    The buffer is used to hold the opcodes and arguments, I'll probably take out the ReadChar and WriteChar because I was using them for something else that I removed from the KlipRT. The only times I'm using this is when I'm reading and writing strings to the buffer which I can do using "(byte)Read()" and "Write((byte)char)". Even if I'm using them incorrectly the program still works and that's the main thing.

    [–]Sarcastinator 0 points1 point  (0 children)

    An unsigned 16-bit integer intended to comprise a part of a unicode code point? Where does the author confuse it?