allow us to combine data from multiple tables
- Inner Join
- Outer Join
- Left Outer Join
 
- Right Outer Join
| const std = @import("std"); | |
| const Self = @This(); | |
| source: [:0]const u8, | |
| pos: usize = 0, | |
| state: State = .start, | |
| pub fn next(self: *Self) !Token { | |
| var start = self.pos; | |
| var text_end: usize = 0; | 
| import Parser from "npm:tree-sitter"; | |
| import treeSitterTypescript from "npm:tree-sitter-typescript"; | |
| const code = ` | |
| /** | |
| * This is a doc comment | |
| * | |
| * alsdkfjlkj | |
| */ | |
| function foo(a: A): void; | 
| src_dir ?= src | |
| build_dir ?= build/ | |
| main ?= main | |
| mode ?= debug | |
| arch ?= $(shell uname -m) | |
| os ?= $(shell uname -s | tr '[:upper:]' '[:lower:]') | |
| ifeq ($(os), linux) | |
| abi = musl | 
| const std = @import("std"); | |
| const log = std.log.scoped(.lexer); | |
| const Allocator = std.mem.Allocator; | |
| const ArenaAllocator = std.heap.ArenaAllocator; | |
| const utils = @import("utils.zig"); | |
| pub const tok = @import("token.zig"); | |
| pub const Token = tok.Token; | |
| arena: ArenaAllocator, | 
| /// A simple Result type for C inspired by Rust's Result type. | |
| /// Should work with any C version but only tested with C23. | |
| /// | |
| /// Example: | |
| /// | |
| /// ```c | |
| /// #include <stdio.h> // fprintf | |
| /// #include <stdlib.h> // exit | |
| /// #include <result.h> // this file | |
| /// | 
| const std = @import("std"); | |
| pub fn build(b: *std.Build) void { | |
| const target = b.standardTargetOptions(.{}); | |
| const optimize = b.standardOptimizeOption(.{}); | |
| const exe = b.addExecutable(.{ | |
| .name = "ziglibsql", | |
| .root_source_file = b.path("src/main.zig"), | 
| --[[ | |
| ===================================================================== | |
| ==================== READ THIS BEFORE CONTINUING ==================== | |
| ===================================================================== | |
| Kickstart.nvim is *not* a distribution. | |
| Kickstart.nvim is a template for your own configuration. | |
| The goal is that you can read every line of code, top-to-bottom, understand | 
| const len = +(Deno.args[0] ?? "32"); | |
| const buf = new Uint8Array(len); | |
| crypto.getRandomValues(buf); | |
| const base64 = btoa(String.fromCharCode(...buf)); | |
| console.log(base64); | 
| import { serve } from "https://deno.land/std/http/server.ts"; | |
| import { app } from "./routes/router.ts"; | |
| import { $env } from "./utils/env.ts"; | |
| serve(app.fetch, { | |
| port: $env.port, | |
| }); |