GRU Devlog 24 - occ and new web design

January 09, 2022 — G1n

This week I was working on occ

First I have done lexer. Seems it is totally working, if we will need to add some new keywords, just adding if statement is needed. But maybe will be better to rewrite it to linked list, but I didn’t understood how it works so for now just list of tokens.

First thing I have done after lexer is simple code generator. So occ can generate very simple assembler code! For now it can just generate functions (int) and return (just number). But I think it was cool progress in 5 days.

Then I started making parser. It took several days to properly implement binary trees, but seems it is done now. It can make very simple tree with function token and return that can be understood by code generator function

Also chunk has made very cool website design and logo. If you read this devlog, you can see how cool is it :)

Hope you liked this post! If you would like to help us, contact me via email, xmpp or irc :)

tags: gru, occ

GRU Devlog 23 - more olibc and start of occ (and more projects ideas!)

January 02, 2022 — G1n

I think this week was productive. I have done a lot of things to olibc. First I finally implemented working FILE struct. That required to implement malloc and free, so we also have it now! Then stdio.h was implemented. Still need to make a lot of functions, but we already have most useful ones (for examples every C11 printf functions implemented and fully working). Also finally stdin/stdout/stderr file descriptors working properly.

We have full implemented <ctype.h> header now! It wasn’t really hard.

This year I started from tryes to make occ - GRU C compiler (maybe it will be GRU Compiler Collection in future). A lot of things will need to be implemented and a lot of new to know! I hope it will be fun :)

Happy New 2022 Year! I hope we will make a lot of new tools this year. And more people will join us :)

Hope you liked this post! If you would like to help us, contact me via email, xmpp or irc :)

tags: gru, olibc, occ