Build a Compiler in C language

Hey dev community! đź‘‹

It’s Amir back again with a new article and today, I’m excited to share a new tutorial where I walk you through creating a simple arithmetic expression parser and code generator in C.

I hope this guide will help you understand t…


This content originally appeared on DEV Community and was authored by Bek Brace

Hey dev community! đź‘‹

It's Amir back again with a new article and today, I'm excited to share a new tutorial where I walk you through creating a simple arithmetic expression parser and code generator in C.

I hope this guide will help you understand the basics of tokenizing, validating, and evaluating arithmetic expressions, and then generating assembly-like instructions.

đź“š What You'll Learn:
Tokenize arithmetic expressions ✂️
Validate and evaluate expressions âś…
Generate assembly-like instructions 🛠️

Check out the video tutorial here:

Creating this one was really really fun, especially that I am not experienced in C, I wanted to share this little project with all of you.

Here's the code:
đź“‚ GitHub: https://github.com/BekBrace/C-Compiler

Let me know what you think, your feedback is very valuable.
Thanks and I will see you in the next one :)


This content originally appeared on DEV Community and was authored by Bek Brace


Print Share Comment Cite Upload Translate Updates
APA

Bek Brace | Sciencx (2024-07-16T19:58:39+00:00) Build a Compiler in C language. Retrieved from https://www.scien.cx/2024/07/16/build-a-compiler-in-c-language/

MLA
" » Build a Compiler in C language." Bek Brace | Sciencx - Tuesday July 16, 2024, https://www.scien.cx/2024/07/16/build-a-compiler-in-c-language/
HARVARD
Bek Brace | Sciencx Tuesday July 16, 2024 » Build a Compiler in C language., viewed ,<https://www.scien.cx/2024/07/16/build-a-compiler-in-c-language/>
VANCOUVER
Bek Brace | Sciencx - » Build a Compiler in C language. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/07/16/build-a-compiler-in-c-language/
CHICAGO
" » Build a Compiler in C language." Bek Brace | Sciencx - Accessed . https://www.scien.cx/2024/07/16/build-a-compiler-in-c-language/
IEEE
" » Build a Compiler in C language." Bek Brace | Sciencx [Online]. Available: https://www.scien.cx/2024/07/16/build-a-compiler-in-c-language/. [Accessed: ]
rf:citation
» Build a Compiler in C language | Bek Brace | Sciencx | https://www.scien.cx/2024/07/16/build-a-compiler-in-c-language/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.