Age | Commit message (Collapse) | Author | Files | Lines |
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Also adds Jim_ListGetIndex(), like Jim_ListIndex() but with a more convenient interface
|
|
Thus we may need a larger buffer for the encoded string
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Now codepoints up to U+1FFFFF are supported, including
as literals with the new \u{NNNNNN} syntax (up to six hex digits)
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Error messages
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
To access the command that an alias refers to
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
And allow commands to set a temporary name for the purpose
of generating error messages
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Tcl compatibility
Also add more tests from Tcl 8.6
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
And import some up-to-date tests from Tcl 8.6
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
To access static variables (names and values) of a proc
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
i.e. upvar of a global var to a proc var
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Cache the correct callframe id for ::global vars
Move variable creation out into JimCreateVariable()
Fix some cases of upvar/global with ::global vars
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
If a cached regex containing counts was reused, the result
may have been incorrect.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Tcl-compatible syntax: (?:...)
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Behaviour is now identical to Tcl 8.6
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Compatibility with Tcl
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
If a proc invokes a command via a tailcall and that command invokes
"return", the return should be passed back to the caller of the proc.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
If a test does a "return" and the result is not the expected value,
the source location of the test is wrong.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Smaller, faster and includes title-case characters.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Even if a string has list rep internally,
the original string rep (if there is one) should be used when evaluated
as a script.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
By removing comments and some large blocks of unnecessary code
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
This also involves some restructuring of the existing
implementation to allow for as much reuse as possible.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Use the new conditional template support in autosetup
to avoid (most) GNU-isms in the generated Makefile.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
dict unset was returning an error with no message
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Only procedures add a local proc context. Otherwise
it is not possible to use local/upcall in Tcl packages.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Rather than relying on setting JIMLIB in the Makefile.
Makes it easier to run individual tests manually.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
In particular, file join / anything
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
If a list elements contains unmatch ] brackets, use
backslash quoting instead of braces. This is what Tcl does.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Allows args and optional parameters in any location,
in addition to being smaller and faster.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Currently it depends on hash table ordering.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Supports everything except floating point types
binary is implemented in Tcl on top of the low level [pack] and [unpack] commands
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Nested repeats can't really be handled properly, so remove
support since it breaks some non-nested cases.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Simplifies *, + and {n,m}, fixes some
broken cases and adds support for {n,m}?
Also fixes end-of-word match
Under some circumstances, repeats can now be nested.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Add a blank line after each error
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Also searching the initial part of the string
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|