[ home / overboard ] [ soy / qa / raid / r ] [ int / pol ] [ a / an / asp / biz / mtv / r9k / tech / v / sude / x ] [ q / news / chive / rules / pass / bans / status ] [ wiki / booru / irc ]

A banner for soyjak.party

/tech/ - Soyence and Technology

Download more RAM for your Mac here
Catalog
Email
Subject
Comment
File
Password (For file deletion.)

File: plier.webp 📥︎ (4.44 KB, 191x255) ImgOps

 â„–31300[Quote]

give me advice on how to write a compiler.
Right now I can only conceive a crappy stack machine interpreter or bytecode generator if I try hard.

 â„–31301[Quote]

>>31300 (OP)
be a nigger like linus and dont write one

 â„–31304[Quote]

I know templeOS does have a lot of programming tutorials that no one talks about. This summer I'm going to stop being a larping branigger and actually try them

 â„–31305[Quote]

>>31304
Maybe there is documentation of the compiler/interpreter in there. If not I watched a a couple livestreams on the side of terry working on them and they were insightful. Like how HolyC is minimal abstraction but he added booleans anyway but they just compile identically as an I8

 â„–31334[Quote]

okay i started working on my lang wish me luck

 â„–31386[Quote]

I almost wrote a preprocessor rn

 â„–31511[Quote]

>>31386
cool, how did you do it?

 â„–31543[Quote]

File: ClipboardImage.png 📥︎ (70.59 KB, 889x455) ImgOps

>>31511
I know nothing about compiler design so I just made an algorithm that converts the source code into a continuous string with keywords represented as special chars and such. I also will need to make it push all the operators to the right in their following order so it will be easier to implement the parser as a stack machine.



[Return][Catalog][Go to top][Post a Reply]
Delete Post [ ]
[ home / overboard ] [ soy / qa / raid / r ] [ int / pol ] [ a / an / asp / biz / mtv / r9k / tech / v / sude / x ] [ q / news / chive / rules / pass / bans / status ] [ wiki / booru / irc ]