Skip to content

Instantly share code, notes, and snippets.

@bobbicodes
Last active July 3, 2019 00:04
Show Gist options
  • Select an option

  • Save bobbicodes/dc265f68ab2ec2aec246a42a8d50c196 to your computer and use it in GitHub Desktop.

Select an option

Save bobbicodes/dc265f68ab2ec2aec246a42a8d50c196 to your computer and use it in GitHub Desktop.
Demonstrates loading libs into KLIPSE, and code from gist. We use a self-hosted fork of Instaparse which incidentally requires us to preload the parser from here: https://gist.github.com/porkostomus/5e7b70679a082b34acaf5c83b48918e1. Otherwise, the `<` and `>` symbols will be escaped and break it.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Instaparse-klipse</title>
<link rel="stylesheet" type="text/css" href="https://storage.googleapis.com/app.klipse.tech/css/codemirror.css">
<script>
window.klipse_settings = {
selector: '.language-klipse',
};
</script>
</head>
<body>
<h1><center>Instaparse-klipse</center></h1>
<pre><code class="language-klipse" data-external-libs="https://raw.githubusercontent.com/hlolli/instaparse-lumo/master/src" >
(ns algae
(:require [instaparse.core :as insta]))
</code></pre>
<pre><code class="language-klipse" data-gist-id="https://gist.github.com/porkostomus/5e7b70679a082b34acaf5c83b48918e1">
</code></pre>
<script src="https://storage.googleapis.com/app.klipse.tech/plugin/js/klipse_plugin.js"></script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment