Skip to content

Commit 04bda59

Browse files
committed
زهقت
1 parent fe55470 commit 04bda59

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

scanner/include/scanner.hpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,17 @@ namespace TINY
131131
* @return True if an unclosed comment was detected, false otherwise.
132132
*/
133133
bool skipWhitespaceAndComments();
134+
135+
/**
136+
* @brief Checks if a character is an operator or delimiter.
137+
*
138+
* This method determines if the given character is one of the recognized
139+
* operators or delimiters in the TINY language.
140+
*
141+
* @param c The character to check.
142+
* @return True if the character is an operator or delimiter, false otherwise.
143+
*/
144+
bool isOperatorOrDelimiter(char c) const;
134145
};
135146
} // namespace SCANNER
136147
} // namespace TINY

scanner/src/scanner.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
*/
99

1010
#include "scanner.hpp"
11-
#include <cctype> // For character classification functions
12-
#include <stdexcept> // For exception handling (if needed)
11+
#include <cctype>
12+
#include <stdexcept>
1313
#include <stack>
1414

1515
namespace TINY

0 commit comments

Comments
 (0)