Skip to content

Instantly share code, notes, and snippets.

View dingsdax's full-sized avatar
🐢
slow coding

Joesi D. dingsdax

🐢
slow coding
View GitHub Profile
@dingsdax
dingsdax / Makefile
Created February 27, 2025 22:12 — forked from lnznt/Makefile
Mini Prolog Parser (for Ruby with Racc)
RACC := racc
RACCFLAGS := -g
SOURCES := prolog_parser.ry
TARGETS := ${patsubst %.ry, %.rb, ${SOURCES}}
.SUFFIXES : .rb .ry
%.rb : %.ry
require "bundler/inline"
# allows for declaring a Gemfile inline in a ruby script
# optionally installing any gems that aren't already installed
gemfile(true) do
source "https://rubygems.org"
gem "rails", "6.1.4.1"
gem "sqlite3"
gem "graphql", "~> 1.12"