Skip to content

Instantly share code, notes, and snippets.

View OliveIsAWord's full-sized avatar
🥺
lambda calculus hobbyist

Olive OliveIsAWord

🥺
lambda calculus hobbyist
  • 16:14 (UTC -07:00)
View GitHub Profile
@OliveIsAWord
OliveIsAWord / configuration.nix
Created September 6, 2023 04:54
my nixos config
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
@OliveIsAWord
OliveIsAWord / parser_combinator.c
Created April 21, 2023 09:32
An approach to parser combinators in C to lex source code
#include <assert.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
bool is_whitespace(char c) {
return c == ' ' || c == '\n' || c == '\r' || c == '\t';
}