All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.dingyi222666.monarch.languages.LanguageTcl.kt Maven / Gradle / Ivy

package io.github.dingyi222666.monarch.languages

import io.github.dingyi222666.monarch.common.*
 import io.github.dingyi222666.monarch.loader.dsl.*
import io.github.dingyi222666.monarch.types.IMonarchLanguage

public val TclLanguage: IMonarchLanguage by lazy {
  buildMonarchLanguage {
    tokenPostfix = ".tcl"
    brackets {
      bracket("(",")","delimiter.parenthesis")
      bracket("{","}","delimiter.curly")
      bracket("[","]","delimiter.square")
    }
    "specialFunctions" and listOf("set", "unset", "rename", "variable", "proc", "coroutine",
        "foreach", "incr", "append", "lappend", "linsert", "lreplace")
    "mainFunctions" and listOf("if", "then", "elseif", "else", "case", "switch", "while", "for",
        "break", "continue", "return", "package", "namespace", "catch", "exit", "eval", "expr",
        "uplevel", "upvar")
    "builtinFunctions" and listOf("file", "info", "concat", "join", "lindex", "list", "llength",
        "lrange", "lsearch", "lsort", "split", "array", "parray", "binary", "format", "regexp",
        "regsub", "scan", "string", "subst", "dict", "cd", "clock", "exec", "glob", "pid", "pwd",
        "close", "eof", "fblocked", "fconfigure", "fcopy", "fileevent", "flush", "gets", "open",
        "puts", "read", "seek", "socket", "tell", "interp", "after", "auto_execok", "auto_load",
        "auto_mkindex", "auto_reset", "bgerror", "error", "global", "history", "load", "source",
        "time", "trace", "unknown", "unset", "update", "vwait", "winfo", "wm", "bind", "event",
        "pack", "place", "grid", "font", "bell", "clipboard", "destroy", "focus", "grab", "lower",
        "option", "raise", "selection", "send", "tk", "tkwait", "tk_bisque", "tk_focusNext",
        "tk_focusPrev", "tk_focusFollowsMouse", "tk_popup", "tk_setPalette")
    symbols("[=>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy