hypar-io / IFC-gen

Industry Foundation Classes (IFC) code generator.
MIT License
133 stars 34 forks source link

Implement functions in Typescript. #31

Open ikeough opened 6 years ago

ikeough commented 6 years ago

Functions.g.ts contains stubs for all functions from the specification. These require implementation.

pablo-mayrgundter commented 2 years ago

Hi Ian, I'm taking a look but having some build troubles.

make generate

works, but make ts

fails with

pablo@top:~/c/pm/IFC-gen> make ts
dotnet build ./src/IFC-gen.csproj

Welcome to .NET 6.0!
---------------------
SDK Version: 6.0.110

Telemetry
---------
The .NET tools collect usage data in order to help us improve your experience. It is collected by Microsoft and shared with the community. You can opt-out of telemetry by setting the DOTNET_CLI_TELEMETRY_OPTOUT environment variable to '1' or 'true' using your favorite shell.

Read more about .NET CLI Tools telemetry: https://aka.ms/dotnet-cli-telemetry

----------------
Installed an ASP.NET Core HTTPS development certificate.
To trust the certificate run 'dotnet dev-certs https --trust' (Windows and macOS only).
Learn about HTTPS: https://aka.ms/dotnet-https
----------------
Write your first app: https://aka.ms/dotnet-hello-world
Find out what's new: https://aka.ms/dotnet-whats-new
Explore documentation: https://aka.ms/dotnet-docs
Report issues and find source on GitHub: https://github.com/dotnet/core
Use 'dotnet --help' to see available commands or visit: https://aka.ms/dotnet-cli
--------------------------------------------------------------------------------------
Microsoft (R) Build Engine version 17.0.1+b177f8fa7 for .NET
Copyright (C) Microsoft Corporation. All rights reserved.

  Determining projects to restore...
/Users/pablo/brew/Cellar/dotnet/6.0.110/libexec/sdk/6.0.110/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.EolTargetFrameworks.targets(28,5): warning NETSDK1138: The target framework 'netcoreapp2.0' is out of support and will not receive security updates in the future. Please refer to https://aka.ms/dotnet-core-support for more information about the support policy. [/Users/pablo/c/pm/IFC-gen/src/IFC-gen.csproj]/Users/pablo/brew/Cellar/dotnet/6.0.110/libexec/sdk/6.0.110/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.EolTargetFrameworks.targets(28,5): warning NETSDK1138: The target framework 'netcoreapp2.0' is out of support and will not receive security updates in the future. Please refer to https://aka.ms/dotnet-core-support for more information about the support policy. [/Users/pablo/c/pm/IFC-gen/src/IFC-gen.csproj]
/Users/pablo/c/pm/IFC-gen/src/IFC-gen.csproj : warning NU1701: Package 'NDesk.Options 0.2.1' was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8' instead of the project target framework '.NETCoreApp,Version=v2.0'. This package may not be fully compatible with your project.
  Restored /Users/pablo/c/pm/IFC-gen/src/IFC-gen.csproj (in 1.75 sec).
/Users/pablo/brew/Cellar/dotnet/6.0.110/libexec/sdk/6.0.110/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.EolTargetFrameworks.targets(28,5): warning NETSDK1138: The target framework 'netcoreapp2.0' is out of support and will not receive security updates in the future. Please refer to https://aka.ms/dotnet-core-support for more information about the support policy. [/Users/pablo/c/pm/IFC-gen/src/IFC-gen.csproj]
/Users/pablo/c/pm/IFC-gen/src/IFC-gen.csproj : warning NU1701: Package 'NDesk.Options 0.2.1' was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8' instead of the project target framework '.NETCoreApp,Version=v2.0'. This package may not be fully compatible with your project.
/Users/pablo/c/pm/IFC-gen/src/antlr/ExpressLexer.cs(169,24): error CS1715: 'ExpressLexer.SerializedAtn': type must be 'string' to match overridden member 'Recognizer<int, LexerATNSimulator>.SerializedAtn' [/Users/pablo/c/pm/IFC-gen/src/IFC-gen.csproj]
/Users/pablo/c/pm/IFC-gen/src/antlr/ExpressParser.cs(206,24): error CS1715: 'ExpressParser.SerializedAtn': type must be 'string' to match overridden member 'Recognizer<IToken, ParserATNSimulator>.SerializedAtn' [/Users/pablo/c/pm/IFC-gen/src/IFC-gen.csproj]
/Users/pablo/c/pm/IFC-gen/src/antlr/ExpressBaseListener.cs(38,22): warning CS3021: 'ExpressBaseListener' does not need a CLSCompliant attribute because the assembly does not have a CLSCompliant attribute [/Users/pablo/c/pm/IFC-gen/src/IFC-gen.csproj]
/Users/pablo/c/pm/IFC-gen/src/antlr/ExpressLexer.cs(33,22): warning CS3021: 'ExpressLexer' does not need a CLSCompliant attribute because the assembly does not have a CLSCompliant attribute [/Users/pablo/c/pm/IFC-gen/src/IFC-gen.csproj]
/Users/pablo/c/pm/IFC-gen/src/antlr/ExpressListener.cs(33,18): warning CS3021: 'IExpressListener' does not need a CLSCompliant attribute because the assembly does not have a CLSCompliant attribute [/Users/pablo/c/pm/IFC-gen/src/IFC-gen.csproj]
/Users/pablo/c/pm/IFC-gen/src/antlr/ExpressParser.cs(36,22): warning CS3021: 'ExpressParser' does not need a CLSCompliant attribute because the assembly does not have a CLSCompliant attribute [/Users/pablo/c/pm/IFC-gen/src/IFC-gen.csproj]

Build FAILED.

/Users/pablo/brew/Cellar/dotnet/6.0.110/libexec/sdk/6.0.110/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.EolTargetFrameworks.targets(28,5): warning NETSDK1138: The target framework 'netcoreapp2.0' is out of support and will not receive security updates in the future. Please refer to https://aka.ms/dotnet-core-support for more information about the support policy. [/Users/pablo/c/pm/IFC-gen/src/IFC-gen.csproj]
/Users/pablo/brew/Cellar/dotnet/6.0.110/libexec/sdk/6.0.110/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.EolTargetFrameworks.targets(28,5): warning NETSDK1138: The target framework 'netcoreapp2.0' is out of support and will not receive security updates in the future. Please refer to https://aka.ms/dotnet-core-support for more information about the support policy. [/Users/pablo/c/pm/IFC-gen/src/IFC-gen.csproj]
/Users/pablo/c/pm/IFC-gen/src/IFC-gen.csproj : warning NU1701: Package 'NDesk.Options 0.2.1' was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8' instead of the project target framework '.NETCoreApp,Version=v2.0'. This package may not be fully compatible with your project.
/Users/pablo/brew/Cellar/dotnet/6.0.110/libexec/sdk/6.0.110/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.EolTargetFrameworks.targets(28,5): warning NETSDK1138: The target framework 'netcoreapp2.0' is out of support and will not receive security updates in the future. Please refer to https://aka.ms/dotnet-core-support for more information about the support policy. [/Users/pablo/c/pm/IFC-gen/src/IFC-gen.csproj]
/Users/pablo/c/pm/IFC-gen/src/IFC-gen.csproj : warning NU1701: Package 'NDesk.Options 0.2.1' was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8' instead of the project target framework '.NETCoreApp,Version=v2.0'. This package may not be fully compatible with your project.
/Users/pablo/c/pm/IFC-gen/src/antlr/ExpressBaseListener.cs(38,22): warning CS3021: 'ExpressBaseListener' does not need a CLSCompliant attribute because the assembly does not have a CLSCompliant attribute [/Users/pablo/c/pm/IFC-gen/src/IFC-gen.csproj]
/Users/pablo/c/pm/IFC-gen/src/antlr/ExpressLexer.cs(33,22): warning CS3021: 'ExpressLexer' does not need a CLSCompliant attribute because the assembly does not have a CLSCompliant attribute [/Users/pablo/c/pm/IFC-gen/src/IFC-gen.csproj]
/Users/pablo/c/pm/IFC-gen/src/antlr/ExpressListener.cs(33,18): warning CS3021: 'IExpressListener' does not need a CLSCompliant attribute because the assembly does not have a CLSCompliant attribute [/Users/pablo/c/pm/IFC-gen/src/IFC-gen.csproj]
/Users/pablo/c/pm/IFC-gen/src/antlr/ExpressParser.cs(36,22): warning CS3021: 'ExpressParser' does not need a CLSCompliant attribute because the assembly does not have a CLSCompliant attribute [/Users/pablo/c/pm/IFC-gen/src/IFC-gen.csproj]
/Users/pablo/c/pm/IFC-gen/src/antlr/ExpressLexer.cs(169,24): error CS1715: 'ExpressLexer.SerializedAtn': type must be 'string' to match overridden member 'Recognizer<int, LexerATNSimulator>.SerializedAtn' [/Users/pablo/c/pm/IFC-gen/src/IFC-gen.csproj]
/Users/pablo/c/pm/IFC-gen/src/antlr/ExpressParser.cs(206,24): error CS1715: 'ExpressParser.SerializedAtn': type must be 'string' to match overridden member 'Recognizer<IToken, ParserATNSimulator>.SerializedAtn' [/Users/pablo/c/pm/IFC-gen/src/IFC-gen.csproj]
    9 Warning(s)
    2 Error(s)

Time Elapsed 00:00:03.16
make: *** [default] Error 1