1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

compiler2: proof of concept cgen

This commit is contained in:
Alexander Medvednikov
2019-12-24 20:54:43 +03:00
parent fe8a6abb41
commit 8d9f89e728
6 changed files with 193 additions and 21 deletions

View File

@ -29,6 +29,9 @@ pub fn (b mut Builder) write_b(data byte) {
}
pub fn (b mut Builder) write(s string) {
if s == '' {
return
}
b.buf.push_many(s.str, s.len)
// for c in s {
// b.buf << c