Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
f1f3541
added basic lexer implementation except errors and indent stack
sash070 Feb 28, 2026
784c9cc
test1
Feb 2, 2026
cec0fc9
hi
Feb 2, 2026
fd74423
hi
Feb 2, 2026
20ce669
hi
AayushRanjan10 Feb 2, 2026
97ca4e4
hi
AayushRanjan10 Feb 2, 2026
c997a10
hlo
AayushRanjan10 Feb 2, 2026
7be629b
Implemented floating point numbers, two-character operators
AayushRanjan10 Mar 5, 2026
e7aff9a
added basic lexer implementation except errors and indent stack
sash070 Feb 28, 2026
8c53f4b
Minor tweak to improve readability
SujalKumar06 Mar 2, 2026
0a3ed36
Formatted code using make
SujalKumar06 Mar 2, 2026
9e3b623
Add clang-format installation and formatting check
SujalKumar06 Mar 2, 2026
233c620
Added additional keywords to the lexer
sash070 Mar 3, 2026
6da6884
Added new token types to TokenType enum
sash070 Mar 3, 2026
507e35a
empty commit to rerun the workflow
AayushRanjan10 Mar 6, 2026
7eb06b4
Implemented floating point numbers, two-character operators
AayushRanjan10 Mar 5, 2026
055cc06
Resolved Merge conflicts in lexer.cpp
AayushRanjan10 Mar 6, 2026
f7463ed
formatted code for new commits
SujalKumar06 Mar 6, 2026
c4b9e6c
Separate maps, indent stack, improved scanNumber
sash070 Mar 6, 2026
30d0f6b
Created tester for lexer, modified makefile to include testing
sash070 Mar 7, 2026
90ebaa5
Added \n and total dedent before EOF and few test cases
AayushRanjan10 Mar 28, 2026
3ca253a
Newline token before EOF and more test cases
sash070 Mar 28, 2026
b04892f
Corrected test cases
sash070 Mar 28, 2026
0e5abb4
remove and format things
SujalKumar06 Mar 28, 2026
e0852b6
Add clang-format installation and formatting check
SujalKumar06 Mar 2, 2026
1f2f12d
Update CI workflow to remove build step
SujalKumar06 Mar 2, 2026
d610b50
Merge branch 'main' into sash070
SujalKumar06 Mar 29, 2026
1517c12
Reviews and small changes including adding todos
SujalKumar06 Mar 29, 2026
1150665
Added FLOOREQUAL, POWEREQUAL, MODULOEQUAL
AayushRanjan10 Mar 29, 2026
964719f
Merge branch 'main' into sash070
SujalKumar06 Mar 29, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
56 changes: 28 additions & 28 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
---
Language: Cpp
BasedOnStyle: Google

# Basic Formatting
IndentWidth: 4
ColumnLimit: 100
TabWidth: 4
UseTab: Never

# Braces and Spacing
BreakBeforeBraces: Attach
AllowShortBlocksOnASingleLine: Empty
AllowShortFunctionsOnASingleLine: Empty
AllowShortIfStatementsOnASingleLine: Never
AllowShortLoopsOnASingleLine: false

# Pointers and References (e.g., int* ptr instead of int *ptr)
PointerAlignment: Left

# Alignment for readability
AlignConsecutiveAssignments: true
AlignConsecutiveDeclarations: false
AlignOperands: Align
AlignTrailingComments: true

# Includes
SortIncludes: true
---
Language: Cpp
BasedOnStyle: Google
# Basic Formatting
IndentWidth: 4
ColumnLimit: 100
TabWidth: 4
UseTab: Never
# Braces and Spacing
BreakBeforeBraces: Attach
AllowShortBlocksOnASingleLine: Empty
AllowShortFunctionsOnASingleLine: Empty
AllowShortIfStatementsOnASingleLine: Never
AllowShortLoopsOnASingleLine: false
# Pointers and References (e.g., int* ptr instead of int *ptr)
PointerAlignment: Left
# Alignment for readability
AlignConsecutiveAssignments: true
AlignConsecutiveDeclarations: false
AlignOperands: Align
AlignTrailingComments: true
# Includes
SortIncludes: true
91 changes: 47 additions & 44 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,44 +1,47 @@
#build directory
build/

# Prerequisites
*.d

# Compiled Object files
*.slo
*.lo
*.o
*.obj

# Precompiled Headers
*.gch
*.pch

# Linker files
*.ilk

# Debugger Files
*.pdb

# Compiled Dynamic libraries
*.so
*.dylib
*.dll

# Fortran module files
*.mod
*.smod

# Compiled Static libraries
*.lai
*.la
*.a
*.lib

# Executables
*.exe
*.out
*.app

# debug information files
*.dwo
#build directory
build/

# Prerequisites
*.d

# Compiled Object files
*.slo
*.lo
*.o
*.obj

# Precompiled Headers
*.gch
*.pch

# Linker files
*.ilk

# Debugger Files
*.pdb

# Compiled Dynamic libraries
*.so
*.dylib
*.dll

# Fortran module files
*.mod
*.smod

# Compiled Static libraries
*.lai
*.la
*.a
*.lib

# Executables
*.exe
*.out
*.app

# debug information files
*.dwo

# vscode
.vscode/
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"makefile.configureOnOpen": true
}
42 changes: 21 additions & 21 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
MIT License

Copyright (c) 2026 Sujal Kumar

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
MIT License
Copyright (c) 2026 Sujal Kumar
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
144 changes: 0 additions & 144 deletions Lexer/LexerClasses - Part 1.cpp

This file was deleted.

Loading
Loading