-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheval.tk
More file actions
executable file
·30 lines (25 loc) · 788 Bytes
/
eval.tk
File metadata and controls
executable file
·30 lines (25 loc) · 788 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/usr/bin/env wish9
# Copyright © 2025 Mark Summerfield. All rights reserved.
if {![catch {file readlink [info script]} name]} {
const APPPATH [file dirname $name]
} else {
const APPPATH [file normalize [file dirname [info script]]]
}
tcl::tm::path add $APPPATH
package require app
package require units
const HAS_TLS [expr {![catch { package require tls 2} ]}]
if {$::HAS_TLS} {
package require http 2
::http::register https 443 ::tls::socket
const DICT_URL https://api.dictionaryapi.dev/api/v2/entries/en
}
const ASPELL [auto_execok aspell]
set WORDFILE /usr/share/dict/words
if {![file exists $::WORDFILE]} { set WORDFILE "" }
const VERSION 1.5.0
units::new stone 14lb
units::new point 0.013888888888888888in
units::new pt 1point
set app [App new]
$app show