Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

C# 

Any small, fun things to code for in C#?

Make a keylogger that sends keys organized to a online server/email.
I like to make programming languages :)

Here is a simple way where you can test your knowledge and work on it when you're bored

Code
using System;
using System.IO;

namespace SimpleProgrammingLanguage
{
    class Program
    {
        static void main(string[] args)
        {
            foreach(string line in args[0].Split('\n'))
            {
                if (line.ToUpper().StartsWith("WRITELINE ")) Console.WriteLine(line.Substring(10));
            }
        }
    }
}

It will read each line of the file. This example will see if the line starts with "writeline" (Case insensitive) and then writes whatever is after it

Of course, actual programming languages aren't written this way. It works more like:

Lexer > Parser > AST > Interpreter/Compiler

I can show you an actual lexer if you want me to.


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Shell] by CallMeMarcDec 7, 2019 04:58 AM 3 362 Dec 7, 2019 04:58 AM
Last Post: is_nimda
[C#] by BaitableOct 17, 2016 08:19 AM 3 240 Oct 17, 2016 08:19 AM
Last Post: i-manuel
[Python] by TISANov 12, 2015 04:34 PM 7 290 Nov 12, 2015 04:34 PM
Last Post: Tyranus.