PreviousUpNext

15.4.129  src/app/makelib/tools/mllex/tool.pkg

## tool.pkg
## (C) 1999 Lucent Technologies, Bell Laboratories
## Author: Matthias Blume (blume@kurims.kyoto-u.ac.jp)

# Compiled by:
#     src/app/makelib/tools/mllex/mllex-tool.lib



# Running Mythryl-Lex from makelib.


package lex_tool {

    use_legacy_lex
        =
        tools::make_boolean_control
            (
              "use_legacy_lex",
              "whether to use the old mythryl-lex instead of ml-flex",
              TRUE
            );

                                                                my _ =
    tools::note_standard_shell_command_tool
        {
          tool     =>  "Mythryl-Lex",
          ilk      =>  "mllex",
          suffixes =>  ["lex"],
          template =>  NULL,
          dflopts  =>  [],

          extension_style
              =>
              tools::EXTEND
                  [ ( "pkg",
                      THE "sml",
                      \\ too =  too
                    )
                  ],

          command_standard_path
              =>
              \\ ()
                  =
                  use_legacy_lex.get ()   ??   ("bin/mythryl-lex", [])                  # (command_path, shell_options)
                                          ::   ("bin/lexgen", ["--mythryl-lex-mode"])
        };
};


Comments and suggestions to: bugs@mythryl.org

PreviousUpNext