https://github.com/d06i/cpplexer
Simple C++ Lexer
https://github.com/d06i/cpplexer
cpp lexer
Last synced: 11 months ago
JSON representation
Simple C++ Lexer
- Host: GitHub
- URL: https://github.com/d06i/cpplexer
- Owner: d06i
- Created: 2024-11-04T17:22:21.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-10T18:54:52.000Z (over 1 year ago)
- Last Synced: 2025-07-30T12:33:50.690Z (11 months ago)
- Topics: cpp, lexer
- Language: C++
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Output:
````
Example: float test_f( float q ) {
float z_Z = 13;
int z = 12 << 2;
if( z != 54){
z = z++;}
return q * z * 2592.44; }
Keyword: float
Identifier: test_f
Seperator: (
Keyword: float
Identifier: q
Seperator: )
Seperator: {
Keyword: float
Identifier: z_Z
Operator: =
Number: 13
Operator: ;
Keyword: int
Identifier: z
Operator: =
Number: 12
Operator: <<
Number: 2
Operator: ;
Keyword: if
Seperator: (
Identifier: z
Operator: !=
Number: 54
Seperator: )
Seperator: {
Identifier: z
Operator: =
Identifier: z
Operator: ++
Operator: ;
Seperator: }
Keyword: return
Identifier: q
Operator: *
Identifier: z
Operator: *
Number: 2592.44
Operator: ;
Seperator: }
````