import { helloWorld } from "./helloWorld.js";
// If a header file is included within <>, the preprocessor will search a predetermined directory path to locate the header file. If the header file is enclosed in "", the preprocessor will look for the header file in the same directory as the source file.
#include <stdio.h>
#include "stdio.h"
import datetime
oTime = datetime.datetime.now()
from my_pkg import my_funcs
import javax.swing.*;
import javax.swing.JOptionPane;
// use fully qualified name without import:
javax.swing.JOptionPane.showMessageDialog(null, "Hi");
// There are 166 packages containing 3279 classes and interfaces in Java 5.
// import java.io.*; Input-output classes.
@import 'custom.css';
use Digest::MD5 'md5_hex';
load 'filename.rb'
require 'filename'
require 'trig.rb'
<?php
include 'vars.php';
require 'filename'; // FATAL error if fails
import (
"fmt"
"math"
)
import . "fmt"
import _ "io"
import log "github.com/foo/bar"
import m "math"
import { ZipCodeValidator } from "./ZipCodeValidator";
/// <reference path="../typings/jquery.d.ts"/>
/// <reference path="components/someclass.ts"/>
import moo = module('moo');
/// <amd-dependency path="legacy/moduleA" name="moduleA"/>
using static System.Console;
using static System.Math;
class Program
{
static void Main()
{
WriteLine(Sqrt(3*3 + 4*4));
}
}
source("filename.r")
source ./bash.sh
use ::std::fs; // Imports from the `std` crate, not the module below.
use self::std::fs as self_fs; // Imports the module below.
mod my;
use self::foo::Zoo as _;
#[path = "foo.rs"]
mod c;
import UIKit
import UIKit.UITableViewController
let tvc = UITableViewController()
let vc = UIViewController()
let label = UILabel()
import pkg.cls1
import pkg.pkfcn
import foo.Bar // Bar is now accessible without qualification
import foo.* // everything in 'foo' becomes accessible
import bar.Bar as bBar // bBar stands for 'bar.Bar'
import Data.Maybe
import Mod as Foo
import Mod (x,y, (+++))
import qualified Mod
import Mod hiding (x,y,(+++))
import qualified Mod hiding (x,y)
(load "fun")
(load "files/fun")
(load-file "./files/fun.clj")
(defproject project-a
:dependencies [[org.clojure/clojure "1.5.1"]
[project-b "0.1.0"]])
(require '[clojure.string :as string])
(use '[clojure.string :only [split]])
(import 'java.util.Date)
(java.util.Date.)
(require 'clojure.contrib.def 'clojure.contrib.except 'clojure.contrib.sql)
(require '(clojure.contrib def except sql))
# Alias the module so it can be called as Bar instead of Foo.Bar
alias Foo.Bar, as: Bar
# Require the module in order to use its macros
require Foo
# Import functions from Foo so they can be called without the `Foo.` prefix
import Foo
# Invokes the custom code defined in Foo as an extension point
use Foo
-include("my_records.hrl").
-include("incdir/my_records.hrl").
-include("/home/user/proj/my_records.hrl").
-include("$PROJ_ROOT/my_records.hrl").
-include_lib("kernel/include/file.hrl").
// #import ensures that a file is only ever included once so that you never have a problem with recursive includes.
#import <Foundation/Foundation.h>
#include <asl.h>
#include <mach/mach.h>
# Files and file names are mostly unrelated to modules; modules are associated only with module expressions.
# One can have multiple files per module, and multiple modules per file:
using MyModule
using MyModule: x, p
import MyModule
import MyModule.x, MyModule.p
import MyModule: x, p
module Foo
include("file1.jl")
include("file2.jl")
end
import 'file-system.dart';
import 'dart:math' as math;
(require (prefix-in tcp: racket/tcp))
require "../../spec_helper"
//- index.pug
doctype html
html
include includes/head.pug
body
h1 My Site
p Welcome to my super lame site.
include includes/foot.pug
open module-or-namespace-name
open System.IO
open List
open Seq
import gleam/io
import unix/cat as kitty
import animal/cat.{Cat, stroke}
const fs = require("fs")
import ballerina/http;
import ballerina/io;
import std::io;
(load-mod my-module)
(load "examples/test.slo")
import settings.scroll
#import: filename
import runtime;
import x10.io.Console;
(import std.List)
(import std.Math :max)
// file scope import
import $sv::SvPackage::*;
module ModuleA {
import PackageA::*;
import PackageA::paramA;
}
package PackageA {
local paramA: u32 = 1;
}
import m 'math'
import "http://www.xtext.org/example/Domainmodel"
import "http://www.xtext.org/example/Domainmodel" as dmodel
let {print} = import "std.io"
use std::fs
use std::sys::{self, open, O_RDWR}
use std::math::*
import fmt
import Proj
Languages with File Imports include JavaScript, C, Python, Java, CSS, Perl, Ruby, PHP, Go, TypeScript, C#, R, Bash, Rust, Swift, MATLAB, Kotlin, Haskell, Clojure, Elixir, Erlang, Objective-C, Julia, Dart, Racket, Crystal, Pug, F#, Gleam, Node.js, Ballerina, C3, progsbase, Slope, Scroll, nomnoml, Flow9, X10, ArkScript, Veryl, Cyber, Dale, Xtext, bog, Jule, Cwerg, SAKO, Speedie, Aardvark
Languages without File Imports include HTML, JSON
View all concepts with or missing a hasImports measurement