Codementor Events

How and why I built ATinyCompiler

Published May 27, 2023

About me

I am a devotee of YOGODA SATSANGA SOCIETY OF INDIA and and a coding expert from TECHGIG.COM

The problem I wanted to solve

I wanted to code in linux terminal using a simple compiler like BASIC and I am satisfied

What is ATinyCompiler?

I build a compiler similer to BASIC programming language with the following commands using "line numbers" :
LET
INPUT
PRINT
NEWLINE
INCR [INCREMENT]
ADD
MUL
CMP [COMPARE]
JE [JUMP-ON-EQUAL]
JL [JUMP-IF-LESS-THAN]
JMP [JUMP TO LINE NUMBER]
GOSUB
RETURN
START
END

With the compiler I was able to solve many different type of coding problems

Tech stack

Technologies I chose was PASCAL
I was used to using PASCAL for simple coding

The process of building ATinyCompiler

I started by coding in PASCAL
Then a sorted out some "basic ways I was used to in programing"
This helped/inspired me to build ATinyCompiler

Challenges I faced

The process was "collecting myself" so the total effort was relieving

Key learnings

I LEARNED TO DO PROGRAMMING "MY WAY"
THERE WAS NOTHING DIFFERENT TO DO SINCE IT WAS "THAT WAY"

Tips and advice

BUILD YOUR "OWN WAY"

Final thoughts and next steps

I USE THE COMPILER TO RUN PROGRAMS/ALGORITHMS
IT IS NOW A NECESSARY PART OF EFFORTS/THINKING

Discover and read more posts from Tamal Chakraborty
get started