Skip to content

Instantly share code, notes, and snippets.

@ndabas
ndabas / PEG.ps1
Last active December 16, 2021 20:01
# https://github.com/stedolan/jq/wiki/Parsing-Expression-Grammars
<#
Sequence: e1 e2 e1 | e2
Ordered choice: e1 / e2 e1 // e2
Zero-or-more: e* star(E)
One-or-more: e+ plus(E)
Optional: e? optional(E)
And-predicate: &e amp(E)
Not-predicate: !e neg(E)
@ndabas
ndabas / README.md
Last active October 5, 2015 18:07 — forked from jterrace/lang-llvm.js
LLVM plugin for google-code-prettify

LLVM plugin for google-code-prettify

lang-llvm.js adds LLVM assembly language syntax highlighting support to google-code-prettify. I wrote this in response to a question on StackOverflow.

Usage

See the google-code-prettify README for instructions on how to setup google-code-prettify. Then:

  1. Include lang-llvm.js in your HTML head tag, after prettify.js. This file is now included in the official google-code-prettify distribution.
  2. Markup your LLVM code like this: