Hey /g/, i wanna make my own language. Can you point me in the right direction?
school
>>53544244
As in for fun or a real one? Because you can't make a real one, Anon.
>>53544431
Just for fun really. Or a scripting language really.
First you have to make a good logo, anyone have any ideas?
>>53544480
Alright, the basic process depends on what sort of language you want to make.
For a compiled language, learn assembly for your target CPU architecture, and decide what you want to abstract into your language. Then write a compiler that reads in your abstractions and spits out assembly instructions and links them into an executable.
For an interpreted language, you need to write a virtual memory and executable model in your host language, then write an interpreter that reads your language and manipulates the internal model accordingly.
None of this is conceptually very difficult, you could write a simple stack-based interpreted language in an afternoon.
>>53544362
This
But the basic steps are:
1. Learn at least one language (C is probably most useful)
2. Design your language
3. Write a compiler (language doesn't really matter) that compiles your language to an existing language (again probably C) and runs it
>>53544559
>just write a compiler
Lol
Flex bison
Or
PEG
>>53544244
Start learning some automata theory first
>>53544480
Do you understand discrete maths, compiling basics, compiling interaction to the machine?
Only smart retards make languages. Since you are asking /g/ how to make one, you're nor smart and not retarded.
>>53544542
Thanks :)
>>53544620
Underrated post.
>>53544620
Flex, Bison and LLVM for an actual compiler
>>53544587
Bison, Flex.
Ragel.