You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expect is an extension to the Tcl scripting language, used by the dejagnu testing framework, which is in turn used to implement the testsuites for many important GNU toolchain projects, such as GCC and GDB. It can also easily be added to any project that uses automake by simply adding dejagnu to the AM_INIT_AUTOMAKE([]) invocation in configure.ac, and/or the AUTOMAKE_OPTIONS variable in Makefile.am. Note that I'm not sure if it should be treated as its own separate language, or if it would make more sense to just add .exp to the list of supported extensions for tcl, so I'm going to hold back from submitting a PR until we can develop some consensus as to how to answer that question.
or if it would make more sense to just add .exp to the list of supported extensions for Tcl
If expect(1) can execute arbitrary Tcl code, then yes, it makes more sense to treat .exp as Tcl instead of a whole new DSL. Similarly, expect would need to be added to the list of Tcl interpreters, so that correct syntax highlighting is displayed for scripts with #!/usr/bin/env expect -f hashbangs.
or if it would make more sense to just add .exp to the list of supported extensions for Tcl
If expect(1) can execute arbitrary Tcl code, then yes, it makes more sense to treat .exp as Tcl instead of a whole new DSL. Similarly, expect would need to be added to the list of Tcl interpreters, so that correct syntax highlighting is displayed for scripts with #!/usr/bin/env expect -f hashbangs.
Language name
Expect
URL of example file
https://github.com/gcc-mirror/gcc/blob/master/gcc/testsuite/lib/compat.exp
URL of syntax highlighting grammar
https://github.com/textmate/tcl.tmbundle
Most popular extensions
.exp
Detected language
None
Commentary
Expect is an extension to the Tcl scripting language, used by the dejagnu testing framework, which is in turn used to implement the testsuites for many important GNU toolchain projects, such as GCC and GDB. It can also easily be added to any project that uses
automake
by simply addingdejagnu
to theAM_INIT_AUTOMAKE([])
invocation inconfigure.ac
, and/or theAUTOMAKE_OPTIONS
variable inMakefile.am
. Note that I'm not sure if it should be treated as its own separate language, or if it would make more sense to just add.exp
to the list of supported extensions for tcl, so I'm going to hold back from submitting a PR until we can develop some consensus as to how to answer that question.Links
The text was updated successfully, but these errors were encountered: