Skip to content

kochetov-dmitrij/cpp-lexical-analyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

C++ lexical analyzer

GCC compiler options

g++ -std=c++11 main.cpp -o cpp_lexical_analyzer

Example

Input

while(!(input_string = find_next_token(input_string)).empty()) {}

Output

while | keywords
( | punctuators
! | operators
( | punctuators
input_string | identifiers
= | operators
find_next_token | identifiers
( | punctuators
input_string | identifiers
) | punctuators
) | punctuators
. | operators
empty | identifiers
( | punctuators
) | punctuators
) | punctuators
{ | punctuators
} | punctuators

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages