summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkdx <kikoodx@paranoici.org>2024-03-11 22:33:37 +0100
committerkdx <kikoodx@paranoici.org>2024-03-11 22:37:59 +0100
commitb9807c5f25b062246dd587917e271522b38eeed5 (patch)
tree17fadc24bce34186470b2b07810cff9a97785351
parent3079ca9f9f4c5e887a4ceef14132a3c73701faf1 (diff)
downloado7z-b9807c5f25b062246dd587917e271522b38eeed5.tar.gz
le comité golemique a voté
-rw-r--r--src/Lexer.zig2
-rw-r--r--test.o710
2 files changed, 6 insertions, 6 deletions
diff --git a/src/Lexer.zig b/src/Lexer.zig
index 67bb94b..422f67a 100644
--- a/src/Lexer.zig
+++ b/src/Lexer.zig
@@ -15,7 +15,7 @@ const number = "0123456789";
const alpha = lower ++ upper;
const alnum = alpha ++ number;
const whitespaces = " \t\n\r";
-const punct = "(){}[]=+-*/%.;:|&^\\";
+const punct = "(){}[]=+-*/%.,;:|&^\\~$";
pub const Error = error{
UnclosedCharLitteral,
UnclosedStringLitteral,
diff --git a/test.o7 b/test.o7
index c3f540c..e3fc844 100644
--- a/test.o7
+++ b/test.o7
@@ -6,12 +6,12 @@ let zied = golem("large");
let doc = @as(Prof, zied);
pub fn main(argv: [][]u8) i32 {
- std::io::puts("Hello, World!");
- let file = std::io::open("file.txt", "rb");
- defer file\std::io::close();
- let content = file\std::io::read();
+ std~io~puts $ "Hello, World!";
+ let file = std~io~open $ "file.txt", "rb";
+ defer file:std~io~close();
+ let content = file:std~io~read();
}
fn span(s: [*]u8) []u8 {
- return @slice(s, std::string::len(s));
+ return @slice(s, std~string~len(s));
}