about summary refs log tree commit diff stats
path: root/ranger
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | | | | | core.loader: fix bugs after mergehut2010-10-081-2/+1
| | | | | | | | |
| * | | | | | | | Merge branch 'master' into cphut2010-10-0835-359/+451
| |\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: ranger/__init__.py ranger/core/fm.py ranger/core/main.py ranger/core/helper.py ranger/core/loader.py
| * | | | | | | | | foohut2010-09-212-24/+30
| | | | | | | | | |
| * | | | | | | | | Merge branch 'master' into cphut2010-09-1646-1057/+1195
| |\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: ranger/__main__.py ranger/core/actions.py
| * | | | | | | | | | core.loader: catch "select.error"shut2010-05-161-5/+8
| | | | | | | | | | |
| * | | | | | | | | | core.actions: improved paste()hut2010-05-152-6/+12
| | | | | | | | | | |
| * | | | | | | | | | core.loader: finished CommandLoaderhut2010-05-152-7/+30
| | | | | | | | | | |
| * | | | | | | | | | Merge branch 'master' into cphut2010-05-159-153/+147
| |\ \ \ \ \ \ \ \ \ \
| * \ \ \ \ \ \ \ \ \ \ Merge branch 'master' into cphut2010-05-1426-212/+475
| |\ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: ranger/__main__.py
| * | | | | | | | | | | | core.loader: bugfixhut2010-04-281-1/+1
| | | | | | | | | | | | |
| * | | | | | | | | | | | messing aroundhut2010-04-273-9/+41
| | | | | | | | | | | | |
| * | | | | | | | | | | | Merge branch 'master' into cphut2010-04-272-64/+41
| |\ \ \ \ \ \ \ \ \ \ \ \
| * \ \ \ \ \ \ \ \ \ \ \ \ Merge branch 'master' into cphut2010-04-2712-36/+116
| |\ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | <
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Mu - counters.mu</title>
<meta name="Generator" content="Vim/7.4">
<meta name="plugin-version" content="vim7.4_v1">
<meta name="syntax" content="none">
<meta name="settings" content="use_css,pre_wrap,no_foldcolumn,expand_tabs,prevent_copy=">
<meta name="colorscheme" content="minimal">
<style type="text/css">
<!--
pre { white-space: pre-wrap; font-family: monospace; color: #eeeeee; background-color: #080808; }
body { font-family: monospace; color: #eeeeee; background-color: #080808; }
* { font-size: 1.05em; }
.Comment { color: #9090ff; }
.Constant { color: #00a0a0; }
.Special { color: #ff6060; }
.muControl { color: #c0a020; }
.muRecipe { color: #ff8700; }
-->
</style>

<script type='text/javascript'>
<!--

-->
</script>
</head>
<body>
<pre id='vimCodeElement'>
<span class="Comment"># example program: maintain multiple counters with isolated lexical scopes</span>
<span class="Comment"># (spaces)</span>

<span class="muRecipe">recipe</span> new-counter [
  <span class="Constant">default-space</span>:address:array:location<span class="Special"> &lt;- </span>new location:type, <span class="Constant">30:literal</span>
  n:number<span class="Special"> &lt;- </span><span class="Constant">next-ingredient</span>
  <span class="muControl">reply</span> <span class="Constant">default-space</span>:address:array:location
]

<span class="muRecipe">recipe</span> increment-counter [
  <span class="Constant">local-scope</span>
  0:address:array:location/names:new-counter<span class="Special"> &lt;- </span><span class="Constant">next-ingredient</span>  <span class="Comment"># setup outer space; it *must* come from 'new-counter'</span>
  x:number<span class="Special"> &lt;- </span><span class="Constant">next-ingredient</span>
  n:number/space:1<span class="Special"> &lt;- </span>add n:number/space:1, x:number
  <span class="muControl">reply</span> n:number/space:1
]

<span class="muRecipe">recipe</span> main [
  <span class="Constant">local-scope</span>
  <span class="Comment"># counter A</span>
  a:address:array:location<span class="Special"> &lt;- </span>new-counter <span class="Constant">34:literal</span>
  <span class="Comment"># counter B</span>
  b:address:array:location<span class="Special"> &lt;- </span>new-counter <span class="Constant">23:literal</span>
  <span class="Comment"># increment both by 2 but in different ways</span>
  increment-counter a:address:array:location, <span class="Constant">1:literal</span>
  b-value:number<span class="Special"> &lt;- </span>increment-counter b:address:array:location, <span class="Constant">2:literal</span>
  a-value:number<span class="Special"> &lt;- </span>increment-counter a:address:array:location, <span class="Constant">1:literal</span>
  <span class="Comment"># check results</span>
  $print <span class="Constant">[Contents of counters</span>
<span class="Constant">]</span>
  <span class="Comment"># trailing space in next line is to help with syntax highlighting</span>
  $print <span class="Constant">[a: ]</span>, a-value:number, <span class="Constant">[ b: ]</span>, b-value:number, <span class="Constant">[ </span>
<span class="Constant">]</span>
]
</pre>
</body>
</html>
<!-- vim: set foldmethod=manual : -->
* | | | | | | | | | | gui.widgets.statusbar: Fixed minor bug in statusbarhut2010-10-061-1/+1 | | | | | | | | | | | * | | | | | | | | | | defaults.commands: Fixed :cd command without argumenthut2010-10-051-3/+2 | | | | | | | | | | | * | | | | | | | | | | gui.widgets.titlebar: truncate dirnames in tab titleshut2010-10-041-3/+9 | | | | | | | | | | | * | | | | | | | | | | gui.color: fixed ranger.gui.color.remove_attrhut2010-10-041-1/+1 | | | | | | | | | | | * | | | | | | | | | | defaults.commands: new commands :{load,save}_copy_bufferhut2010-10-031-0/+36 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These allow you to share copy buffers between ranger instances. * | | | | | | | | | | gui.widgets.browsercolumn: more robust check for copied fileshut2010-10-031-1/+3 | | | | | | | | | | | * | | | | | | | | | | defaults.commands: avoid overwriting the builtin set classhut2010-10-031-1/+2 | | | | | | | | | | | * | | | | | | | | | | core.fm: Don't check bookmarks when not neededhut2010-10-023-4/+6 | | | | | | | | | | | * | | | | | | | | | | api.commands, api.keys: added dummies that allow pydoc to be generatedhut2010-10-022-0/+13 | | | | | | | | | | | * | | | | | | | | | | widgets.browsercolumn: display "~" when truncating filenameshut2010-10-021-7/+19 | | | | | | | | | | | * | | | | | | | | | | colorschemes.jungle: updated jungle colorschemehut2010-10-021-1/+1 | | | | | | | | | | | * | | | | | | | | | | colorschemes.snow: updated snow colorschemehut2010-10-021-1/+4 | | | | | | | | | | | * | | | | | | | | | | ranger.__init__: cleaned uphut2010-10-022-24/+13 | | | | | | | | | | | * | | | | | | | | | | a little restructurationhut2010-10-0221-270/+269 | | | | | | | | | | | * | | | | | | | | | | fsobject.fsobject: Fixed order in natural sorthut2010-10-021-3/+3 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before: foo2.txt foo3.txt foo.txt After: foo.txt foo2.txt foo3.txt * | | | | | | | | | | fsobject.fsobject: changed "numerical" sort to "natural" sorthut2010-10-013-16/+22 | | | | | | | | | | | * | | | | | | | | | | fsobject.directory: added numerical sorthut2010-10-012-3/+21 | | | | | | | | | | | * | | | | | | | | | | gui.ui: Disable mouse when console is openhut2010-10-011-2/+2 | | | | | | | | | | | * | | | | | | | | | | Revert 5 commits concerning utf (due to very poor performance)hut2010-09-304-102/+72 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commits: 8c8e7282b3b4238a3b7cf981d9e5715b11076419 5cb67eeb96d337b55deea20131fc44a3d5447251 512f386be8753775ec824a6d9cbaf6527d50eda4 d4900452fca51685349966d527d173fdefe83f08 e6dda13a71168f9ec4a1e4844edad5a3257803e9 * | | | | | | | | | | ext.utfwidth: Compatibility with both py2.6 and py3.1hut2010-09-304-50/+94 | | | | | | | | | | | * | | | | | | | | | | gui.curses_shortcuts: bugfix, simplificationhut2010-09-301-27/+9 | | | | | | | | | | | * | | | | | | | | | | ext.utfwidth: updated algorithmshut2010-09-302-34/+20 | | | | | | | | | | |