Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
8ae90c2
cahnge
sash070 Feb 2, 2026
fd7bb9d
test1
Feb 2, 2026
0f08280
hi
Feb 2, 2026
9f279e5
hi
Feb 2, 2026
1372a8c
hi
AayushRanjan10 Feb 2, 2026
82657a9
hi
AayushRanjan10 Feb 2, 2026
7149b44
hlo
AayushRanjan10 Feb 2, 2026
b220e9b
change
sash070 Feb 2, 2026
81b9a99
added basic lexer implementation except errors and indent stack
sash070 Feb 28, 2026
e743039
added basic lexer implementation except errors and indent stack
sash070 Feb 28, 2026
60a3910
added basic lexer implementation except errors and indent stack
sash070 Feb 28, 2026
fcee90a
Minor tweak to improve readability
SujalKumar06 Mar 2, 2026
5216e68
Simplify CI workflow by removing configure and checks
SujalKumar06 Mar 2, 2026
f005aa8
Adding format tools to the repo.
SujalKumar06 Mar 2, 2026
51caa2a
Formatted code using make
SujalKumar06 Mar 2, 2026
697c597
Merge branch 'main' into sash070
SujalKumar06 Mar 2, 2026
5fd7587
Added additional keywords to the lexer
sash070 Mar 3, 2026
a963eb2
Added new token types to TokenType enum
sash070 Mar 3, 2026
c283021
Implemented floating point numbers, two-character operators
AayushRanjan10 Mar 5, 2026
86eb761
empty commit to rerun the workflow
AayushRanjan10 Mar 6, 2026
cda1bbe
Implemented floating point numbers, two-character operators
AayushRanjan10 Mar 5, 2026
e9193a6
Resolved Merge conflicts in lexer.cpp
AayushRanjan10 Mar 6, 2026
fe165b0
formatted code for new commits
SujalKumar06 Mar 6, 2026
91b24d4
Merge branch 'AayushRanjan10' of github.com:SujalKumar06/pydotcpp int…
sash070 Mar 6, 2026
a63ba08
Merge branch 'sash070' of github.com:SujalKumar06/pydotcpp into sash070
sash070 Mar 6, 2026
21925eb
Separate maps, indent stack, improved scanNumber
sash070 Mar 6, 2026
6b72840
Created tester for lexer, modified makefile to include testing
sash070 Mar 7, 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
50 changes: 25 additions & 25 deletions .github/workflows/c-cpp.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
name: C/C++ CI

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Install clang-format
run: |
sudo apt-get update
sudo apt-get install -y clang-format

- name: Check Formatting
run: make check-format

- name: Build project
run: make
name: C/C++ CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install clang-format
run: |
sudo apt-get update
sudo apt-get install -y clang-format
- name: Check Formatting
run: make check-format
- name: Build project
run: make
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.
Loading