diff options
| author | fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> | 2010-03-20 20:21:56 +0000 |
|---|---|---|
| committer | fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> | 2010-03-20 20:21:56 +0000 |
| commit | 8ed6865a8a36ff3a7347e4ac72d869c47281e966 (patch) | |
| tree | 960a06323374de5908ad71b5a0f7a273f28fa892 /web/code.text | |
| parent | 56f08b5f80d39af274b273d5296e04672250411d (diff) | |
Removed web directory.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1927 788f1e2b-df1e-0410-8736-df70ead52e1b
Diffstat (limited to 'web/code.text')
| -rw-r--r-- | web/code.text | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/web/code.text b/web/code.text deleted file mode 100644 index c15ccfc9b..000000000 --- a/web/code.text +++ /dev/null @@ -1,45 +0,0 @@ -% Code with syntax highlighting - -Here's what a delimited code block looks like: - - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ {.haskell} - -- | Inefficient quicksort in haskell. - qsort :: (Enum a) => [a] -> [a] - qsort [] = [] - qsort (x:xs) = qsort (filter (< x) xs) ++ [x] ++ - qsort (filter (>= x) xs) - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -And here's how it looks after syntax highlighting: - -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ {.haskell} --- | Inefficient quicksort in haskell. -qsort :: (Enum a) => [a] -> [a] -qsort [] = [] -qsort (x:xs) = qsort (filter (< x) xs) ++ [x] ++ - qsort (filter (>= x) xs) -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -Here's some python, with numbered lines (specify `{.python .numberLines}`): - -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ {.python .numberLines} -class FSM(object): - -"""This is a Finite State Machine (FSM). -""" - -def __init__(self, initial_state, memory=None): - - """This creates the FSM. You set the initial state here. The "memory" - attribute is any object that you want to pass along to the action - functions. It is not used by the FSM. For parsing you would typically - pass a list to be used as a stack. """ - - # Map (input_symbol, current_state) --> (action, next_state). - self.state_transitions = {} - # Map (current_state) --> (action, next_state). - self.state_transitions_any = {} - self.default_transition = None - ... -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - |
