prettify.lang
Class LangLisp

java.lang.Object
  extended by prettify.lang.Lang
      extended by prettify.lang.LangLisp

public class LangLisp
extends Lang

This is similar to the lang-lisp.js in JavaScript Prettify. All comments are adapted from the JavaScript Prettify.

Registers a language handler for Common Lisp and related languages. To use, include prettify.js and this file in your HTML page. Then put your code in an HTML tag like

(my lisp code)
The lang-cl class identifies the language as common lisp. This file supports the following language extensions: lang-cl - Common Lisp lang-el - Emacs Lisp lang-lisp - Lisp lang-scm - Scheme lang-lsp - FAT 8.3 filename version of lang-lisp. I used http://www.devincook.com/goldparser/doc/meta-language/grammar-LISP.htm as the basis, but added line comments that start with ; and changed the atom production to disallow unquoted semicolons. "Name" = 'LISP' "Author" = 'John McCarthy' "Version" = 'Minimal' "About" = 'LISP is an abstract language that organizes ALL' | 'data around "lists".' "Start Symbol" = [s-Expression] {Atom Char} = {Printable} - {Whitespace} - [()"\''] Atom = ( {Atom Char} | '\'{Printable} )+ [s-Expression] ::= [Quote] Atom | [Quote] '(' [Series] ')' | [Quote] '(' [s-Expression] '.' [s-Expression] ')' [Series] ::= [s-Expression] [Series] | [Quote] ::= '' !Quote = do not evaluate | I used Practical Common Lisp as the basis for the reserved word list.

Author:
mikesamuel@gmail.com

Field Summary
 
Fields inherited from class prettify.lang.Lang
extendedLangs, fallthroughStylePatterns, shortcutStylePatterns
 
Constructor Summary
LangLisp()
           
 
Method Summary
static java.util.List<java.lang.String> getFileExtensions()
           
 
Methods inherited from class prettify.lang.Lang
getExtendedLangs, getFallthroughStylePatterns, getShortcutStylePatterns, setExtendedLangs, setFallthroughStylePatterns, setShortcutStylePatterns
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LangLisp

public LangLisp()
Method Detail

getFileExtensions

public static java.util.List<java.lang.String> getFileExtensions()