Tuesday, July 10, 2012

Penn Treebank Format Parsing Grammar

start with tree_list

tree_list := tree
           | tree_list tree
tree      := ( node )
node      := leaf
           | TOKEN node_list
leaf      := TOKEN TOKEN
           | leaf TOKEN
node_list := ( node )
           | node_list ( node )
TOKEN     := ([^\)\(\r\n \t]+)


Dowload: JLex codeJCup code

Sunday, July 8, 2012

jEdit, one instance only on Ubuntu

Whenever I open an additional file once jEdit is already running on Ubuntu, jEdit opens an additional window into which it loads the file. How to solve it?

1. find the file "/usr/share/jedit/jedit.sh"
2. add "-background -reuseview" between ~.jEdit and "$@"

Tuesday, July 3, 2012