Fix a crash due to shadowed project names (#1571)

This commit is contained in:
Ara Adkins 2021-03-16 12:45:19 +00:00 committed by GitHub
parent ca90d9824a
commit 96697ddc97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
227 changed files with 1238 additions and 1018 deletions

View File

@ -198,8 +198,7 @@ jobs:
sbt "enso/verifyGeneratedPackage engine ${{ env.ENGINE_DIST_DIR }}/THIRD-PARTY"
sbt "enso/verifyGeneratedPackage launcher ${{ env.LAUNCHER_DIST_DIR }}/THIRD-PARTY"
sbt "enso/verifyGeneratedPackage project-manager ${{ env.PROJECTMANAGER_DIST_DIR }}/THIRD-PARTY"
sbt "enso/verifyGeneratedPackage std-lib-Base ${{ env.ENGINE_DIST_DIR }}/std-lib/Base/THIRD-PARTY"
sbt "enso/verifyGeneratedPackage std-lib-Table ${{ env.ENGINE_DIST_DIR }}/std-lib/Table/THIRD-PARTY"
sbt "enso/verifyGeneratedPackage Standard ${{ env.ENGINE_DIST_DIR }}/std-lib/Standard/THIRD-PARTY"
# Publish
- name: Upload the Engine Artifact

View File

@ -67,20 +67,10 @@ GatherLicenses.distributions := Seq(
Distribution.sbtProjects(`project-manager`)
),
Distribution(
"std-lib-Base",
file("distribution/std-lib/Base/THIRD-PARTY"),
"Standard",
file("distribution/std-lib/Standard/THIRD-PARTY"),
Distribution.sbtProjects(`std-bits`)
),
Distribution(
"std-lib-Table",
file("distribution/std-lib/Table/THIRD-PARTY"),
Distribution.sbtProjects(table)
),
Distribution(
"std-lib-Database",
file("distribution/std-lib/Database/THIRD-PARTY"),
Distribution.sbtProjects(database)
)
)
GatherLicenses.licenseConfigurations := Set("compile")
GatherLicenses.configurationRoot := file("tools/legal-review")
@ -384,7 +374,7 @@ val declineVersion = "1.2.0"
val directoryWatcherVersion = "0.9.10"
val flatbuffersVersion = "1.12.0"
val guavaVersion = "29.0-jre"
val jlineVersion = "3.15.0"
val jlineVersion = "3.19.0"
val kindProjectorVersion = "0.11.3"
val mockitoScalaVersion = "1.14.8"
val newtypeVersion = "0.4.4"
@ -1035,8 +1025,6 @@ lazy val runtime = (project in file("engine/runtime"))
.settings(
(Runtime / compile) := (Runtime / compile)
.dependsOn(`std-bits` / Compile / packageBin)
.dependsOn(table / Compile / packageBin)
.dependsOn(database / Compile / packageBin)
.value
)
.settings(
@ -1255,24 +1243,24 @@ lazy val `locking-test-helper` = project
)
val `std-lib-root` = file("distribution/std-lib/")
val `std-lib-polyglot-root` = `std-lib-root` / "Base" / "polyglot" / "java"
val `table-polyglot-root` = `std-lib-root` / "Table" / "polyglot" / "java"
val `database-polyglot-root` = `std-lib-root` / "Database" / "polyglot" / "java"
val `standard-polyglot-root` = `std-lib-root` / "Standard" / "polyglot" / "java"
lazy val `std-bits` = project
.in(file("std-bits"))
.settings(
autoScalaLibrary := false,
Compile / packageBin / artifactPath :=
`std-lib-polyglot-root` / "std-bits.jar",
`standard-polyglot-root` / "std-bits.jar",
libraryDependencies ++= Seq(
"com.ibm.icu" % "icu4j" % icuVersion
"com.ibm.icu" % "icu4j" % icuVersion,
"com.univocity" % "univocity-parsers" % "2.9.0",
"org.xerial" % "sqlite-jdbc" % "3.34.0"
),
Compile / packageBin := Def.task {
val result = (Compile / packageBin).value
val _ = StdBits
.copyDependencies(
`std-lib-polyglot-root`,
`standard-polyglot-root`,
Some("std-bits.jar"),
ignoreScalaLibrary = true
)
@ -1281,48 +1269,6 @@ lazy val `std-bits` = project
}.value
)
lazy val table = project
.in(file("table"))
.settings(
autoScalaLibrary := false,
Compile / packageBin / artifactPath :=
`table-polyglot-root` / "table.jar",
libraryDependencies ++= Seq(
"com.univocity" % "univocity-parsers" % "2.9.0"
),
Compile / packageBin := Def.task {
val result = (Compile / packageBin).value
val _ = StdBits
.copyDependencies(
`table-polyglot-root`,
Some("table.jar"),
ignoreScalaLibrary = true
)
.value
result
}.value
)
lazy val database = project
.in(file("database"))
.settings(
autoScalaLibrary := false,
libraryDependencies ++= Seq(
"org.xerial" % "sqlite-jdbc" % "3.34.0"
),
Compile / packageBin := Def.task {
val result = (Compile / packageBin).value
val _ = StdBits
.copyDependencies(
`database-polyglot-root`,
None,
ignoreScalaLibrary = true
)
.value
result
}.value
)
/* Note [HTTPS in the Native Images]
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* The launcher and project-manager use Akka Http for making web requests. They

View File

@ -36,11 +36,6 @@ The license file can be found at `licenses/APACHE2.0`.
Copyright notices related to this dependency can be found in the directory `com.fasterxml.jackson.core.jackson-annotations-2.11.1`.
'jline', licensed under the The BSD License, is distributed with the engine.
The license information can be found along with the copyright notices.
Copyright notices related to this dependency can be found in the directory `org.jline.jline-3.15.0`.
'sqlite-jdbc', licensed under the The Apache Software License, Version 2.0, is distributed with the engine.
The license information can be found along with the copyright notices.
Copyright notices related to this dependency can be found in the directory `org.xerial.sqlite-jdbc-3.31.1`.

View File

@ -1,35 +0,0 @@
Copyright (c) 2002-2018, the original author or authors.
All rights reserved.
https://opensource.org/licenses/BSD-3-Clause
Redistribution and use in source and binary forms, with or
without modification, are permitted provided that the following
conditions are met:
Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer
in the documentation and/or other materials provided with
the distribution.
Neither the name of JLine nor the names of its contributors
may be used to endorse or promote products derived from this
software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
OF THE POSSIBILITY OF SUCH DAMAGE.

View File

@ -1,109 +0,0 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* Copyright (C) 2009-2018 the original author(s).
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/*
* Java TelnetD library (embeddable telnet daemon)
* Copyright (c) 2000-2005 Dieter Wimberger
* All rights reserved.
* <p/>
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
* <p/>
* Neither the name of the author nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
* <p/>
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER AND CONTRIBUTORS ``AS
* IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
***/
/*
* Copyright (c) 2002-2017, the original author or authors.
*
* This software is distributable under the BSD license. See the terms of the
* BSD license in the documentation provided with this software.
*
* https://opensource.org/licenses/BSD-3-Clause
*/
Copyright (c) 2002-2019, the original author or authors.
Copyright (c) 2002-2020, the original author or authors.
Copyright (c) 2002-2018, the original author or authors.
Copyright (c) 2002-2016, the original author or authors.
/*
* Copyright (c) 2002-2016, the original author or authors.
*
* This software is distributable under the BSD license. See the terms of the
* BSD license in the documentation provided with this software.
*
* https://opensource.org/licenses/BSD-3-Clause
*/

View File

@ -1,7 +0,0 @@
Enso
Copyright 2020 - 2021 New Byte Order sp. z o. o.
'icu4j', licensed under the Unicode/ICU License, is distributed with the std-lib-Base.
The license information can be found along with the copyright notices.
Copyright notices related to this dependency can be found in the directory `com.ibm.icu.icu4j-67.1`.

View File

@ -1,6 +0,0 @@
license: APLv2
name: Base
enso-version: default
version: "0.0.1"
author: "Enso Team <contact@enso.org>"
maintainer: "Enso Team <contact@enso.org>"

View File

@ -1,48 +0,0 @@
import Base.Data.Any.Extensions
import Base.Data.Interval
import Base.Data.Json
import Base.Data.List
import Base.Data.Map
import Base.Data.Maybe
import Base.Data.Noise
import Base.Data.Number.Extensions
import Base.Data.Ordering
import Base.Data.Ordering.Sort_Order
import Base.Data.Pair
import Base.Data.Range
import Base.Data.Text.Extensions
import Base.Data.Vector
import Base.Error.Common
import Base.Error.Extensions
import Base.Math
import Base.Meta
import Base.Meta.Enso_Project
import Base.Polyglot.Java
import Base.System.File
from Builtins import Nothing, Number, Integer, Any, True, False, Cons, Boolean, Arithmetic_Error
export Base.Data.Interval
export Base.Data.Json
export Base.Data.Map
export Base.Data.Maybe
export Base.Data.Ordering
export Base.Data.Ordering.Sort_Order
export Base.Data.Vector
export Base.Math
export Base.Meta
export Base.System.File
from Base.Data.Any.Extensions export all
from Base.Data.List export Nil, Cons
from Base.Data.Number.Extensions export all hiding Math, String, Double
from Base.Data.Noise export all hiding Noise
from Base.Data.Pair export Pair
from Base.Data.Range export Range
from Base.Data.Text.Extensions export Text
from Base.Error.Common export all
from Base.Error.Extensions export all
from Base.Meta.Enso_Project export all
from Base.Polyglot.Java export all
from Builtins export all hiding Meta, Less, Equal, Greater, Ordering

View File

@ -1,7 +0,0 @@
Enso
Copyright 2020 - 2021 New Byte Order sp. z o. o.
'sqlite-jdbc', licensed under the The Apache Software License, Version 2.0, is distributed with the std-lib-Database.
The license information can be found along with the copyright notices.
Copyright notices related to this dependency can be found in the directory `org.xerial.sqlite-jdbc-3.34.0`.

View File

@ -1,99 +0,0 @@
/*--------------------------------------------------------------------------
* Copyright 2016 Magnus Reftel
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*--------------------------------------------------------------------------*/
/*--------------------------------------------------------------------------
* Copyright 2007 Taro L. Saito
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*--------------------------------------------------------------------------*/
/*--------------------------------------------------------------------------
* Copyright 2010 Taro L. Saito
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*--------------------------------------------------------------------------*/
/*--------------------------------------------------------------------------
* Copyright 2008 Taro L. Saito
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*--------------------------------------------------------------------------*/
Copyright 2009 Taro L. Saito
/*
* Copyright (c) 2007 David Crawshaw <david@zentus.com>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

View File

@ -1,14 +0,0 @@
import Database.Data.Table
import Database.Data.Column
import Database.Connection.Connection
import Database.Connection.Database
export Database.Data.Table
export Database.Data.Column
export Database.Connection.Connection
from Database.Connection.Database export all
import Table.Data.Table
import Table.Data.Order_Rule
from Table.Data.Table export No_Such_Column_Error
from Table.Data.Order_Rule export Order_Rule

View File

@ -1,6 +0,0 @@
license: APLv2
name: Geo
enso-version: default
version: "0.0.1"
author: "Enso Team <contact@enso.org>"
maintainer: "Enso Team <contact@enso.org>"

View File

@ -0,0 +1,17 @@
Enso
Copyright 2020 - 2021 New Byte Order sp. z o. o.
'sqlite-jdbc', licensed under the The Apache Software License, Version 2.0, is distributed with the Standard.
The license information can be found along with the copyright notices.
Copyright notices related to this dependency can be found in the directory `org.xerial.sqlite-jdbc-3.34.0`.
'icu4j', licensed under the Unicode/ICU License, is distributed with the Standard.
The license information can be found along with the copyright notices.
Copyright notices related to this dependency can be found in the directory `com.ibm.icu.icu4j-67.1`.
'univocity-parsers', licensed under the Apache 2, is distributed with the Standard.
The license file can be found at `licenses/APACHE2.0`.
Copyright notices related to this dependency can be found in the directory `com.univocity.univocity-parsers-2.9.0`.

View File

@ -1,207 +1,405 @@
2000.01.01 1.06 copyright update */
Does not write a copyright string.
copyright=" Copyright (c) IBM Corporation 1996, 2000. All rights reserved. ";
2000.01.01 copyright update [Y2K has arrived] */
Copyright (C) 2009-2010, International Business Machines Corporation and *
Copyright (C) 2001-2016, International Business Machines Corporation and
Copyright (C) 1996-2015, International Business Machines Corporation and *
Copyright (C) 2009-2016, International Business Machines Corporation and
Copyright (C) 1996-2016, International Business Machines Corporation and *
Copyright (C) 2009-2015, Google, International Business Machines Corporation
Copyright (C) 2007-2014, International Business Machines Corporation and *
Copyright (C) 2007-2015, Google Inc, International Business Machines Corporation
Copyright (c) 2002-2014, International Business Machines Corporation
Copyright (C) 2001-2012, International Business Machines
Copyright (C) 2000-2014, International Business Machines
Copyright (C) 1996-2012, International Business Machines Corporation and *
Copyright (C) 2009-2012, International Business Machines Corporation and *
Copyright (C) 2004-2009, International Business Machines Corporation and *
Copyright (C) 2009-2014, International Business Machines Corporation and
Copyright (c) 2007-2009 International Business Machines Corporation and *
Copyright (C) 2011-2016, International Business Machines Corporation
Copyright (C) 2005-2010, International Business Machines
Copyright (C) 1996-2015, Google, Inc., International Business Machines Corporation and
Copyright (C) 2012-2016, International Business Machines Corporation and
Copyright (C) 1996-2009, Google, International Business Machines Corporation and *
Copyright (C) 2002-2009 International Business Machines Corporation *
Copyright (C) 2001-2016, International Business Machines Corporation and *
Copyright (C) 2009-2016, Google, Inc.; International Business Machines Corporation
Copyright (C) 2001-2010, International Business Machines
Copyright (C) 2010, International Business Machines Corporation and *
Copyright (C) 2009-2011, Google, International Business Machines Corporation
Copyright (C) 2008-2009, International Business Machines
Copyright (C) 2009-2011, International Business Machines Corporation and *
Copyright (C) 2006-2015, International Business Machines Corporation and
Copyright (C) 2012, International Business Machines Corporation and *
Copyright (C) 2015, International Business Machines Corporation and
Copyright (C) 2009 , Yahoo! Inc. *
Copyright (C) 2014, International Business Machines Corporation and *
Copyright (C) 2007-2015, International Business Machines Corporation and *
Copyright (C) 2008-2016, Google Inc, International Business Machines Corporation
Copyright (C) 2012-2014, International Business Machines Corporation and *
Copyright (C) 2016, International Business Machines Corporation and *
Copyright (C) 2007-2016, International Business Machines Corporation and
Copyright (C) 1996-2005, International Business Machines Corporation and *
Copyright (c) 2013-2014, International Business Machines
Copyright (C) 2007, International Business Machines Corporation and *
Copyright (C) 2000-2016, International Business Machines Corporation and
Copyright (C) 2008-2015, International Business Machines Corporation and
Copyright (C) 1996-2007, International Business Machines Corporation and *
Copyright (C) 2007-2013, International Business Machines Corporation and *
Copyright (C) 2005-2016 International Business Machines Corporation and
Copyright (C) 2008-2015, Google, International Business Machines Corporation and
Copyright (C) 2012-2016, International Business Machines Corporation and *
Copyright (C) 2000-2009, International Business Machines Corporation and *
Copyright (C) 1996-2011, International Business Machines Corporation and *
Copyright (C) 2008-2016, International Business Machines
Copyright (C) 2006-2009, Google, International Business Machines Corporation *
Copyright (C) 2007-2014, International Business Machines Corporation and *
Copyright (C) 2009, International Business Machines Corporation and *
Copyright (C) 2005-2015, International Business Machines Corporation and
Copyright (C) 2006-2016, Google, International Business Machines Corporation
Copyright (C) 1996-2007, International Business Machines Corporation and *
Copyright (C) 1996-2013, International Business Machines Corporation and
Copyright (c) 2003-2016, International Business Machines
Copyright (C) 2011-2016, International Business Machines Corporation and *
Copyright (C) 2004-2010, International Business Machines Corporation and *
Copyright (C) 2016, International Business Machines Corporation and
Copyright (C) 2007-2010, International Business Machines Corporation and *
Copyright (c) 2003-2010, International Business Machines
Copyright (C) 2001-2013, International Business Machines Corporation and *
Copyright (C) 2011, International Business Machines Corporation and *
Copyright (C) 2001-2016, International Business Machines
Copyright (C) 2005-2006, International Business Machines
Copyright (C) 2005-2012, International Business Machines Corporation and *
Copyright (C) 2003-2016, Google, International Business Machines Corporation
Copyright (C) 2001-2016 International Business Machines Corporation and
Copyright (C) 2005-2011, International Business Machines Corporation and *
Copyright (C) 2004-2016, Google Inc, International Business Machines
Copyright (C) 2008-2014, International Business Machines Corporation and *
Copyright (c) 2001-2016, International Business Machines Corporation and
Copyright (C) 2015-2016, International Business Machines Corporation and
Copyright (C) 2010-2013, International Business Machines Corporation and *
Copyright (C) 1996-2009, International Business Machines Corporation and *
Copyright (C) 2014-2016, International Business Machines Corporation and
Copyright (C) 2003-2011, International Business Machines Corporation and *
Copyright (C) 2012-2016, Google, International Business Machines Corporation and
Copyright (C) 1996-2013, International Business Machines Corporation and *
Copyright (C) 2008-2014, Google, International Business Machines
Copyright (C) 2007-2011, International Business Machines Corporation and others.
Copyright (C) 2005-2012, International Business Machines Corporation and *
Copyright (C) 2009-2015, International Business Machines Corporation and
Copyright (C) 2013-2016, International Business Machines Corporation and
Copyright (C) 2009-2015, International Business Machines Corporation and *
Copyright (C) 2003-2016, International Business Machines Corporation and others. All Rights Reserved.
Copyright (C) 2007-2016, International Business Machines
Copyright (c) 2001-2016, International Business Machines
Copyright (C) 2001-2008, International Business Machines
Copyright (C) 2009, Google, International Business Machines Corporation and *
Copyright (C) 1996-2016, Google, International Business Machines Corporation and
Copyright (c) 2002-2016, International Business Machines
Copyright (C) 2010-2016, Google, Inc.; International Business Machines *
Copyright (c) 2003-2016 International Business Machines
Copyright (C) 2009-2016, International Business Machines Corporation and
Copyright (C) 1996-2016, International Business Machines Corporation and *
Copyright (C) 2009-2015, Google, International Business Machines Corporation
Copyright (C) 2007-2014, International Business Machines Corporation and *
Copyright (C) 2007-2015, Google Inc, International Business Machines Corporation
Copyright (c) 2002-2014, International Business Machines Corporation
Copyright (C) 2001-2012, International Business Machines
Copyright (C) 2008-2016 International Business Machines Corporation
Copyright (C) 2000-2014, International Business Machines
Copyright (C) 1996-2012, International Business Machines Corporation and *
Copyright (C) 2009-2012, International Business Machines Corporation and *
Copyright (C) 2009-2014, International Business Machines Corporation and
Copyright (C) 2004-2009, International Business Machines Corporation and *
Copyright (c) 2007-2009 International Business Machines Corporation and *
Copyright (C) 2011-2016, International Business Machines Corporation
Copyright (C) 2005-2010, International Business Machines
Copyright (C) 1996-2015, Google, Inc., International Business Machines Corporation and
Copyright (C) 2012-2016, International Business Machines Corporation and
Copyright (C) 1996-2009, Google, International Business Machines Corporation and *
Copyright (C) 2002-2009 International Business Machines Corporation *
Copyright (C) 2001-2016, International Business Machines Corporation and *
Copyright (C) 2009-2016, Google, Inc.; International Business Machines Corporation
Copyright (C) 2001-2010, International Business Machines
Copyright (C) 2010, International Business Machines Corporation and *
Copyright (C) 2009-2011, Google, International Business Machines Corporation
Copyright (C) 2008-2009, International Business Machines
Copyright (C) 2009-2011, International Business Machines Corporation and *
Copyright (C) 1996-2015, International Business Machines
Copyright (C) 2006-2015, International Business Machines Corporation and
Copyright (C) 2012, International Business Machines Corporation and *
Copyright (C) 2015, International Business Machines Corporation and
Copyright (C) 2009 , Yahoo! Inc. *
Copyright (C) 2004-2010, International Business Machines
Copyright (C) 2014, International Business Machines Corporation and *
Copyright (c) 2004-2014, International Business Machines
Copyright (C) 2011, International Business Machines
Copyright (C) 2007-2015, International Business Machines Corporation and *
Copyright (C) 2008-2016, Google Inc, International Business Machines Corporation
Copyright (C) 2012-2014, International Business Machines Corporation and *
Copyright (C) 2012-2016, International Business Machines
Copyright (c) 2002-2011, International Business Machines Corporation
Copyright (C) 2016, International Business Machines Corporation and *
Copyright (C) 2007-2016, International Business Machines Corporation and
Copyright IBM Corporation, 1996-2016. All Rights Reserved. */
Copyright (C) 1996-2005, International Business Machines Corporation and *
Copyright (c) 2013-2014, International Business Machines
Copyright (C) 2007, International Business Machines Corporation and *
Copyright (C) 2000-2016, International Business Machines Corporation and
Copyright (C) 2008-2015, International Business Machines Corporation and
Copyright (C) 1996-2007, International Business Machines Corporation and *
Copyright (C) 2007-2013, International Business Machines Corporation and *
Copyright (C) 2005-2016 International Business Machines Corporation and
Copyright (c) 2002-2014, Google, International Business Machines
Copyright (C) 2008-2015, Google, International Business Machines Corporation and
Copyright (C) 2012-2016, International Business Machines Corporation and *
Copyright (C) 2000-2009, International Business Machines Corporation and *
Copyright (C) 1996-2011, International Business Machines Corporation and *
Copyright (C) 2008-2016, International Business Machines
Copyright (C) 2006-2009, Google, International Business Machines Corporation *
Copyright (C) 2007-2014, International Business Machines Corporation and *
Copyright (C) 2009, International Business Machines Corporation and *
copyright=" Copyright (c) IBM Corporation 1996, 2000. All rights reserved. ";
Copyright (C) 2005-2015, International Business Machines Corporation and
Copyright (C) 2006-2016, Google, International Business Machines Corporation
Copyright (C) 1996-2007, International Business Machines Corporation and *
Copyright (C) 1996-2013, International Business Machines Corporation and
Copyright (c) 2003-2016, International Business Machines
Copyright (C) 2011-2016, International Business Machines Corporation and *
Copyright (C) 2016, International Business Machines Corporation and
Copyright (C) 2004-2010, International Business Machines Corporation and *
Copyright (C) 2007-2010, International Business Machines Corporation and *
Copyright (c) 2003-2010, International Business Machines
Copyright (C) 2001-2013, International Business Machines Corporation and *
Copyright (C) 2011, International Business Machines Corporation and *
Copyright (C) 2001-2016, International Business Machines
Copyright (c) 2003-2011, International Business Machines
Copyright (C) 2005-2006, International Business Machines
Copyright (C) 2005-2012, International Business Machines Corporation and *
Copyright (C) 2003-2016, Google, International Business Machines Corporation
Copyright (C) 2001-2016 International Business Machines Corporation and
Copyright (C) 2005-2011, International Business Machines Corporation and *
Copyright (C) 2004-2016, Google Inc, International Business Machines
Copyright (C) 2008-2014, International Business Machines Corporation and *
Copyright (c) 2001-2016, International Business Machines Corporation and
Copyright (C) 2015-2016, International Business Machines Corporation and
Copyright (C) 1996-2009, International Business Machines Corporation and *
Copyright (C) 2010-2013, International Business Machines Corporation and *
Copyright (C) 2014-2016, International Business Machines Corporation and
Copyright (C) 2003-2011, International Business Machines Corporation and *
Copyright (C) 2012-2016, Google, International Business Machines Corporation and
Copyright (C) 1996-2013, International Business Machines Corporation and *
Copyright (C) 2007-2011, International Business Machines Corporation and others.
Copyright (C) 2008-2014, Google, International Business Machines
Copyright (C) 2005-2012, International Business Machines Corporation and *
Copyright (C) 2009-2015, International Business Machines Corporation and
Copyright (C) 2013-2016, International Business Machines Corporation and
Copyright (C) 2009-2015, International Business Machines Corporation and *
Copyright (C) 2003-2016, International Business Machines Corporation and others. All Rights Reserved.
Copyright (C) 2007-2016, International Business Machines
Copyright (c) 2001-2016, International Business Machines
Copyright (C) 2001-2008, International Business Machines
Copyright (C) 2009, Google, International Business Machines Corporation and *
Copyright (C) 1999-2015, International Business Machines
Copyright (C) 1996-2016, Google, International Business Machines Corporation and
Copyright (c) 2002-2016, International Business Machines
Copyright (C) 2010-2016, Google, Inc.; International Business Machines *
Copyright (c) 2004-2013, International Business Machines
Copyright (c) 2002-2010, International Business Machines Corporation
Copyright (C) 2007-2016, International Business Machines Corporation and *
Copyright (c) 2002-2010, International Business Machines Corporation
Copyright (C) 2002-2016, International Business Machines Corporation and
Copyright (C) 2009-2014, International Business Machines
Copyright (C) 2008-2009, Google, International Business Machines
Copyright (C) 2009-2014, International Business Machines
Copyright (C) 2001-2010, International Business Machines Corporation and *
Copyright IBM Corporation, 1997, 2000, 2005, 2007. All Rights Reserved. */
Copyright (C) 2001-2015, International Business Machines Corporation and
Copyright (C) 2005 - 2012, International Business Machines Corporation and *
Copyright (C) 2009-2016, International Business Machines Corporation and *
Copyright (C) 2010, International Business Machines
Copyright (C) 2005 - 2012, International Business Machines Corporation and *
Copyright (C) 2002-2010, International Business Machines Corporation and *
Copyright (C) 2010, International Business Machines
Copyright (C) 2013-2014, International Business Machines Corporation and *
Copyright (C) 2009-2013, International Business Machines Corporation and *
Copyright (C) 2009,2016 International Business Machines Corporation and
Copyright (C) 1996-2014, International Business Machines Corporation and *
Copyright (C) 2009,2016 International Business Machines Corporation and
Copyright (c) 2002-2007, International Business Machines Corporation
Copyright (C) 2011-2016, International Business Machines Corporation and
Copyright (C) 2013-2015, International Business Machines Corporation and
Copyright (C) 2011-2016, International Business Machines Corporation and
Copyright (C) 1996-2010, International Business Machines Corporation and
Copyright (C) 2007-2008, International Business Machines Corporation and *
Copyright (C) 2009, International Business Machines Corporation and *
Copyright (C) 2012-2015, International Business Machines Corporation and *
Copyright (C) 2001-2004, International Business Machines Corporation and *
Copyright (C) 2005-2013, International Business Machines Corporation and *
Copyright (C) 2005 - 2014, International Business Machines Corporation and *
Copyright (C) 2002-2010, International Business Machines
Copyright (C) 2001-2009, International Business Machines Corporation and *
Copyright (C) 2014-2015, International Business Machines Corporation and
Copyright (C) 2009-2010, Google, International Business Machines Corporation *
Copyright (C) 2002-2014, International Business Machines Corporation and others.
Copyright (C) 2004-2006, International Business Machines Corporation and *
Copyright (C) 2013, Google Inc, International Business Machines Corporation and *
Copyright (c) 2002, International Business Machines Corporation
Copyright (C) 1999-2014, International Business Machines
Copyright (C) 2010-2011, Google, International Business Machines *
Copyright (c) 2007-2015 International Business Machines Corporation and *
Copyright (C) 2010-2014, Google, International Business Machines Corporation *
Copyright (C) 2003-2010, International Business Machines
Copyright (c) 2002-2010, International Business Machines
Copyright (c) 2004-2015, International Business Machines
Copyright (c) 2002-2010, International Business Machines
Copyright (C) 2007-2011, International Business Machines Corporation and *
Copyright (C) 2008-2016, International Business Machines Corporation and
Copyright (C) 2004-2009, International Business Machines Corporation and *
Copyright (C) 1996-2010, International Business Machines Corporation and *
Copyright (C) 2009-2016, International Business Machines Corporation,
Copyright (C) 2003-2014, International Business Machines Corporation and *
Copyright (C) 2009-2016, International Business Machines Corporation,
Copyright (C) 2013, International Business Machines Corporation and *
Copyright (C) 2003-2016, International Business Machines Corporation and *
Copyright (c) 2004-2010, International Business Machines
Copyright (C) 2007-2012, International Business Machines Corporation and *
Copyright (C) 1996-2016, International Business Machines Corporation and *
Copyright (C) 1996-2011, International Business Machines Corporation and
Copyright (C) 1996-2004, International Business Machines Corporation and *
License & terms of use: http://www.unicode.org/copyright.html#License
Copyright (C) 1996-2015, International Business Machines Corporation and
Copyright (C) 1996-2016, International Business Machines
Copyright (C) 2000-2014, International Business Machines Corporation and
Copyright (C) 1996-2016, International Business Machines Corporation and
Copyright (C) 2007-2010, International Business Machines Corporation and *
Copyright (C) 2012-2014, International Business Machines
Copyright (C) 2003-2011, International Business Machines Corporation and *
Copyright (c) 2001-2011, International Business Machines
Copyright (C) 2009-2015, International Business Machines
Copyright (C) 2012-2015, International Business Machines
Copyright (C) 2010-2016, International Business Machines
Copyright (C) 2003-2016, International Business Machines Corporation and
Copyright (C) 2004-2014, International Business Machines Corporation and
Copyright (C) 2013-2015, International Business Machines
Copyright (C) 2004-2015, International Business Machines
Copyright (c) 2002-2015, International Business Machines
Copyright (C) 2014, International Business Machines Corporation and
Copyright (C) 2013-2014, International Business Machines
Copyright (C) 1996-2014, International Business Machines Corporation and
Copyright (C) 2010-2015, International Business Machines
Copyright (C) 2011-2014, International Business Machines
Copyright (C) 2003-2015, International Business Machines Corporation and
Copyright (C) 2003-2014, International Business Machines Corporation and
Copyright (C) 2005-2016, International Business Machines Corporation and
Copyright (C) 2010-2014, International Business Machines
Copyright (C) 2009-2016, International Business Machines
Copyright (C) 2007-2015, International Business Machines Corporation and
Copyright (c) 2004-2016, International Business Machines
Copyright (C) 2004-2016, International Business Machines Corporation and
Copyright (C) 2001-2014, International Business Machines
<p>Copyright &copy; IBM Corporation 1999. All rights reserved.
Copyright (C) 1996-2010, International Business Machines Corporation and *
Copyright (C) 1996-2011, International Business Machines Corporation and *
Copyright (C) 2001-2011, International Business Machines Corporation and *
Copyright (C) 2004-2016, International Business Machines Corporation and *
Copyright (C) 2005-2016, International Business Machines Corporation and *
Copyright (C) 2007-2009, International Business Machines Corporation and *
Copyright (C) 1996-2011, International Business Machines Corporation and *
Copyright (C) 2013-2015, International Business Machines
Copyright (C) 2004-2015, International Business Machines
Copyright (c) 2002-2015, International Business Machines
Copyright (C) 2005-2016, International Business Machines Corporation and *
Copyright (C) 2014, International Business Machines Corporation and
Copyright (C) 2001-2011, International Business Machines Corporation and *
<p>Copyright &copy; IBM Corporation 1999. All rights reserved.
Copyright (C) 2013-2014, International Business Machines
Copyright (C) 1996-2014, International Business Machines Corporation and
Copyright (C) 2010-2015, International Business Machines
Copyright (C) 2009-2014, International Business Machines Corporation and *
Copyright (C) 2011-2014, International Business Machines
Copyright (C) 2003-2015, International Business Machines Corporation and
Copyright (C) 2003-2014, International Business Machines Corporation and
Copyright (C) 2005-2016, International Business Machines Corporation and
Copyright (C) 2010-2014, International Business Machines
Copyright (C) 2009-2016, International Business Machines
Copyright (C) 2007-2015, International Business Machines Corporation and
Copyright (C) 2004-2016, International Business Machines Corporation and *
Copyright (c) 2004-2016, International Business Machines
Copyright (C) 2004-2016, International Business Machines Corporation and
Copyright (C) 2001-2014, International Business Machines
Copyright (C) 1996-2010, International Business Machines Corporation and *

View File

@ -0,0 +1,44 @@
Copyright 2016 Magnus Reftel
Copyright 2007 Taro L. Saito
Copyright 2010 Taro L. Saito
Copyright 2008 Taro L. Saito
Copyright 2009 Taro L. Saito
Copyright (c) 2007 David Crawshaw <david@zentus.com>
/*
* Copyright (c) 2007 David Crawshaw <david@zentus.com>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

View File

@ -1,5 +1,5 @@
license: APLv2
name: Database
name: Standard
enso-version: default
version: "0.0.1"
author: "Enso Team <contact@enso.org>"

View File

@ -0,0 +1,49 @@
import Standard.Base.Data.Any.Extensions
import Standard.Base.Data.Interval
import Standard.Base.Data.Json
import Standard.Base.Data.List
import Standard.Base.Data.Map
import Standard.Base.Data.Maybe
import Standard.Base.Data.Noise
import Standard.Base.Data.Number.Extensions
import Standard.Base.Data.Ordering
import Standard.Base.Data.Ordering.Sort_Order
import Standard.Base.Data.Pair
import Standard.Base.Data.Range
import Standard.Base.Data.Text.Extensions
import Standard.Base.Data.Vector
import Standard.Base.Error.Common
import Standard.Base.Error.Extensions
import Standard.Base.Math
import Standard.Base.Meta
import Standard.Base.Meta.Enso_Project
import Standard.Base.Polyglot.Java
import Standard.Base.System.File
from Builtins import Nothing, Number, Integer, Any, True, False, Cons, Boolean, Arithmetic_Error
export Standard.Base.Data.Interval
export Standard.Base.Data.Json
export Standard.Base.Data.Map
export Standard.Base.Data.Maybe
export Standard.Base.Data.Ordering
export Standard.Base.Data.Ordering.Sort_Order
export Standard.Base.Data.Vector
export Standard.Base.Math
export Standard.Base.Meta
export Standard.Base.System.File
from Standard.Base.Data.Any.Extensions export all
from Standard.Base.Data.List export Nil, Cons
from Standard.Base.Data.Number.Extensions export all hiding Math, String, Double
from Standard.Base.Data.Noise export all hiding Noise
from Standard.Base.Data.Pair export Pair
from Standard.Base.Data.Range export Range
from Standard.Base.Data.Text.Extensions export Text
from Standard.Base.Error.Common export all
from Standard.Base.Error.Extensions export all
from Standard.Base.Meta.Enso_Project export all
from Standard.Base.Polyglot.Java export all
from Builtins export all hiding Meta, Less, Equal, Greater, Ordering

View File

@ -1,4 +1,4 @@
from Base import all
from Standard.Base import all
## Checks if `this` is equal to `that.`

View File

@ -1,8 +1,8 @@
from Base import all
from Standard.Base import all
import Base.Data.Interval.Bound
import Standard.Base.Data.Interval.Bound
export Base.Data.Interval.Bound
export Standard.Base.Data.Interval.Bound
## Creates an interval that excludes both its bounds.

View File

@ -1,4 +1,4 @@
from Base import all
from Standard.Base import all
## A type representing an interval bound over any orderable type.

View File

@ -1,6 +1,6 @@
from Base import all
from Standard.Base import all
import Base.Data.Json.Internal
import Standard.Base.Data.Json.Internal
## Represents a JSON structure.
type Json

View File

@ -1,5 +1,6 @@
from Base import all hiding Number, Boolean, Array
from Base.Data.Json import all
from Standard.Base import all hiding Number, Boolean, Array
from Standard.Base.Data.Json import all
polyglot java import org.enso.base.json.Parser
polyglot java import org.enso.base.json.Printer

View File

@ -1,4 +1,4 @@
from Base import all
from Standard.Base import all
polyglot java import java.util.Locale as JavaLocale

View File

@ -1,5 +1,6 @@
from Base import all
import Base.Data.Map.Internal
from Standard.Base import all
import Standard.Base.Data.Map.Internal
## An error for getting a missing value from a map.
type No_Value_For_Key key

View File

@ -1,5 +1,6 @@
from Base import all
from Base.Data.Map import all
from Standard.Base import all
from Standard.Base.Data.Map import all
## PRIVATE

View File

@ -1,4 +1,4 @@
from Base import all
from Standard.Base import all
## A type representing computations that may fail.
type Maybe

View File

@ -1,6 +1,6 @@
from Base import all
from Standard.Base import all
from Base.Data.Noise.Generator import all
from Standard.Base.Data.Noise.Generator import all
## Generate noise based on the input number.

View File

@ -1,10 +1,10 @@
from Base import all
from Standard.Base import all
import Base.Data.Interval.Bound
import Base.Error.Extensions
import Standard.Base.Data.Interval.Bound
import Standard.Base.Error.Extensions
polyglot java import java.util.Random
polyglot java import java.lang.Long
polyglot java import java.util.Random
## The interface for the noise generator abstraction.

View File

@ -1,6 +1,7 @@
from Base import all
polyglot java import java.lang.Math
from Standard.Base import all
polyglot java import java.lang.Double
polyglot java import java.lang.Math
polyglot java import java.lang.String
## Computes the inverse of the sine function

View File

@ -1,4 +1,4 @@
from Base import all
from Standard.Base import all
from Builtins import Less, Equal, Greater

View File

@ -1,4 +1,4 @@
from Base import all
from Standard.Base import all
## A descriptor for a sort ordering.
type Sort_Order

View File

@ -1,4 +1,4 @@
from Base import all
from Standard.Base import all
## A pair of elements.
type Pair

View File

@ -1,4 +1,4 @@
from Base import all
from Standard.Base import all
## Represents a right-exclusive range of integer values.
type Range

View File

@ -1,14 +1,14 @@
from Base import all
from Standard.Base import all
from Builtins import Text, Prim_Text_Helpers
import Base.Data.Text.Split_Kind
import Base.Data.Locale
import Base.Meta
import Standard.Base.Data.Text.Split_Kind
import Standard.Base.Data.Locale
import Standard.Base.Meta
from Builtins export Text
polyglot java import com.ibm.icu.text.BreakIterator
polyglot java import com.ibm.icu.lang.UCharacter
polyglot java import com.ibm.icu.text.BreakIterator
polyglot java import org.enso.base.Text_Utils
## Computes the number of characters in the text.

View File

@ -1,4 +1,4 @@
from Base import all
from Standard.Base import all
## The type of split for splitting text.
type Split_Kind

View File

@ -1,12 +1,13 @@
from Base import all
import Base.Data.Time.Time
import Base.Data.Time.Duration
import Base.Data.Time.Time_Of_Day
import Base.Data.Time.Zone
from Standard.Base import all
import Standard.Base.Data.Time.Time
import Standard.Base.Data.Time.Duration
import Standard.Base.Data.Time.Time_Of_Day
import Standard.Base.Data.Time.Zone
polyglot java import java.time.format.DateTimeFormatter
polyglot java import java.time.Instant
polyglot java import java.time.LocalDate
polyglot java import java.time.format.DateTimeFormatter
polyglot java import org.enso.base.Time_Utils
type Date

View File

@ -1,5 +1,6 @@
from Base import all
import Base.Data.Time.Time
from Standard.Base import all
import Standard.Base.Data.Time.Time
polyglot java import java.time.Duration as Java_Duration
polyglot java import java.time.Period as Java_Period

View File

@ -1,12 +1,13 @@
from Base import all
import Base.Data.Time.Date
import Base.Data.Time.Duration
import Base.Data.Locale
import Base.Data.Time.Time_Of_Day
import Base.Data.Time.Zone
from Standard.Base import all
import Standard.Base.Data.Locale
import Standard.Base.Data.Time.Date
import Standard.Base.Data.Time.Duration
import Standard.Base.Data.Time.Time_Of_Day
import Standard.Base.Data.Time.Zone
polyglot java import java.time.ZonedDateTime
polyglot java import java.time.format.DateTimeFormatter
polyglot java import java.time.ZonedDateTime
polyglot java import org.enso.base.Time_Utils
type Time_Error

View File

@ -1,13 +1,14 @@
from Base import all
import Base.Data.Time.Date
import Base.Data.Time.Duration
import Base.Data.Locale
import Base.Data.Time.Time
import Base.Data.Time.Zone
from Standard.Base import all
import Standard.Base.Data.Time.Date
import Standard.Base.Data.Time.Duration
import Standard.Base.Data.Locale
import Standard.Base.Data.Time.Time
import Standard.Base.Data.Time.Zone
polyglot java import java.time.format.DateTimeFormatter
polyglot java import java.time.Instant
polyglot java import java.time.LocalTime
polyglot java import java.time.format.DateTimeFormatter
polyglot java import org.enso.base.Time_Utils
type Time_Of_Day

View File

@ -1,4 +1,4 @@
from Base import all
from Standard.Base import all
polyglot java import java.time.ZoneId
polyglot java import java.time.ZoneOffset

View File

@ -1,5 +1,5 @@
from Standard.Base import all
from Builtins import Array
from Base import all
## Creates a new vector of the given length, initializing elements using
the provided constructor function.
@ -43,7 +43,7 @@ fill length ~item =
In the following example we'll read items from the standard input,
until the string "end" is entered by the user and then return a vector
containing all items.
from Base import all
from Standard.Base import all
main =
builder = Vector.new_builder
@ -533,7 +533,7 @@ type Vector
In the following example we'll read items from the standard input,
until the string "end" is entered by the user and then return a vector
containing all items.
from Base import all
from Standard.Base import all
main =
builder = Vector.new_builder

View File

@ -1,4 +1,4 @@
from Base import all
from Standard.Base import all
type Illegal_State_Error
## UNSTABLE

View File

@ -1,4 +1,4 @@
from Base import all
from Standard.Base import all
## Returns the method name of the method that could not be found.
No_Such_Method_Error.method_name : Text

View File

@ -1,4 +1,4 @@
from Base import all
from Standard.Base import all
## The mathematical constant pi, equal to the ratio of a circle circumference
to its diameter.

View File

@ -1,4 +1,5 @@
from Base import all
from Standard.Base import all
import Builtins
## Represents a polyglot language.

View File

@ -1,5 +1,6 @@
from Standard.Base import all
import Builtins
from Base import all
## Returns the root directory of the project.
Builtins.Project_Description.root : File.File

View File

@ -1,25 +1,26 @@
from Base import all
import Base.Data.Json
import Base.Network.Proxy
import Base.Network.Uri
import Base.Network.Http.Form
import Base.Network.Http.Header
import Base.Network.Http.Method
import Base.Network.Http.Request
import Base.Network.Http.Request.Body as Request_Body
import Base.Network.Http.Response
import Base.Network.Http.Version
import Base.System.File
import Base.Data.Time.Duration
import Base.Data.Time.Time
from Standard.Base import all
import Standard.Base.Data.Json
import Standard.Base.Data.Time.Duration
import Standard.Base.Data.Time.Time
import Standard.Base.Network.Http.Form
import Standard.Base.Network.Http.Header
import Standard.Base.Network.Http.Method
import Standard.Base.Network.Http.Request
import Standard.Base.Network.Http.Request.Body as Request_Body
import Standard.Base.Network.Http.Response
import Standard.Base.Network.Http.Version
import Standard.Base.Network.Proxy
import Standard.Base.Network.Uri
import Standard.Base.System.File
polyglot java import java.time.Duration as Java_Duration
polyglot java import java.net.InetSocketAddress
polyglot java import java.net.ProxySelector
polyglot java import java.net.URI
polyglot java import java.net.http.HttpClient
polyglot java import java.net.http.HttpRequest
polyglot java import java.net.http.HttpResponse
polyglot java import java.net.InetSocketAddress
polyglot java import java.net.ProxySelector
polyglot java import java.net.URI
polyglot java import java.time.Duration as Java_Duration
polyglot java import org.enso.base.Http_Utils
type Http

View File

@ -1,5 +1,6 @@
from Base import all
import Base.Data.Vector
from Standard.Base import all
import Standard.Base.Data.Vector
type To_Form

View File

@ -1,4 +1,4 @@
from Base import all
from Standard.Base import all
polyglot java import org.enso.base.Http_Utils

View File

@ -1,10 +1,11 @@
from Base import all
import Base.Network.Uri
import Base.Network.Http.Form
import Base.Network.Http.Header
import Base.Network.Http.Method
import Base.Network.Http.Request.Body as Request_Body
import Base.System.File
from Standard.Base import all
import Standard.Base.Network.Http.Form
import Standard.Base.Network.Http.Header
import Standard.Base.Network.Http.Method
import Standard.Base.Network.Http.Request.Body as Request_Body
import Standard.Base.Network.Uri
import Standard.Base.System.File
polyglot java import org.enso.base.Text_Utils

View File

@ -1,4 +1,4 @@
from Base import all
from Standard.Base import all
## The HTTP request body.
type Body

View File

@ -1,9 +1,9 @@
from Base import all
from Standard.Base import all
import Base.Data.Vector
import Base.Network.Http.Header
import Base.Network.Http.Response.Body as Response_Body
import Base.Network.Http.Status_Code
import Standard.Base.Data.Vector
import Standard.Base.Network.Http.Header
import Standard.Base.Network.Http.Response.Body as Response_Body
import Standard.Base.Network.Http.Status_Code
polyglot java import org.enso.base.Http_Utils

View File

@ -1,6 +1,7 @@
from Base import all
import Base.Data.Json
import Base.System.File
from Standard.Base import all
import Standard.Base.Data.Json
import Standard.Base.System.File
type Body

View File

@ -1,4 +1,4 @@
from Base import all
from Standard.Base import all
type Status_Code

View File

@ -1,4 +1,4 @@
from Base import all
from Standard.Base import all
## Proxy settings.
type Proxy

View File

@ -1,4 +1,4 @@
from Base import all
from Standard.Base import all
polyglot java import java.net.URI as Java_URI
polyglot java import java.util.Optional

View File

@ -1,4 +1,5 @@
from Base import all
from Standard.Base import all
import Builtins
## Checks whether an object is an instance of a given class.

View File

@ -1,12 +1,13 @@
from Base import all
import Base.System.File.Option
from Standard.Base import all
export Base.System.File.Option
import Standard.Base.System.File.Option
export Standard.Base.System.File.Option
polyglot java import java.nio.file.NoSuchFileException
polyglot java import java.nio.file.AccessDeniedException
polyglot java import java.io.IOException
polyglot java import java.io.InputStream as Java_Input_Stream
polyglot java import java.io.IOException
polyglot java import java.nio.file.AccessDeniedException
polyglot java import java.nio.file.NoSuchFileException
type File_Error
type No_Such_File_Error file

View File

@ -1,4 +1,4 @@
from Base import all
from Standard.Base import all
polyglot java import java.nio.file.StandardOpenOption

View File

@ -1,5 +1,6 @@
from Standard.Base import all
from Builtins import System
from Base import all
type Os
type Linux

View File

@ -1,5 +1,6 @@
import Base.System.Process.Exit_Code
from Base.Data.Vector import Vector
import Standard.Base.System.Process.Exit_Code
from Standard.Base.Data.Vector import Vector
from Builtins import Array, System, True, False
## The builder object that is used to create operating system processes.

View File

@ -0,0 +1,15 @@
import Standard.Database.Data.Table
import Standard.Database.Data.Column
import Standard.Database.Connection.Connection
import Standard.Database.Connection.Database
export Standard.Database.Data.Table
export Standard.Database.Data.Column
export Standard.Database.Connection.Connection
from Standard.Database.Connection.Database export all
import Standard.Table.Data.Table
import Standard.Table.Data.Order_Rule
from Standard.Table.Data.Table export No_Such_Column_Error
from Standard.Table.Data.Order_Rule export Order_Rule

View File

@ -1,12 +1,13 @@
from Base import all
from Standard.Base import all
import Database.Data.Table as Database_Table
import Table.Data.Table as Materialized_Table
import Database.Data.Dialect
import Database.Data.Sql
import Database.Data.Internal.IR
from Database.Data.Sql import Sql_Type
import Table.Internal.Java_Exports
import Standard.Database.Data.Dialect
import Standard.Database.Data.Internal.IR
import Standard.Database.Data.Sql
import Standard.Database.Data.Table as Database_Table
import Standard.Table.Data.Table as Materialized_Table
import Standard.Table.Internal.Java_Exports
from Standard.Database.Data.Sql import Sql_Type
polyglot java import java.util.ArrayList
polyglot java import java.sql.DriverManager

View File

@ -1,5 +1,6 @@
from Base import all
from Database.Connection.Connection import all
from Standard.Base import all
from Standard.Database.Connection.Connection import all
# TODO [RW] finalize Postgres support
## UNSTABLE

View File

@ -1,10 +1,12 @@
from Base import all
import Database.Data.Internal.Helpers
import Database.Data.Internal.IR
from Database.Data.Sql import Sql_Type
import Database.Data.Table
from Database.Data.Table import Integrity_Error
import Table.Data.Column as Materialized_Column
from Standard.Base import all
import Standard.Database.Data.Internal.Helpers
import Standard.Database.Data.Internal.IR
import Standard.Database.Data.Table
import Standard.Table.Data.Column as Materialized_Column
from Standard.Database.Data.Sql import Sql_Type
from Standard.Database.Data.Table import Integrity_Error
type Column

View File

@ -1,6 +1,7 @@
from Base import all
import Database.Data.Sql
import Database.Data.Internal.Base_Generator
from Standard.Base import all
import Standard.Database.Data.Sql
import Standard.Database.Data.Internal.Base_Generator
## PRIVATE

View File

@ -1,7 +1,9 @@
from Base import all
import Database.Data.Sql
import Database.Data.Internal.IR
from Database.Data.Sql import Sql_Type
from Standard.Base import all
import Standard.Database.Data.Sql
import Standard.Database.Data.Internal.IR
from Standard.Database.Data.Sql import Sql_Type
type Internal_Dialect
## PRIVATE

View File

@ -1,6 +1,8 @@
from Base import all
from Database.Data.Table as Table_Module import Table
from Database.Data.Column as Column_Module import Column
from Standard.Base import all
from Standard.Database.Data.Table as Table_Module import Table
from Standard.Database.Data.Column as Column_Module import Column
polyglot java import java.util.regex.Pattern
## PRIVATE

View File

@ -1,4 +1,4 @@
from Base import all
from Standard.Base import all
## PRIVATE

View File

@ -1,5 +1,6 @@
from Standard.Base import all
from Builtins import Array
from Base import all
## PRIVATE

View File

@ -1,5 +1,7 @@
from Base import all
import Database.Data.Internal.Vector_Builder
from Standard.Base import all
import Standard.Database.Data.Internal.Vector_Builder
polyglot java import java.sql.Types
## Represents an internal SQL data-type.

View File

@ -1,14 +1,16 @@
from Base import all
import Table.Data.Table as Materialized_Table
import Table.Data.Column as Materialized_Column
import Table.Internal.Java_Exports
from Table.Data.Table import No_Such_Column_Error
from Database.Data.Column as Column_Module import all
from Table.Data.Order_Rule as Order_Rule_Module import Order_Rule
import Database.Data.Internal.Helpers
import Database.Data.Internal.IR
from Database.Data.Internal.IR import Internal_Column
import Database.Data.Sql
from Standard.Base import all
import Standard.Database.Data.Internal.Helpers
import Standard.Database.Data.Internal.IR
import Standard.Database.Data.Sql
import Standard.Table.Data.Column as Materialized_Column
import Standard.Table.Data.Table as Materialized_Table
import Standard.Table.Internal.Java_Exports
from Standard.Database.Data.Column as Column_Module import all
from Standard.Database.Data.Internal.IR import Internal_Column
from Standard.Table.Data.Order_Rule as Order_Rule_Module import Order_Rule
from Standard.Table.Data.Table import No_Such_Column_Error
polyglot java import java.sql.JDBCType

View File

@ -1,5 +1,5 @@
from Base import all
from Table import all
from Standard.Base import all
from Standard.Table import all
## UNSTABLE

View File

@ -1,14 +1,16 @@
from Base import all
from Standard.Base import all
import Table.Io.Csv
import Table.Data.Table
import Table.Data.Column
import Table.Data.Order_Rule
import Standard.Table.Io.Csv
import Standard.Table.Data.Table
import Standard.Table.Data.Column
import Standard.Table.Data.Order_Rule
from Table.Io.Csv export all hiding Parser
export Table.Data.Column
from Table.Data.Table export new, from_rows, join, No_Such_Column_Error, Table
from Table.Data.Order_Rule export Order_Rule
from Standard.Table.Io.Csv export all hiding Parser
export Standard.Table.Data.Column
from Standard.Table.Data.Table export new, from_rows, join, No_Such_Column_Error, Table
from Standard.Table.Data.Order_Rule export Order_Rule
## Converts a JSON array into a dataframe, by looking up the requested keys
from each item.

View File

@ -1,6 +1,7 @@
from Base import all
import Table.Data.Table
import Table.Data.Storage
from Standard.Base import all
import Standard.Table.Data.Table
import Standard.Table.Data.Storage
polyglot java import org.enso.table.data.table.Column as Java_Column
polyglot java import org.enso.table.operations.OrderBuilder

View File

@ -1,4 +1,4 @@
from Base import all
from Standard.Base import all
type Order_Rule
## UNSTABLE

View File

@ -1,8 +1,10 @@
from Base import all
import Table.Io.Csv
import Table.Data.Column
import Base.System.Platform
from Table.Data.Order_Rule as Order_Rule_Module import Order_Rule
from Standard.Base import all
import Standard.Base.System.Platform
import Standard.Table.Data.Column
import Standard.Table.Io.Csv
from Standard.Table.Data.Order_Rule as Order_Rule_Module import Order_Rule
polyglot java import org.enso.table.data.table.Table as Java_Table
polyglot java import org.enso.table.operations.OrderBuilder

View File

@ -1,4 +1,4 @@
from Base import all
from Standard.Base import all
polyglot java import org.enso.table.data.table.Column
polyglot java import org.enso.table.data.table.Table

View File

@ -1,5 +1,6 @@
from Base import all
import Table.Data.Table
from Standard.Base import all
import Standard.Table.Data.Table
polyglot java import org.enso.table.format.csv.Parser

View File

@ -1,4 +1,4 @@
from Base import all
from Standard.Base import all
## The top-level entry point for a test suite.
type Suite specs

View File

@ -1,4 +1,4 @@
from Base import all
from Standard.Base import all
reverse_list = list ->
go = list -> acc -> case list of

View File

@ -1,7 +0,0 @@
Enso
Copyright 2020 - 2021 New Byte Order sp. z o. o.
'univocity-parsers', licensed under the Apache 2, is distributed with the std-lib-Table.
The license file can be found at `licenses/APACHE2.0`.
Copyright notices related to this dependency can be found in the directory `com.univocity.univocity-parsers-2.9.0`.

View File

@ -1,6 +0,0 @@
license: APLv2
name: Table
enso-version: default
version: "0.0.1"
author: "Enso Team <contact@enso.org>"
maintainer: "Enso Team <contact@enso.org>"

View File

@ -1,6 +0,0 @@
license: APLv2
name: Test
enso-version: default
version: "0.0.1"
author: "Enso Team <contact@enso.org>"
maintainer: "Enso Team <contact@enso.org>"

View File

@ -1,2 +0,0 @@
import Test.Test
from Test.Test export all

View File

@ -28,11 +28,11 @@ these libraries, as well as notes on how they should be used.
`Base` is the core library of Enso. It contains core types and data structures,
as well as basic functionality for interacting with the outside world. It can be
found in
[`distribution/std-lib/Base`](https://github.com/enso-org/enso/tree/main/distribution/std-lib/Base).
[`distribution/std-lib/Standard/src/`](https://github.com/enso-org/enso/tree/main/distribution/std-lib/Standard/src).
`Base` is intended to be imported unqualified at the top of the file:
`from Base import all`. Items not included in this unqualified import are
considered to be more specialist or internal, and should be intentionally
`from Standard.Base import all`. Items not included in this unqualified import
are considered to be more specialist or internal, and should be intentionally
imported by users.
### Builtins

View File

@ -46,7 +46,7 @@ Unqualified imports are broken up into three main categories:
module name, followed by an optional rename part (using the `as` keyword),
then the keywords `import all`. For example:
```
from Base.Data.List as Builtin_List import all
from Standard.Base.Data.List as Builtin_List import all
```
2. **Restricted Imports:** These import a specified set of names for use as
automatically resolved referent names. They consist of the keyword `from`,
@ -54,7 +54,7 @@ Unqualified imports are broken up into three main categories:
word `import` followed by a coma-separated list of referent names to be
imported. For example:
```
from Base.Data.List import Cons, Nil
from Standard.Base.Data.List import Cons, Nil
```
3. **Hiding Imports:** These are the inverse of restricted imports, and import
_all_ symbosl other than the named ones. They consist of the `from` keyword,
@ -62,7 +62,7 @@ Unqualified imports are broken up into three main categories:
words `import all hiding`, followed by a coma-separated list of referent
names to be excluded from the import. For example:
```
from Base.Data.List import all hiding Cons, Nil
from Standard.Base.Data.List import all hiding Cons, Nil
```
Imports in Enso _may_ introduce ambiguous symbols, but this is not an error
@ -92,7 +92,7 @@ Unqualified exports are broken up into three main categories:
module name, followed by an optional rename part (using the `as` keyword),
then the keywords `export all`. For example:
```
from Base.Data.List as Builtin_List export all
from Standard.Base.Data.List as Builtin_List export all
```
2. **Restricted Exports:** These export a specified set of names, behaving as
though they were redefined in the current scope. They consist of the keyword
@ -100,7 +100,7 @@ Unqualified exports are broken up into three main categories:
the word `export` followed by a coma-separated list of names to be exported.
For example:
```
from Base.Data.List export Cons, Nil, from_vector
from Standard.Base.Data.List export Cons, Nil, from_vector
```
3. **Hiding Exports:** These are the inverse of restricted exports, and export
_all_ symbols other than the named ones. They consist of the `from` keyword,
@ -108,7 +108,7 @@ Unqualified exports are broken up into three main categories:
words `export all hiding`, followed by a coma-separated list of names to be
excluded from the export. For example:
```
from Base.Data.List export all hiding from_vector, Nil
from Standard.Base.Data.List export all hiding from_vector, Nil
```
In essence, an export allows the user to "paste" the contents of the module

View File

@ -1 +1 @@
test-log-level=info
test-log-level=warning

View File

@ -171,11 +171,14 @@ class ModuleManagementTest extends AnyFlatSpec with Matchers {
|import Test.Main
|
|bar = Main.foo + 1
|""".stripMargin,
|""".stripMargin.replace("\r\n", "\n"),
"X2"
)
val exception =
the[PolyglotException] thrownBy mod2.getAssociatedConstructor
exception.getMessage shouldEqual "Module_Does_Not_Exist"
exception.getMessage shouldEqual "org.enso.compiler.exception." +
"CompilerError: Compiler Internal Error: Attempted to import the " +
"unresolved module Test.Main during code generation. Defined at " +
"X2[2:1-2:16]."
}
}

Some files were not shown because too many files have changed in this diff Show More