Skip to content

Es-Kiani/pseudo-cpp-compiler

Repository files navigation

Welcome to My Compiler Project Repository

⭐ Star me on GitHub — it motivates me a lot!

Lexical Analyzer (Scanner) of A Custom Programming Language that Similar to C++ Written with FLex & C Lang.

🧰 Requirements

You must have installed Flex (with YACC or BISON) & a standard C compiler on your system to compile the source files by own. Also you can use my pre-compiled source codes if you not have these compilers.

📡 Usage:

At the first you can compile the myLang.lex file with FLex on your own system Or you can use my pre-compiled lex.yy.c file where in current repo. Next you must to compile myLang.c & lex.yy.c with a standard C lang compiler (rec: gcc) and getting output as an one executable file.

And at the end you can run a file and passing the source code to tokenizing.

📷 Example:

(Also you can see the tokes and their id-no. in c++, KeyWords.docx file.)

-----------------------------------------------------

Thanks! 😎

Made with ❤️, C & FLex.

⚖️ License

About

A pseudo c++ compiler (just lexical analyzer) written with C & FLex

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published