Compare commits

...

2 Commits

Author SHA1 Message Date
fddbd9b03b Change a function to remove C++23 dependancy
All checks were successful
ci/woodpecker/push/workflow Pipeline was successful
2025-10-07 14:08:44 +03:00
0fc3ab2ea8 update Readme.md 2025-10-07 14:08:44 +03:00
2 changed files with 4 additions and 3 deletions

View File

@@ -12,7 +12,7 @@ The end goal is to emit bytecode. The bytecode format is not decided yet.
All you need is:
- CMake
- An appropriate C++ compiler
- A modern C++ compiler
- The [Catch2](https://github.com/catchorg/Catch2) library v3 or higher installed on your system
Once you have these, you can build with:

View File

@@ -11,8 +11,9 @@ using namespace std;
Parser::Parser(Lexer l) : ts(l.collect()) {}
void Parser::feed(Lexer l) {
ts.append_range(l.collect());
void Parser::feed(Lexer lexer) {
auto l = lexer.collect();
ts.insert(ts.end(), l.begin(), l.end());
}
Token Parser::get_token() {