emk / dicer

WORK IN PROGRESS: A tiny dice-rolling program.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dicer: A tiny utility for rolling dice (WORK IN PROGRESS)

Many games involve rolling dice. In particular, RPGs tend to use many different kinds of dice, and they have elaborate rules for rolling them. There are various popular syntaxes for dice, including:

  1. Roll20
  2. Avrae

From a programming language standpoint, these expressions are fascinatingly complex. This repository contains some personal experiments for parsing these expressions.

This repository is also a demonstration of how to implement a toy programming language in Rust, including parsing and pretty error messages.

I do not expect this utility to be useful for anyone but me at this point.

About

WORK IN PROGRESS: A tiny dice-rolling program.


Languages

Language:Rust 100.0%