Lexical Analyzer (Scanner) of A Custom Programming Language that Similar to C++ Written with FLex & C Lang.
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.
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.
(Also you can see the tokes and their id-no. in c++, KeyWords.docx file.)
Thanks! 😎
Made with ❤️, C & FLex.