The following is a C++ implementation of a lexical analyzer for token, including a main driver function for testing purposes
Token Lexeme
IDENT result
ASSIGN_OP =
IDENT oldsum
SUB_OP -
IDENT value
DIV_OP /
INT_LIT 100
SEMICOLON ;
==============
- Install software
- Git https://git-for-windows.github.io/ Select a file summarized as "Full installer for official Git for Windows" with the highest version
- TDM-GCC
http://tdm-gcc.tdragon.net/ - codeblocks
http://www.codeblocks.org/downloads
2.download program
- Create an empty folder anywhere
- In explorer right click and select "Git Bash" then git clone URL
set URL https://github.com/abdulmlik/simple-lexical-scanner.git enter
- Build
- Open "Editor code.cbp" with codeblocks.
- Compile.
===========
This project is a homework
For reference use only.
This project is licensed under BSD-2-Clause.