先放代码:https://github.com/henix/jillus
- 把序列化的数据变成你自己的数据结构(参见:三大 DSL)
- 处理的数据结构通常带递归
- EBNF - 请参见编译教科书
| #!/bin/bash | |
| BRIFILE=/sys/class/backlight/acpi_video0/brightness | |
| if [ $# -lt 1 ]; then | |
| cat $BRIFILE | |
| else | |
| echo $1 > $BRIFILE | |
| echo $1 > /root/.bri | |
| fi |
先放代码:https://github.com/henix/jillus
| set default-bg "#C7EDCC" | |
| set recolor true | |
| set recolor-lightcolor "#C7EDCC" | |
| set recolor-darkcolor "#000000" |
| /** | |
| * SyntaxHighlighter brush for Tcl | |
| * | |
| * more info: | |
| * http://blog.henix.info/blog/tcl-syntaxhighlighter-brush.html | |
| * | |
| * @version 0.3 | |
| * | |
| * @copyright | |
| * Copyright (C) 2011-2012 henix. |