Sandiway Fong. The University of Arizona. January 14th 2017.
(To see installed version, hover over (or touch) TreeDraw.)
Either download the file Tree Draw (remote).html to your device and load it into your browser or just click the link. Enter a bracketed expression (syntax given below) and hit ⮐ or Send. Rendered trees (in png format) may be dragged to other apps (MacOS) or saved (Control-Click:MacOS or long press:iOS).Notes:
||Examples 4 and 5:||Example 6:|
Underscore (_), see examples 2, 4 and 6:
when k>1 in terminalk, a triangle is drawn.
[<ɸ,ɸ>[DP_i 香港][T[T][v*[_DP_i _香港][v*[v*][β _10_ _]]]]]
β dominates an empty multi-word consisting of _10_ (= a 10 character blank) plus _ (= a zero-length blank).
Download the app here (6.4MB). Double-click it. You should see the same webpage appear.
There is no dock icon. The back-end process named treedrawpl runs as a daemon. Enter pid to see the treedrawpl process number. If nothing is displayed, the back-end may not be running.1
The program consists of a front-end and a back-end. The back-end program communicates via a websocket interface ws://host:8019/ to your browser. 8019 is the arbitrarily agreed-upon port number that hosts the socket. The program receives bracketed expressions from the browser and computes the layout of the trees. The front-end displays trees using the built-in html5 graphics in your browser, i.e. the browser functions as the GUI.
According to wikipedia (here), Safari 5/6, Firefox 6,IE 10, Chrome 14, Opera 12.10 and onwards fully support websockets. As long your browser support websockets, and that should be the case from about 2011 on, the program should work using your browser as the front-end.
The no-install version uses a back-end hosted at Osaka Kyoiku University (host=language.cc.osaka-kyoiku.ac.jp). 2 Advantage: no installation required and any computer/phone/tablet with a html5 browser should work. Disadvantages: your device must be able to access the internet and port 8019 for the websocket must not be blocked.
The MacOS version runs the back-end locally on your Mac (host=localhost). Advantages: no internet access required and runs much faster. Disadvantage: the program was developed on MacOS Sierra. Therefore only MacOS Sierra is supported and earlier versions of MacOS/OS X may not work.