[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

How do I create my own programming language?

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 7
Thread images: 1

File: 1480182807589.png (1MB, 866x1200px) Image search: [Google]
1480182807589.png
1MB, 866x1200px
How do I create my own programming language?
>>
Start with a waifu
>>
>>59392146
First you gotta come up with a name and a logo.
>>
Choose a low level language to make your language in. Many are made in C. If you want something that's at the level of C, I think you'll have to do it in assembly.
>>
>>59392146
Just take Java and add and remove a couple of features.

That's what everyone else is doing.
>>
>>59392146
1. Write a very simple parser and a very simple AST evaluator.
2. Modify them, adding features until the language is good enough to write simple programs in.
3. Optionally, write an AST analyzer to check for blisteringly stupid mistakes before actually running a program.
4. If you did 3, write some optimization passes that rewrite your language constructs into ones that require less time to execute.
5. If you did 3 or 4, modify the AST evaluator so that instead of actually evaluating the code, it prints out an instruction in a lower-level language that would accomplish the same thing.

If you did 5, you now have a compiler. If not, you at least have an interpreter. Go write some programs in your language.
>>
Dragon book m9
Thread posts: 7
Thread images: 1


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.