Commit 77df6ee3 authored by Mart Lubbers's avatar Mart Lubbers Committed by Camil Staps

Add import library and code

parent cac4e9f0
......@@ -378,16 +378,20 @@ bs_generic =
bs_import =
{ syntax_title = "imports"
, syntax_patterns = ["import", "from", "qualified", "as", "=>"]
, syntax_patterns = ["import", "from", "qualified", "as", "=>", "code", "library"]
, syntax_code =
[ "import [qualified] ... [as ...]"
, "from ... import ..."
, "import ... => qualified ..."
, "import ... qualified => ..."
, "import code from library ..."
, "import code from ..."
]
, syntax_description =
"Imports code from other modules.\n\n" +
"With the `from` keyword, one can achieve more granularity.\n\n" +
"In case of name clashes, `qualified` can be used (undocumented)."
"Moreover, you can import from object files or windows dlls."
, syntax_doc_locations = [CLR 4 "2.5" "_Toc311797991"]
, syntax_examples = map (EX "Function")
[ "import ..."
......@@ -396,6 +400,8 @@ bs_import =
, "import qualified Data.Map // Import Data.Map such that functions are available as e.g. 'Data.Map'.get."
, "import qualified Data.Map as M // Import Data.Map such that functions are available as e.g. 'M'.get."
, "import Control.Monad => qualified join // Import all code from Control.Monad except for join. join is imported qualified"
, "import code from \"tty.\" // Import functions from the object file starting called tty from Clean System Files."
, "import code from library \"msvcrt\" // Import functions from linked dlls according to the msvcrt file in Clean System Files.\nThe file should start with the dll name (e.g. msvcrt) and followed by one line per function you want to link."
]
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment