Skip to content
Browse files

Renaming FunJS to FunScript: grep + sed FTW!

  • Loading branch information...
1 parent 013ebca commit 62169235e504723a7503014ea93937c9763d2d08 @ZachBray committed Dec 22, 2012
Showing with 839 additions and 429 deletions.
  1. +0 −49 Backup/FunJS.TypeScript.Interop.fsproj
  2. +0 −30 Backup/Interop.fs
  3. 0 Examples/Brainfuck/{FunJS.Brainfuck.Logic → FunScript.Brainfuck.Logic}/App.config
  4. +9 −9 ....Logic/FunJS.Brainfuck.Logic.fsproj → FunScript.Brainfuck.Logic/FunScript.Brainfuck.Logic.fsproj}
  5. +8 −8 Examples/Brainfuck/{FunJS.Brainfuck.Logic → FunScript.Brainfuck.Logic}/Program.fs
  6. 0 Examples/Brainfuck/{FunJS.Brainfuck.Website → FunScript.Brainfuck.Website}/.gitignore
  7. +2 −2 .../FunJS.Brainfuck.Website.csproj → FunScript.Brainfuck.Website/FunScript.Brainfuck.Website.csproj}
  8. 0 Examples/Brainfuck/{FunJS.Brainfuck.Website → FunScript.Brainfuck.Website}/config.rb
  9. 0 Examples/Brainfuck/{FunJS.Brainfuck.Website → FunScript.Brainfuck.Website}/index.html
  10. 0 Examples/Brainfuck/{FunJS.Brainfuck.Website → FunScript.Brainfuck.Website}/jquery-1.8.0.js
  11. 0 Examples/Brainfuck/{FunJS.Brainfuck.Website → FunScript.Brainfuck.Website}/sass/_base.sass
  12. 0 Examples/Brainfuck/{FunJS.Brainfuck.Website → FunScript.Brainfuck.Website}/sass/screen.sass
  13. 0 Examples/Brainfuck/{FunJS.Brainfuck.Website → FunScript.Brainfuck.Website}/stylesheets/screen.css
  14. +2 −2 Examples/Brainfuck/{FunJS.Brainfuck.sln → FunScript.Brainfuck.sln}
  15. +6 −6 Examples/Canvas/Canvas.fsproj
  16. +0 −20 Examples/Canvas/Canvas.sln
  17. +2 −2 Examples/Canvas/Page.fs
  18. 0 Examples/{FunJS.Examples.sln → FunScript.Examples.sln}
  19. +2 −2 Examples/Mandelbrot/Mandelbrot.fsproj
  20. +1 −1 Examples/Mandelbrot/Page.fs
  21. +2 −2 Examples/Shared/Extensions.fs
  22. +3 −3 Examples/Shared/Launcher.fs
  23. +4 −4 Examples/SimpleAsync/Page.fs
  24. +9 −9 Examples/SimpleAsync/SimpleAsync.fsproj
  25. +3 −3 Examples/SimpleAsync/index.html
  26. +4 −4 Examples/Twitter/Program.fs
  27. +11 −11 Examples/Twitter/Twitter.fsproj
  28. +1 −1 Examples/Twitter/index.html
  29. +2 −2 Examples/WorldBank/Page.fs
  30. +11 −11 Examples/WorldBank/WorldBank.fsproj
  31. +0 −10 FunJS/Core/GenericConstants.fs
  32. +0 −2 FunJS/Core/KeyValuePair.fs
  33. +5 −5 {FunJS.BrowserAPI → FunScript.BrowserAPI}/DomEvents.fs
  34. +7 −7 FunJS.BrowserAPI/FunJS.BrowserAPI.fsproj → FunScript.BrowserAPI/FunScript.BrowserAPI.fsproj
  35. +3 −3 {FunJS.Data → FunScript.Data}/Apiary.fs.exclude
  36. +2 −2 {FunJS.Data → FunScript.Data}/Components.fs
  37. +9 −9 FunJS.Data/FunJS.Data.fsproj → FunScript.Data/FunScript.Data.fsproj
  38. +2 −2 {FunJS.Data → FunScript.Data}/JsonProvider.fs
  39. +3 −3 {FunJS.Data → FunScript.Data}/WorldBankProvider.fs
  40. 0 {FunJS.Data → FunScript.Data}/packages.config
  41. 0 {FunJS.Data → FunScript.Data}/worldbank.json
  42. +1 −1 FunJS.Libraries.sln → FunScript.Libraries.sln
  43. +1 −1 {FunJS.Tests → FunScript.Tests}/Arithmetic.fs
  44. +1 −1 {FunJS.Tests → FunScript.Tests}/Arrays.fs
  45. +2 −2 {FunJS.Tests → FunScript.Tests}/Asyncs.fs
  46. +3 −3 {FunJS.Tests → FunScript.Tests}/Common.fs
  47. +2 −2 {FunJS.Tests → FunScript.Tests}/CommonOperators.fs
  48. +2 −2 {FunJS.Tests → FunScript.Tests}/Comparison.fs
  49. +1 −1 {FunJS.Tests → FunScript.Tests}/ControlFlow.fs
  50. +8 −8 FunJS.Tests/FunJS.Tests.fsproj → FunScript.Tests/FunScript.Tests.fsproj
  51. +1 −1 {FunJS.Tests → FunScript.Tests}/Interactive.fsx
  52. +2 −2 {FunJS.Tests → FunScript.Tests}/LambdaApplication.fs
  53. +1 −1 {FunJS.Tests → FunScript.Tests}/LetBindings.fs
  54. +1 −1 {FunJS.Tests → FunScript.Tests}/Lists.fs
  55. +1 −1 {FunJS.Tests → FunScript.Tests}/Logic.fs
  56. +2 −2 {FunJS.Tests → FunScript.Tests}/Maps.fs
  57. +1 −1 {FunJS.Tests → FunScript.Tests}/Options.fs
  58. +1 −1 {FunJS.Tests → FunScript.Tests}/PrimitiveTypes.fs
  59. +2 −2 {FunJS.Tests → FunScript.Tests}/RecordTypes.fs
  60. +2 −2 {FunJS.Tests → FunScript.Tests}/ReflectedDefinitions.fs
  61. +2 −2 {FunJS.Tests → FunScript.Tests}/Seqs.fs
  62. +2 −2 {FunJS.Tests → FunScript.Tests}/Sets.fs
  63. +3 −3 {FunJS.Tests → FunScript.Tests}/Strings.fs
  64. +1 −1 {FunJS.Tests → FunScript.Tests}/Tuples.fs
  65. +1 −1 {FunJS.Tests → FunScript.Tests}/UnionTypes.fs
  66. 0 {FunJS.Tests → FunScript.Tests}/app.config
  67. 0 {FunJS.Tests → FunScript.Tests}/packages.config
  68. +4 −4 ...unJS.TypeScript.Interop.fsproj → FunScript.TypeScript.Interop/FunScript.TypeScript.Interop.fsproj
  69. +5 −5 {FunJS.TypeScript.Interop → FunScript.TypeScript.Interop}/Interop.fs
  70. +1 −1 {FunJS.TypeScript → FunScript.TypeScript}/AST.fs
  71. +18 −19 FunJS.TypeScript/FunJS.TypeScript.fsproj → FunScript.TypeScript/FunScript.TypeScript.fsproj
  72. +1 −1 {FunJS.TypeScript → FunScript.TypeScript}/Parser.fs
  73. 0 {FunJS.TypeScript → FunScript.TypeScript}/ProvidedTypes.fs
  74. +2 −2 {FunJS.TypeScript → FunScript.TypeScript}/Provider.fs
  75. +2 −2 {FunJS.TypeScript → FunScript.TypeScript}/TypeGenerator.fs
  76. +6 −6 FunJS.sln → FunScript.sln
  77. +1 −1 {FunJS → FunScript}/AST.fs
  78. +1 −1 {FunJS → FunScript}/Arithmetic.fs
  79. +2 −2 {FunJS → FunScript}/Arrays.fs
  80. +1 −1 {FunJS → FunScript}/Asyncs.fs
  81. +1 −1 {FunJS → FunScript}/AttributeHelpers.fs
  82. +1 −1 {FunJS → FunScript}/Attributes.fs
  83. +5 −5 {FunJS → FunScript}/CommonOperators.fs
  84. +1 −1 {FunJS → FunScript}/Comparison.fs
  85. +2 −2 {FunJS → FunScript}/Compiler.fs
  86. +1 −1 {FunJS → FunScript}/CompilerComponent.fs
  87. +1 −1 {FunJS → FunScript}/ControlFlow.fs
  88. +3 −3 {FunJS → FunScript}/Core/Array.fs
  89. +3 −3 {FunJS → FunScript}/Core/Async.fs
  90. +3 −3 {FunJS → FunScript}/Core/Events.fs
  91. +10 −0 FunScript/Core/GenericConstants.fs
  92. +2 −0 FunScript/Core/KeyValuePair.fs
  93. +3 −3 {FunJS → FunScript}/Core/LanguagePrimitives.fs
  94. +10 −10 {FunJS → FunScript}/Core/Map.fs
  95. +3 −3 {FunJS → FunScript}/Core/Option.fs
  96. +3 −3 {FunJS → FunScript}/Core/Range.fs
  97. +3 −3 {FunJS → FunScript}/Core/Seq.fs
  98. +4 −4 {FunJS → FunScript}/Core/Set.fs
  99. +14 −14 {FunJS → FunScript}/Core/String.fs
  100. +3 −3 {FunJS → FunScript}/Core/list.fs
  101. +1 −1 {FunJS → FunScript}/ExprExtensions.fs
  102. +1 −1 {FunJS → FunScript}/ExpressionReplacer.fs
  103. +5 −5 FunJS/FunJS.fsproj → FunScript/FunScript.fsproj
  104. +1 −1 {FunJS → FunScript}/InternalCompiler.fs
  105. +1 −1 {FunJS → FunScript}/JavaScriptNameMapper.fs
  106. +1 −1 {FunJS → FunScript}/LambdaApplication.fs
  107. +1 −1 {FunJS → FunScript}/LetBindings.fs
  108. +2 −2 {FunJS → FunScript}/Lists.fs
  109. +1 −1 {FunJS → FunScript}/Logic.fs
  110. +3 −3 {FunJS → FunScript}/Maps.fs
  111. +1 −1 {FunJS → FunScript}/Objects.fs
  112. +4 −4 {FunJS → FunScript}/Options.fs
  113. +1 −1 {FunJS → FunScript}/PrimitiveTypes.fs
  114. +1 −1 {FunJS → FunScript}/QuoteExtensions.fs
  115. +1 −1 {FunJS → FunScript}/RecordTypes.fs
  116. +1 −1 {FunJS → FunScript}/ReflectedDefinitions.fs
  117. +1 −1 {FunJS → FunScript}/ReturnStrategies.fs
  118. +2 −2 {FunJS → FunScript}/Seqs.fs
  119. +3 −3 {FunJS → FunScript}/Sets.fs
  120. +3 −3 {FunJS → FunScript}/Strings.fs
  121. 0 {FunJS → FunScript}/ThirdParty/Jint.dll
  122. +1 −1 {FunJS → FunScript}/Tuples.fs
  123. +1 −1 {FunJS → FunScript}/UnionTypes.fs
  124. +523 −13 TestResult.xml
  125. +2 −2 packages/repositories.config
View
49 Backup/FunJS.TypeScript.Interop.fsproj
@@ -1,49 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <ProductVersion>10.0.0</ProductVersion>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{0803BEFE-9F5F-4A5F-8572-6A8B5D089506}</ProjectGuid>
- <OutputType>Library</OutputType>
- <RootNamespace>FunJS.TypeScript.Interop</RootNamespace>
- <AssemblyName>FunJS.TypeScript.Interop</AssemblyName>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- <DebugSymbols>true</DebugSymbols>
- <DebugType>full</DebugType>
- <OutputPath>bin\Debug</OutputPath>
- <DefineConstants>DEBUG</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <ConsolePause>False</ConsolePause>
- <PlatformTarget />
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- <DebugSymbols>true</DebugSymbols>
- <DebugType>pdbonly</DebugType>
- <Optimize>true</Optimize>
- <OutputPath>bin\Release</OutputPath>
- <ErrorReport>prompt</ErrorReport>
- <Tailcalls>true</Tailcalls>
- <ConsolePause>False</ConsolePause>
- <PlatformTarget />
- </PropertyGroup>
- <ItemGroup>
- <Reference Include="mscorlib" />
- <Reference Include="FSharp.Core, Version=4.3.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
- <Reference Include="System" />
- <Reference Include="System.Core" />
- <Reference Include="System.Numerics" />
- </ItemGroup>
- <ItemGroup>
- <Compile Include="Interop.fs" />
- </ItemGroup>
- <Import Project="$(MSBuildExtensionsPath32)\..\Microsoft F#\v4.0\Microsoft.FSharp.Targets" />
- <ItemGroup>
- <ProjectReference Include="..\FunJS\FunJS.fsproj">
- <Project>e0916e67-d3b0-4c3a-ad18-4146882fcedd</Project>
- <Name>FunJS</Name>
- </ProjectReference>
- </ItemGroup>
-</Project>
View
30 Backup/Interop.fs
@@ -1,30 +0,0 @@
-namespace FunJS.TypeScript
-
-
-open System.Reflection
-
-type Emit() =
- static member CallImpl (isStatic:bool) (name:string) (args:obj[]):obj =
- failwith "never"
- static member Call =
- let flags = BindingFlags.Public ||| BindingFlags.Static
- typeof<Emit>.GetMethod("CallImpl", flags)
-
-namespace FunJS.Interop
-
-open FunJS
-open FunJS.AST
-open FunJS.TypeScript
-
-module Components =
- let private callReplacement =
- CompilerComponent.ternary <@ Emit.CallImpl @> (fun isStaticExpr objExpr argExpr ->
- match isStaticExpr, objExpr, argExpr with
- | Boolean isStatic, String meth, Array exprs ->
- if isStatic then Apply(UnsafeReference meth, exprs)
- else Apply(PropertyGet(exprs.Head, meth), exprs.Tail)
- | _ -> failwith "Expected a string and an array")
-
- let all = [
- callReplacement
- ]
View
0 ...rainfuck/FunJS.Brainfuck.Logic/App.config → ...fuck/FunScript.Brainfuck.Logic/App.config
File renamed without changes.
View
18 ...infuck.Logic/FunJS.Brainfuck.Logic.fsproj → ...ck.Logic/FunScript.Brainfuck.Logic.fsproj
@@ -7,10 +7,10 @@
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>7df4263d-ad55-4c6a-9998-054e210a2ef6</ProjectGuid>
<OutputType>Exe</OutputType>
- <RootNamespace>FunJS.BrainFuck</RootNamespace>
- <AssemblyName>FunJS.BrainFuck</AssemblyName>
+ <RootNamespace>FunScript.BrainFuck</RootNamespace>
+ <AssemblyName>FunScript.BrainFuck</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
- <Name>FunJS.BrainFuck</Name>
+ <Name>FunScript.BrainFuck</Name>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
@@ -22,7 +22,7 @@
<DefineConstants>DEBUG;TRACE</DefineConstants>
<WarningLevel>3</WarningLevel>
<PlatformTarget>AnyCPU</PlatformTarget>
- <DocumentationFile>..\bin\Debug\FunJS.BrainFuck.XML</DocumentationFile>
+ <DocumentationFile>..\bin\Debug\FunScript.BrainFuck.XML</DocumentationFile>
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
@@ -33,15 +33,15 @@
<DefineConstants>TRACE</DefineConstants>
<WarningLevel>3</WarningLevel>
<PlatformTarget>AnyCPU</PlatformTarget>
- <DocumentationFile>..\bin\Release\FunJS.BrainFuck.XML</DocumentationFile>
+ <DocumentationFile>..\bin\Release\FunScript.BrainFuck.XML</DocumentationFile>
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>
<ItemGroup>
- <Reference Include="FunJS">
- <HintPath>..\..\..\FunJS.TypeScript\bin\Debug\FunJS.dll</HintPath>
+ <Reference Include="FunScript">
+ <HintPath>..\..\..\FunScript.TypeScript\bin\Debug\FunScript.dll</HintPath>
</Reference>
- <Reference Include="FunJS.TypeScript">
- <HintPath>..\..\..\FunJS.TypeScript\bin\Debug\FunJS.TypeScript.dll</HintPath>
+ <Reference Include="FunScript.TypeScript">
+ <HintPath>..\..\..\FunScript.TypeScript\bin\Debug\FunScript.TypeScript.dll</HintPath>
</Reference>
<Reference Include="mscorlib" />
<Reference Include="FSharp.Core, Version=4.3.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
View
16 ...rainfuck/FunJS.Brainfuck.Logic/Program.fs → ...fuck/FunScript.Brainfuck.Logic/Program.fs
@@ -1,12 +1,12 @@
[<ReflectedDefinition>]
module Program
-open FunJS
+open FunScript
open System
-open FunJS.Core.Events
+open FunScript.Core.Events
-type Dom = FunJS.TypeScript.Api< @"..\..\..\Examples\Typings\lib.d.ts" >
-type J = FunJS.TypeScript.Api< @"..\..\..\Examples\Typings\jquery.d.ts" >
+type Dom = FunScript.TypeScript.Api< @"..\..\..\Examples\Typings\lib.d.ts" >
+type J = FunScript.TypeScript.Api< @"..\..\..\Examples\Typings\jquery.d.ts" >
[<JSEmit("alert({0});")>]
let alert (x:obj): unit = failwith "never"
@@ -21,7 +21,7 @@ let clear element : unit = failwith "never"
[<JSEmit("{0}.value += {1};")>]
let output element value : unit = failwith "never"
-//[<FunJS.JSEmit("return {0};")>]
+//[<FunScript.JSEmit("return {0};")>]
//let private stringToByte (str:string) : byte = failwith "never"
let run (program:string) (inputChar: Async<byte>) (outputChar:string -> unit) =
@@ -49,13 +49,13 @@ let run (program:string) (inputChar: Async<byte>) (outputChar:string -> unit) =
| _ -> incr pc
}
-[<FunJS.JSEmit("{0}.addEventListener({1},{2});")>]
+[<FunScript.JSEmit("{0}.addEventListener({1},{2});")>]
let private addEventListener (element:obj) (eventName:string) (handler:'T -> unit) : unit = failwith "never"
-[<FunJS.JSEmit("{0}.removeEventListener({1},{2});")>]
+[<FunScript.JSEmit("{0}.removeEventListener({1},{2});")>]
let private removeEventListener (element:obj) (eventName:string) (handler:'T -> unit) : unit = failwith "never"
-[<FunJS.JSEmit("return {0}.charCode;")>]
+[<FunScript.JSEmit("return {0}.charCode;")>]
let getKeyFromEvent e : byte = failwith "never"
/// A wrapper around DOM Events
View
0 ...infuck/FunJS.Brainfuck.Website/.gitignore → ...ck/FunScript.Brainfuck.Website/.gitignore
File renamed without changes.
View
4 ...ck.Website/FunJS.Brainfuck.Website.csproj → ...ebsite/FunScript.Brainfuck.Website.csproj
@@ -7,8 +7,8 @@
<ProjectGuid>{FA9A7393-4CCC-41B7-B001-6DE963EBC2CC}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
- <RootNamespace>FunJS.Brainfuck.Website</RootNamespace>
- <AssemblyName>FunJS.Brainfuck.Website</AssemblyName>
+ <RootNamespace>FunScript.Brainfuck.Website</RootNamespace>
+ <AssemblyName>FunScript.Brainfuck.Website</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
</PropertyGroup>
View
0 ...ainfuck/FunJS.Brainfuck.Website/config.rb → ...uck/FunScript.Brainfuck.Website/config.rb
File renamed without changes.
View
0 ...infuck/FunJS.Brainfuck.Website/index.html → ...ck/FunScript.Brainfuck.Website/index.html
File renamed without changes.
View
0 ...k/FunJS.Brainfuck.Website/jquery-1.8.0.js → ...nScript.Brainfuck.Website/jquery-1.8.0.js
File renamed without changes.
View
0 ...k/FunJS.Brainfuck.Website/sass/_base.sass → ...nScript.Brainfuck.Website/sass/_base.sass
File renamed without changes.
View
0 .../FunJS.Brainfuck.Website/sass/screen.sass → ...Script.Brainfuck.Website/sass/screen.sass
File renamed without changes.
View
0 ....Brainfuck.Website/stylesheets/screen.css → ....Brainfuck.Website/stylesheets/screen.css
File renamed without changes.
View
4 Examples/Brainfuck/FunJS.Brainfuck.sln → Examples/Brainfuck/FunScript.Brainfuck.sln
@@ -1,9 +1,9 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2012
-Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "FunJS.Brainfuck", "FunJS.Brainfuck.Logic\FunJS.Brainfuck.Logic.fsproj", "{7DF4263D-AD55-4C6A-9998-054E210A2EF6}"
+Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "FunScript.Brainfuck", "FunScript.Brainfuck.Logic\FunScript.Brainfuck.Logic.fsproj", "{7DF4263D-AD55-4C6A-9998-054E210A2EF6}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FunJS.Brainfuck.Website", "FunJS.Brainfuck.Website\FunJS.Brainfuck.Website.csproj", "{FA9A7393-4CCC-41B7-B001-6DE963EBC2CC}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FunScript.Brainfuck.Website", "FunScript.Brainfuck.Website\FunScript.Brainfuck.Website.csproj", "{FA9A7393-4CCC-41B7-B001-6DE963EBC2CC}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
View
12 Examples/Canvas/Canvas.fsproj
@@ -37,14 +37,14 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="FSharp.Core, Version=4.3.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
- <Reference Include="FunJS">
- <HintPath>..\..\FunJS.TypeScript\bin\Debug\FunJS.dll</HintPath>
+ <Reference Include="FunScript">
+ <HintPath>..\..\FunScript.TypeScript\bin\Debug\FunScript.dll</HintPath>
</Reference>
- <Reference Include="FunJS.TypeScript">
- <HintPath>..\..\FunJS.TypeScript\bin\Debug\FunJS.TypeScript.dll</HintPath>
+ <Reference Include="FunScript.TypeScript">
+ <HintPath>..\..\FunScript.TypeScript\bin\Debug\FunScript.TypeScript.dll</HintPath>
</Reference>
- <Reference Include="FunJS.TypeScript.Interop">
- <HintPath>..\..\FunJS.TypeScript\bin\Debug\FunJS.TypeScript.Interop.dll</HintPath>
+ <Reference Include="FunScript.TypeScript.Interop">
+ <HintPath>..\..\FunScript.TypeScript\bin\Debug\FunScript.TypeScript.Interop.dll</HintPath>
</Reference>
<Reference Include="System.Net" />
<Reference Include="System.Web" />
View
20 Examples/Canvas/Canvas.sln
@@ -1,20 +0,0 @@
-
-Microsoft Visual Studio Solution File, Format Version 11.00
-# Visual Studio 2010
-Project("{4925A630-B079-445d-BCD4-3A9C94FE9307}") = "Canvas", "Canvas.fsproj", "761ce569-eddc-4163-95b4-30ade1f4bd07"
-EndProject
-Global
- GlobalSection(SolutionConfigurationPlatforms) = preSolution
- Debug|Any CPU = Debug|Any CPU
- Release|Any CPU = Release|Any CPU
- EndGlobalSection
- GlobalSection(ProjectConfigurationPlatforms) = postSolution
- 761ce569-eddc-4163-95b4-30ade1f4bd07.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- 761ce569-eddc-4163-95b4-30ade1f4bd07.Debug|Any CPU.Build.0 = Debug|Any CPU
- 761ce569-eddc-4163-95b4-30ade1f4bd07.Release|Any CPU.ActiveCfg = Release|Any CPU
- 761ce569-eddc-4163-95b4-30ade1f4bd07.Release|Any CPU.Build.0 = Release|Any CPU
- EndGlobalSection
- GlobalSection(MonoDevelopProperties) = preSolution
- StartupItem = Canvas.fsproj
- EndGlobalSection
-EndGlobal
View
4 Examples/Canvas/Page.fs
@@ -1,8 +1,8 @@
[<ReflectedDefinition>]
module Program
-open FunJS
-open FunJS.TypeScript
+open FunScript
+open FunScript.TypeScript
type ts = Api< "Examples/Typings/lib.d.ts" >
View
0 Examples/FunJS.Examples.sln → Examples/FunScript.Examples.sln
File renamed without changes.
View
4 Examples/Mandelbrot/Mandelbrot.fsproj
@@ -36,8 +36,8 @@
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>
<ItemGroup>
- <Reference Include="FunJS">
- <HintPath>..\..\FunJS.TypeScript\bin\Debug\FunJS.dll</HintPath>
+ <Reference Include="FunScript">
+ <HintPath>..\..\FunScript.TypeScript\bin\Debug\FunScript.dll</HintPath>
</Reference>
<Reference Include="mscorlib" />
<Reference Include="FSharp.Core, Version=4.3.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
View
2 Examples/Mandelbrot/Page.fs
@@ -1,7 +1,7 @@
[<ReflectedDefinition>]
module Program
-open FunJS
+open FunScript
type Complex = { r : double; i : double }
type Color = { r : int; g : int; b : int; a : int }
View
4 Examples/Shared/Extensions.fs
@@ -1,11 +1,11 @@
-namespace FunJS
+namespace FunScript
// ----------------------------------------------------------------------------
// Useful extensions
// ----------------------------------------------------------------------------
[<AutoOpen>]
-module FunJSExtensions =
+module FunScriptExtensions =
[<JS; JSEmit("return {0}*1.0;")>]
let number (a:obj) : float = failwith "never"
View
6 Examples/Shared/Launcher.fs
@@ -1,4 +1,4 @@
-namespace FunJS
+namespace FunScript
open System.IO
open System.Net
@@ -77,7 +77,7 @@ module RuntimeImplementation =
// Main method that finds 'main' function and generates JS file
// ----------------------------------------------------------------------------
-open FunJS
+open FunScript
open System.IO
open System.Reflection
open Microsoft.FSharp.Quotations
@@ -116,7 +116,7 @@ type Runtime private() =
// Compile the main function into a script
let sw = System.Diagnostics.Stopwatch.StartNew()
- let source = FunJS.Compiler.Compiler.Compile(main, components=components)
+ let source = FunScript.Compiler.Compiler.Compile(main, components=components)
let sourceWrapped = sprintf "$(document).ready(function () {\n%s\n});" source
let filename = Path.Combine(root, (System.IO.Path.GetFileNameWithoutExtension(thisAsm.Location).ToLower()) + ".js")
printfn "Generated JavaScript in %f sec..." (float sw.ElapsedMilliseconds / 1000.0)
View
8 Examples/SimpleAsync/Page.fs
@@ -1,12 +1,12 @@
[<ReflectedDefinition>]
module Program
-open FunJS
-open FunJS.TypeScript
+open FunScript
+open FunScript.TypeScript
open System.Threading
-type j = FunJS.TypeScript.Api<"..\\Typings\\jquery.d.ts">
-type lib = FunJS.TypeScript.Api<"..\\Typings\\lib.d.ts">
+type j = FunScript.TypeScript.Api<"..\\Typings\\jquery.d.ts">
+type lib = FunScript.TypeScript.Api<"..\\Typings\\lib.d.ts">
// ----------------------------------------------------------------------------
// Mini implementation of some F# async primitives
View
18 Examples/SimpleAsync/SimpleAsync.fsproj
@@ -7,7 +7,7 @@
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{e1d45250-a24a-4d26-bfbf-bf93ab5f45e5}</ProjectGuid>
<OutputType>Exe</OutputType>
- <RootNamespace>FunJS.Example</RootNamespace>
+ <RootNamespace>FunScript.Example</RootNamespace>
<AssemblyName>SimpleAsync</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<Name>MovieDatabase</Name>
@@ -21,7 +21,7 @@
<DefineConstants>DEBUG;TRACE</DefineConstants>
<WarningLevel>3</WarningLevel>
<PlatformTarget>AnyCPU</PlatformTarget>
- <DocumentationFile>bin\Debug\FunJS.Example.XML</DocumentationFile>
+ <DocumentationFile>bin\Debug\FunScript.Example.XML</DocumentationFile>
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
@@ -32,7 +32,7 @@
<DefineConstants>TRACE</DefineConstants>
<WarningLevel>3</WarningLevel>
<PlatformTarget>AnyCPU</PlatformTarget>
- <DocumentationFile>bin\Release\FunJS.Example.XML</DocumentationFile>
+ <DocumentationFile>bin\Release\FunScript.Example.XML</DocumentationFile>
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>
<PropertyGroup>
@@ -50,14 +50,14 @@
<None Include="App.config" />
</ItemGroup>
<ItemGroup>
- <Reference Include="FunJS">
- <HintPath>..\..\FunJS.TypeScript\bin\Debug\FunJS.dll</HintPath>
+ <Reference Include="FunScript">
+ <HintPath>..\..\FunScript.TypeScript\bin\Debug\FunScript.dll</HintPath>
</Reference>
- <Reference Include="FunJS.TypeScript">
- <HintPath>..\..\FunJS.TypeScript\bin\Debug\FunJS.TypeScript.dll</HintPath>
+ <Reference Include="FunScript.TypeScript">
+ <HintPath>..\..\FunScript.TypeScript\bin\Debug\FunScript.TypeScript.dll</HintPath>
</Reference>
- <Reference Include="FunJS.TypeScript.Interop">
- <HintPath>..\..\FunJS.TypeScript\bin\Debug\FunJS.TypeScript.Interop.dll</HintPath>
+ <Reference Include="FunScript.TypeScript.Interop">
+ <HintPath>..\..\FunScript.TypeScript\bin\Debug\FunScript.TypeScript.Interop.dll</HintPath>
</Reference>
<Reference Include="mscorlib" />
<Reference Include="FSharp.Core, Version=4.3.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
View
6 Examples/SimpleAsync/index.html
@@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8">
- <title>FunJS Demo</title>
+ <title>FunScript Demo</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="Zach Bray">
@@ -29,14 +29,14 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
- <a class="brand" href="#">FunJS</a>
+ <a class="brand" href="#">FunScript</a>
</div>
</div>
</div>
<div class="container">
- <h1>FunJS Blackjack Demo</h1>
+ <h1>FunScript Blackjack Demo</h1>
<button id="next">Next</button>
<button id="stop">Stop</button>
View
8 Examples/Twitter/Program.fs
@@ -1,12 +1,12 @@
[<ReflectedDefinition>]
module Program
-open FunJS
-open FunJS.TypeScript
+open FunScript
+open FunScript.TypeScript
// See https://github.com/borisyankov/DefinitelyTyped for more
-type ts = FunJS.TypeScript.Api<
+type ts = FunScript.TypeScript.Api<
@"Examples/Typings/jquery.d.ts
Examples/Typings/google.maps.d.ts
Examples/Typings/lib.d.ts" >
@@ -70,7 +70,7 @@ let main() =
ts.onload <- fun _ -> Program().Setup() :> obj
// Compile
-let additionalComponents = FunJS.Interop.Components.all
+let additionalComponents = FunScript.Interop.Components.all
let source = Compiler.Compiler.Compile(<@@ main() @@>, components=additionalComponents, noReturn=true)
let filename = "twitter-example.js"
System.IO.File.Delete filename
View
22 Examples/Twitter/Twitter.fsproj
@@ -7,9 +7,9 @@
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>a4799ed1-4228-4b1d-8acb-61293f90b07e</ProjectGuid>
<OutputType>Exe</OutputType>
- <RootNamespace>FunJS.Example</RootNamespace>
- <AssemblyName>FunJS.Example</AssemblyName>
- <Name>FunJS.Example</Name>
+ <RootNamespace>FunScript.Example</RootNamespace>
+ <AssemblyName>FunScript.Example</AssemblyName>
+ <Name>FunScript.Example</Name>
<ProductVersion>10.0.0</ProductVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
@@ -21,7 +21,7 @@
<DefineConstants>DEBUG;TRACE</DefineConstants>
<WarningLevel>3</WarningLevel>
<PlatformTarget>AnyCPU</PlatformTarget>
- <DocumentationFile>bin\Debug\FunJS.Example.XML</DocumentationFile>
+ <DocumentationFile>bin\Debug\FunScript.Example.XML</DocumentationFile>
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
@@ -32,7 +32,7 @@
<DefineConstants>TRACE</DefineConstants>
<WarningLevel>3</WarningLevel>
<PlatformTarget>AnyCPU</PlatformTarget>
- <DocumentationFile>bin\Release\FunJS.Example.XML</DocumentationFile>
+ <DocumentationFile>bin\Release\FunScript.Example.XML</DocumentationFile>
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>
<ItemGroup>
@@ -41,14 +41,14 @@
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Numerics" />
- <Reference Include="FunJS.TypeScript.Interop">
- <HintPath>..\..\FunJS.TypeScript\bin\Debug\FunJS.TypeScript.Interop.dll</HintPath>
+ <Reference Include="FunScript.TypeScript.Interop">
+ <HintPath>..\..\FunScript.TypeScript\bin\Debug\FunScript.TypeScript.Interop.dll</HintPath>
</Reference>
- <Reference Include="FunJS.TypeScript">
- <HintPath>..\..\FunJS.TypeScript\bin\Debug\FunJS.TypeScript.dll</HintPath>
+ <Reference Include="FunScript.TypeScript">
+ <HintPath>..\..\FunScript.TypeScript\bin\Debug\FunScript.TypeScript.dll</HintPath>
</Reference>
- <Reference Include="FunJS">
- <HintPath>..\..\FunJS.TypeScript\bin\Debug\FunJS.dll</HintPath>
+ <Reference Include="FunScript">
+ <HintPath>..\..\FunScript.TypeScript\bin\Debug\FunScript.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
View
2 Examples/Twitter/index.html
@@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8">
- <title>FunJS Demo</title>
+ <title>FunScript Demo</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="Zach Bray">
View
4 Examples/WorldBank/Page.fs
@@ -1,7 +1,7 @@
[<ReflectedDefinition>]
module Program
-open FunJS
+open FunScript
open FSharp.Data
// ------------------------------------------------------------------
@@ -72,4 +72,4 @@ let main() =
// ------------------------------------------------------------------
-do Runtime.Run(components=FunJS.Data.Components.DataProviders, directory="Web")
+do Runtime.Run(components=FunScript.Data.Components.DataProviders, directory="Web")
View
22 Examples/WorldBank/WorldBank.fsproj
@@ -7,7 +7,7 @@
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>a4799ed1-4228-4b1d-8acb-61293f90b07e</ProjectGuid>
<OutputType>Exe</OutputType>
- <RootNamespace>FunJS.Example</RootNamespace>
+ <RootNamespace>FunScript.Example</RootNamespace>
<AssemblyName>WorldBank</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<Name>WorldBank</Name>
@@ -21,7 +21,7 @@
<DefineConstants>DEBUG;TRACE</DefineConstants>
<WarningLevel>3</WarningLevel>
<PlatformTarget>AnyCPU</PlatformTarget>
- <DocumentationFile>bin\Debug\FunJS.Example.XML</DocumentationFile>
+ <DocumentationFile>bin\Debug\FunScript.Example.XML</DocumentationFile>
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
@@ -32,7 +32,7 @@
<DefineConstants>TRACE</DefineConstants>
<WarningLevel>3</WarningLevel>
<PlatformTarget>AnyCPU</PlatformTarget>
- <DocumentationFile>bin\Release\FunJS.Example.XML</DocumentationFile>
+ <DocumentationFile>bin\Release\FunScript.Example.XML</DocumentationFile>
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>
<PropertyGroup>
@@ -59,17 +59,17 @@
<HintPath>..\packages\FSharp.Data.1.0.4\lib\net40\FSharp.Data.dll</HintPath>
<Private>True</Private>
</Reference>
- <Reference Include="FunJS">
- <HintPath>..\..\FunJS.TypeScript\bin\Debug\FunJS.dll</HintPath>
+ <Reference Include="FunScript">
+ <HintPath>..\..\FunScript.TypeScript\bin\Debug\FunScript.dll</HintPath>
</Reference>
- <Reference Include="FunJS.Data">
- <HintPath>..\..\FunJS.Data\bin\Debug\FunJS.Data.dll</HintPath>
+ <Reference Include="FunScript.Data">
+ <HintPath>..\..\FunScript.Data\bin\Debug\FunScript.Data.dll</HintPath>
</Reference>
- <Reference Include="FunJS.TypeScript">
- <HintPath>..\..\FunJS.TypeScript\bin\Debug\FunJS.TypeScript.dll</HintPath>
+ <Reference Include="FunScript.TypeScript">
+ <HintPath>..\..\FunScript.TypeScript\bin\Debug\FunScript.TypeScript.dll</HintPath>
</Reference>
- <Reference Include="FunJS.TypeScript.Interop">
- <HintPath>..\..\FunJS.TypeScript\bin\Debug\FunJS.TypeScript.Interop.dll</HintPath>
+ <Reference Include="FunScript.TypeScript.Interop">
+ <HintPath>..\..\FunScript.TypeScript\bin\Debug\FunScript.TypeScript.Interop.dll</HintPath>
</Reference>
<Reference Include="mscorlib" />
<Reference Include="FSharp.Core, Version=4.3.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
View
10 FunJS/Core/GenericConstants.fs
@@ -1,10 +0,0 @@
-[<FunJS.JS>]
-module FunJS.Core.GenericConstants
-
-open FunJS
-
-[<JSEmit("return 0;")>]
-let Zero<'a> :'a = failwith "never"
-
-[<JSEmit("return 1;")>]
-let One<'a> : 'a = failwith "never"
View
2 FunJS/Core/KeyValuePair.fs
@@ -1,2 +0,0 @@
-[<FunJS.JS>]
-module FunJS.Core.KeyValuePair
View
10 FunJS.BrowserAPI/DomEvents.fs → FunScript.BrowserAPI/DomEvents.fs
@@ -1,12 +1,12 @@
-[<FunJS.JS>]
-module FunJS.BrowserAPI.DomEvents
+[<FunScript.JS>]
+module FunScript.BrowserAPI.DomEvents
open System
-open FunJS.Core.Events
+open FunScript.Core.Events
-[<FunJS.JSEmit("{0}.addEventListener({1},{2});")>]
+[<FunScript.JSEmit("{0}.addEventListener({1},{2});")>]
let private addEventListener (element:obj) (eventName:string) (handler:'T -> unit) : unit = failwith "never"
-[<FunJS.JSEmit("{0}.removeEventListener({1},{2});")>]
+[<FunScript.JSEmit("{0}.removeEventListener({1},{2});")>]
let private removeEventListener (element:obj) (eventName:string) (handler:'T -> unit) : unit = failwith "never"
/// A wrapper around DOM Events
View
14 FunJS.BrowserAPI/FunJS.BrowserAPI.fsproj → ...pt.BrowserAPI/FunScript.BrowserAPI.fsproj
@@ -7,9 +7,9 @@
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>11da5a42-c4df-4c1b-bf02-739eed79b33f</ProjectGuid>
<OutputType>Library</OutputType>
- <RootNamespace>FunJS.BrowserAPI</RootNamespace>
- <AssemblyName>FunJS.BrowserAPI</AssemblyName>
- <Name>FunJS.BrowserAPI</Name>
+ <RootNamespace>FunScript.BrowserAPI</RootNamespace>
+ <AssemblyName>FunScript.BrowserAPI</AssemblyName>
+ <Name>FunScript.BrowserAPI</Name>
<ProductVersion>10.0.0</ProductVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
@@ -20,7 +20,7 @@
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<WarningLevel>3</WarningLevel>
- <DocumentationFile>bin\Debug\FunJS.BrowserAPI.XML</DocumentationFile>
+ <DocumentationFile>bin\Debug\FunScript.BrowserAPI.XML</DocumentationFile>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
@@ -29,7 +29,7 @@
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<WarningLevel>3</WarningLevel>
- <DocumentationFile>bin\Release\FunJS.BrowserAPI.XML</DocumentationFile>
+ <DocumentationFile>bin\Release\FunScript.BrowserAPI.XML</DocumentationFile>
</PropertyGroup>
<ItemGroup>
<Reference Include="mscorlib" />
@@ -42,8 +42,8 @@
<Compile Include="DomEvents.fs" />
</ItemGroup>
<ItemGroup>
- <ProjectReference Include="..\FunJS\FunJS.fsproj">
- <Name>FunJS</Name>
+ <ProjectReference Include="..\FunScript\FunScript.fsproj">
+ <Name>FunScript</Name>
<Project>e0916e67-d3b0-4c3a-ad18-4146882fcedd</Project>
</ProjectReference>
</ItemGroup>
View
6 FunJS.Data/Apiary.fs.exclude → FunScript.Data/Apiary.fs.exclude
@@ -1,8 +1,8 @@
-module internal FunJS.ApiaryCompiler
+module internal FunScript.ApiaryCompiler
open System
-open FunJS
-open FunJS.AST
+open FunScript
+open FunScript.AST
open System.Reflection
open Microsoft.FSharp.Quotations
open Microsoft.FSharp.Quotations.DerivedPatterns
View
4 FunJS.Data/Components.fs → FunScript.Data/Components.fs
@@ -1,6 +1,6 @@
-module FunJS.Data.Components
+module FunScript.Data.Components
-open FunJS.Data
+open FunScript.Data
let DataProviders =
JsonProvider.components @
View
18 FunJS.Data/FunJS.Data.fsproj → FunScript.Data/FunScript.Data.fsproj
@@ -7,9 +7,9 @@
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>a2244b1e-625c-4c6c-8e00-38755b8613bb</ProjectGuid>
<OutputType>Library</OutputType>
- <RootNamespace>FunJS.Data</RootNamespace>
- <AssemblyName>FunJS.Data</AssemblyName>
- <Name>FunJS.Data</Name>
+ <RootNamespace>FunScript.Data</RootNamespace>
+ <AssemblyName>FunScript.Data</AssemblyName>
+ <Name>FunScript.Data</Name>
<ProductVersion>10.0.0</ProductVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
@@ -20,7 +20,7 @@
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<WarningLevel>3</WarningLevel>
- <DocumentationFile>bin\Debug\FunJS.Data.XML</DocumentationFile>
+ <DocumentationFile>bin\Debug\FunScript.Data.XML</DocumentationFile>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
@@ -29,7 +29,7 @@
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<WarningLevel>3</WarningLevel>
- <DocumentationFile>bin\Release\FunJS.Data.XML</DocumentationFile>
+ <DocumentationFile>bin\Release\FunScript.Data.XML</DocumentationFile>
</PropertyGroup>
<PropertyGroup>
<MinimumVisualStudioVersion Condition="'$(MinimumVisualStudioVersion)' == ''">11</MinimumVisualStudioVersion>
@@ -46,11 +46,11 @@
<Reference Include="FSharp.Data">
<HintPath>..\packages\FSharp.Data.1.0.4\lib\net40\FSharp.Data.dll</HintPath>
</Reference>
- <Reference Include="FunJS">
- <HintPath>..\FunJS.TypeScript\bin\Debug\FunJS.dll</HintPath>
+ <Reference Include="FunScript">
+ <HintPath>..\FunScript.TypeScript\bin\Debug\FunScript.dll</HintPath>
</Reference>
- <Reference Include="FunJS.TypeScript">
- <HintPath>..\FunJS.TypeScript\bin\Debug\FunJS.TypeScript.dll</HintPath>
+ <Reference Include="FunScript.TypeScript">
+ <HintPath>..\FunScript.TypeScript\bin\Debug\FunScript.TypeScript.dll</HintPath>
</Reference>
<Reference Include="mscorlib" />
<Reference Include="FSharp.Core, Version=4.3.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
View
4 FunJS.Data/JsonProvider.fs → FunScript.Data/JsonProvider.fs
@@ -2,9 +2,9 @@
// Mappings for the JSON Type Provider runtime
// --------------------------------------------------------------------------------------
-module private FunJS.Data.JsonProvider
+module private FunScript.Data.JsonProvider
-open FunJS
+open FunScript
open FSharp.Data.Json
open ProviderImplementation
View
6 FunJS.Data/WorldBankProvider.fs → FunScript.Data/WorldBankProvider.fs
@@ -1,8 +1,8 @@
-module private FunJS.Data.WorldBank
+module private FunScript.Data.WorldBank
open System
-open FunJS
-open FunJS.AST
+open FunScript
+open FunScript.AST
open System.Reflection
open Microsoft.FSharp.Quotations
open Microsoft.FSharp.Quotations.DerivedPatterns
View
0 FunJS.Data/packages.config → FunScript.Data/packages.config
File renamed without changes.
View
0 FunJS.Data/worldbank.json → FunScript.Data/worldbank.json
File renamed without changes.
View
2 FunJS.Libraries.sln → FunScript.Libraries.sln
@@ -1,7 +1,7 @@

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2012
-Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "FunJS.Data", "FunJS.Data\FunJS.Data.fsproj", "{A2244B1E-625C-4C6C-8E00-38755B8613BB}"
+Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "FunScript.Data", "FunScript.Data\FunScript.Data.fsproj", "{A2244B1E-625C-4C6C-8E00-38755B8613BB}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
View
2 FunJS.Tests/Arithmetic.fs → FunScript.Tests/Arithmetic.fs
@@ -1,5 +1,5 @@
[<NUnit.Framework.TestFixture>]
-module FunJS.Tests.Arithmetic
+module FunScript.Tests.Arithmetic
open NUnit.Framework
View
2 FunJS.Tests/Arrays.fs → FunScript.Tests/Arrays.fs
@@ -1,5 +1,5 @@
[<NUnit.Framework.TestFixture>]
-module FunJS.Tests.Arrays
+module FunScript.Tests.Arrays
open NUnit.Framework
View
4 FunJS.Tests/Asyncs.fs → FunScript.Tests/Asyncs.fs
@@ -1,9 +1,9 @@
#if INTERACTIVE
#load "Interactive.fsx"
-open FunJS.Tests.Common
+open FunScript.Tests.Common
#endif
[<NUnit.Framework.TestFixture>]
-module FunJS.Tests.Asyncs
+module FunScript.Tests.Asyncs
open NUnit.Framework
View
6 FunJS.Tests/Common.fs → FunScript.Tests/Common.fs
@@ -1,7 +1,7 @@
[<AutoOpen>]
-module FunJS.Tests.Common
+module FunScript.Tests.Common
-open FunJS
+open FunScript
open Jint
open NUnit.Framework
open Linq.QuotationEvaluation
@@ -15,7 +15,7 @@ let checkAreEqual expectedResult quote =
// Wrap xUnit exceptions to stop pauses.
with ex ->
printfn "// Code:\n%s" code
- if ex.GetType().Namespace.StartsWith "FunJS" then raise ex
+ if ex.GetType().Namespace.StartsWith "FunScript" then raise ex
else failwithf "Message: %s\n" ex.Message
/// Bootstrapping:
View
4 FunJS.Tests/CommonOperators.fs → FunScript.Tests/CommonOperators.fs
@@ -1,9 +1,9 @@
[<NUnit.Framework.TestFixture>]
-module FunJS.Tests.CommonOperators
+module FunScript.Tests.CommonOperators
open NUnit.Framework
-open FunJS
+open FunScript
[<Test>]
let ``the id function works``() =
View
4 FunJS.Tests/Comparison.fs → FunScript.Tests/Comparison.fs
@@ -1,8 +1,8 @@
[<NUnit.Framework.TestFixture>]
-module FunJS.Tests.Comparison
+module FunScript.Tests.Comparison
open NUnit.Framework
-open FunJS
+open FunScript
[<Test>]
let ``Infix equality works``() =
View
2 FunJS.Tests/ControlFlow.fs → FunScript.Tests/ControlFlow.fs
@@ -1,5 +1,5 @@
[<NUnit.Framework.TestFixture>]
-module FunJS.Tests.ControlFlow
+module FunScript.Tests.ControlFlow
open NUnit.Framework
View
16 FunJS.Tests/FunJS.Tests.fsproj → FunScript.Tests/FunScript.Tests.fsproj
@@ -7,9 +7,9 @@
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>eac15526-7544-4ec5-ae50-32e5cdd05044</ProjectGuid>
<OutputType>Library</OutputType>
- <RootNamespace>FunJS.Tests</RootNamespace>
- <AssemblyName>FunJS.Tests</AssemblyName>
- <Name>FunJS.Tests</Name>
+ <RootNamespace>FunScript.Tests</RootNamespace>
+ <AssemblyName>FunScript.Tests</AssemblyName>
+ <Name>FunScript.Tests</Name>
<ProductVersion>10.0.0</ProductVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
@@ -20,7 +20,7 @@
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<WarningLevel>3</WarningLevel>
- <DocumentationFile>bin\Debug\FunJS.Tests.XML</DocumentationFile>
+ <DocumentationFile>bin\Debug\FunScript.Tests.XML</DocumentationFile>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
@@ -29,7 +29,7 @@
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<WarningLevel>3</WarningLevel>
- <DocumentationFile>bin\Release\FunJS.Tests.XML</DocumentationFile>
+ <DocumentationFile>bin\Release\FunScript.Tests.XML</DocumentationFile>
</PropertyGroup>
<PropertyGroup>
<MinimumVisualStudioVersion Condition="'$(MinimumVisualStudioVersion)' == ''">11</MinimumVisualStudioVersion>
@@ -69,7 +69,7 @@
<HintPath>..\packages\FSPowerPack.Linq.Community.2.0.0.1\Lib\Net40\FSharp.PowerPack.Linq.dll</HintPath>
</Reference>
<Reference Include="Jint">
- <HintPath>..\FunJS\ThirdParty\Jint.dll</HintPath>
+ <HintPath>..\FunScript\ThirdParty\Jint.dll</HintPath>
</Reference>
<Reference Include="mscorlib" />
<Reference Include="nunit.framework">
@@ -81,8 +81,8 @@
<Reference Include="System.Numerics" />
</ItemGroup>
<ItemGroup>
- <ProjectReference Include="..\FunJS\FunJS.fsproj">
- <Name>FunJS</Name>
+ <ProjectReference Include="..\FunScript\FunScript.fsproj">
+ <Name>FunScript</Name>
<Project>e0916e67-d3b0-4c3a-ad18-4146882fcedd</Project>
</ProjectReference>
</ItemGroup>
View
2 FunJS.Tests/Interactive.fsx → FunScript.Tests/Interactive.fsx
@@ -2,7 +2,7 @@
#r "bin\\Debug\\xunit.extensions.dll"
#r "bin\\Debug\\Jint.dll"
#r "bin\\Debug\\NHamcrest.dll"
-#r "bin\\Debug\\FunJS.dll"
+#r "bin\\Debug\\FunScript.dll"
#r "bin\\Debug\\FsUnit.Xunit.dll"
#r "bin\\Debug\\FsUnit.CustomMatchers.dll"
#r "bin\\Debug\FSharp.PowerPack.dll"
View
4 FunJS.Tests/LambdaApplication.fs → FunScript.Tests/LambdaApplication.fs
@@ -1,6 +1,6 @@
-[<FunJS.JS>]
+[<FunScript.JS>]
[<NUnit.Framework.TestFixture>]
-module FunJS.Tests.LambdaApplication
+module FunScript.Tests.LambdaApplication
open NUnit.Framework
View
2 FunJS.Tests/LetBindings.fs → FunScript.Tests/LetBindings.fs
@@ -1,5 +1,5 @@
[<NUnit.Framework.TestFixture>]
-module FunJS.Tests.LetBindings
+module FunScript.Tests.LetBindings
open NUnit.Framework
View
2 FunJS.Tests/Lists.fs → FunScript.Tests/Lists.fs
@@ -1,5 +1,5 @@
[<NUnit.Framework.TestFixture>]
-module FunJS.Tests.Lists
+module FunScript.Tests.Lists
open NUnit.Framework
View
2 FunJS.Tests/Logic.fs → FunScript.Tests/Logic.fs
@@ -1,5 +1,5 @@
[<NUnit.Framework.TestFixture>]
-module FunJS.Tests.Logic
+module FunScript.Tests.Logic
open NUnit.Framework
View
4 FunJS.Tests/Maps.fs → FunScript.Tests/Maps.fs
@@ -1,6 +1,6 @@
-[<FunJS.JS>]
+[<FunScript.JS>]
[<NUnit.Framework.TestFixture>]
-module FunJS.Tests.Maps
+module FunScript.Tests.Maps
open NUnit.Framework
View
2 FunJS.Tests/Options.fs → FunScript.Tests/Options.fs
@@ -1,5 +1,5 @@
[<NUnit.Framework.TestFixture>]
-module FunJS.Tests.Options
+module FunScript.Tests.Options
open NUnit.Framework
View
2 FunJS.Tests/PrimitiveTypes.fs → FunScript.Tests/PrimitiveTypes.fs
@@ -1,5 +1,5 @@
[<NUnit.Framework.TestFixture>]
-module FunJS.Tests.PrimitiveTypes
+module FunScript.Tests.PrimitiveTypes
open NUnit.Framework
View
4 FunJS.Tests/RecordTypes.fs → FunScript.Tests/RecordTypes.fs
@@ -1,6 +1,6 @@
-[<FunJS.JS>]
+[<FunScript.JS>]
[<NUnit.Framework.TestFixture>]
-module FunJS.Tests.RecordTypes
+module FunScript.Tests.RecordTypes
open NUnit.Framework
View
4 FunJS.Tests/ReflectedDefinitions.fs → FunScript.Tests/ReflectedDefinitions.fs
@@ -1,6 +1,6 @@
-[<FunJS.JS>]
+[<FunScript.JS>]
[<NUnit.Framework.TestFixture>]
-module FunJS.Tests.ReflectedDefinitions
+module FunScript.Tests.ReflectedDefinitions
open NUnit.Framework
View
4 FunJS.Tests/Seqs.fs → FunScript.Tests/Seqs.fs
@@ -1,6 +1,6 @@
-[<FunJS.JS>]
+[<FunScript.JS>]
[<NUnit.Framework.TestFixture>]
-module FunJS.Tests.Seqs
+module FunScript.Tests.Seqs
open NUnit.Framework
View
4 FunJS.Tests/Sets.fs → FunScript.Tests/Sets.fs
@@ -1,6 +1,6 @@
-[<FunJS.JS>]
+[<FunScript.JS>]
[<NUnit.Framework.TestFixture>]
-module FunJS.Tests.Sets
+module FunScript.Tests.Sets
open NUnit.Framework
View
6 FunJS.Tests/Strings.fs → FunScript.Tests/Strings.fs
@@ -1,17 +1,17 @@
#if INTERACTIVE
#load "Interactive.fsx"
-open FunJS.Tests.Common
+open FunScript.Tests.Common
#endif
[<NUnit.Framework.TestFixture>]
-module FunJS.Tests.Strings
+module FunScript.Tests.Strings
open NUnit.Framework
// The code that is produced by writing (c:char) = 'x' does not work correctly
// in Jint, but works fine in web browsers. This function allows us to write
// charToInt c = charToInt 'x' in the unit tests (which works in Jint too.)
-[<FunJS.JS; FunJS.JSEmit("return {0}.charCodeAt(0);")>]
+[<FunScript.JS; FunScript.JSEmit("return {0}.charCodeAt(0);")>]
let charToInt (c:char) : int = int c
// System.String - static methods
View
2 FunJS.Tests/Tuples.fs → FunScript.Tests/Tuples.fs
@@ -1,5 +1,5 @@
[<NUnit.Framework.TestFixture>]
-module FunJS.Tests.Tuples
+module FunScript.Tests.Tuples
open NUnit.Framework
View
2 FunJS.Tests/UnionTypes.fs → FunScript.Tests/UnionTypes.fs
@@ -1,5 +1,5 @@
[<NUnit.Framework.TestFixture>]
-module FunJS.Tests.UnionTypes
+module FunScript.Tests.UnionTypes
open NUnit.Framework
View
0 FunJS.Tests/app.config → FunScript.Tests/app.config
File renamed without changes.
View
0 FunJS.Tests/packages.config → FunScript.Tests/packages.config
File renamed without changes.
View
8 ...t.Interop/FunJS.TypeScript.Interop.fsproj → ...terop/FunScript.TypeScript.Interop.fsproj
@@ -7,8 +7,8 @@
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{0803BEFE-9F5F-4A5F-8572-6A8B5D089506}</ProjectGuid>
<OutputType>Library</OutputType>
- <RootNamespace>FunJS.TypeScript.Interop</RootNamespace>
- <AssemblyName>FunJS.TypeScript.Interop</AssemblyName>
+ <RootNamespace>FunScript.TypeScript.Interop</RootNamespace>
+ <AssemblyName>FunScript.TypeScript.Interop</AssemblyName>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
@@ -46,9 +46,9 @@
<Import Project="$(MSBuildExtensionsPath32)\..\Microsoft F#\v4.0\Microsoft.FSharp.Targets" Condition="(!Exists('$(MSBuildExtensionsPath32)\..\Microsoft SDKs\F#\3.0\Framework\v4.0\Microsoft.FSharp.Targets')) And (Exists('$(MSBuildExtensionsPath32)\..\Microsoft F#\v4.0\Microsoft.FSharp.Targets'))" />
<Import Project="$(MSBuildExtensionsPath32)\FSharp\1.0\Microsoft.FSharp.Targets" Condition="(!Exists('$(MSBuildExtensionsPath32)\..\Microsoft SDKs\F#\3.0\Framework\v4.0\Microsoft.FSharp.Targets')) And (!Exists('$(MSBuildExtensionsPath32)\..\Microsoft F#\v4.0\Microsoft.FSharp.Targets')) And (Exists('$(MSBuildExtensionsPath32)\FSharp\1.0\Microsoft.FSharp.Targets'))" />
<ItemGroup>
- <ProjectReference Include="..\FunJS\FunJS.fsproj">
+ <ProjectReference Include="..\FunScript\FunScript.fsproj">
<Project>e0916e67-d3b0-4c3a-ad18-4146882fcedd</Project>
- <Name>FunJS</Name>
+ <Name>FunScript</Name>
</ProjectReference>
</ItemGroup>
</Project>
View
10 FunJS.TypeScript.Interop/Interop.fs → FunScript.TypeScript.Interop/Interop.fs
@@ -1,4 +1,4 @@
-namespace FunJS.TypeScript
+namespace FunScript.TypeScript
open System.Reflection
@@ -45,11 +45,11 @@ type Emit() =
let flags = BindingFlags.Public ||| BindingFlags.Static
typeof<Emit>.GetMethod("CreateObjectImpl", flags)
-namespace FunJS.Interop
+namespace FunScript.Interop
-open FunJS
-open FunJS.AST
-open FunJS.TypeScript
+open FunScript
+open FunScript.AST
+open FunScript.TypeScript
open Microsoft.FSharp.Quotations
module Components =
View
2 FunJS.TypeScript/AST.fs → FunScript.TypeScript/AST.fs
@@ -1,4 +1,4 @@
-module FunJS.TypeScript.AST
+module FunScript.TypeScript.AST
type name = string
View
37 FunJS.TypeScript/FunJS.TypeScript.fsproj → ...pt.TypeScript/FunScript.TypeScript.fsproj
@@ -7,9 +7,9 @@
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>164139cf-07d4-468f-b6a8-9b92504c38e4</ProjectGuid>
<OutputType>Library</OutputType>
- <RootNamespace>FunJS.TypeScript</RootNamespace>
- <AssemblyName>FunJS.TypeScript</AssemblyName>
- <Name>FunJS.TypeScript</Name>
+ <RootNamespace>FunScript.TypeScript</RootNamespace>
+ <AssemblyName>FunScript.TypeScript</AssemblyName>
+ <Name>FunScript.TypeScript</Name>
<ProductVersion>10.0.0</ProductVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
@@ -21,7 +21,7 @@
<DefineConstants>DEBUG;TRACE</DefineConstants>
<WarningLevel>3</WarningLevel>
<PlatformTarget>AnyCPU</PlatformTarget>
- <DocumentationFile>bin\Debug\FunJS.TypeScript.XML</DocumentationFile>
+ <DocumentationFile>bin\Debug\FunScript.TypeScript.XML</DocumentationFile>
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
@@ -32,15 +32,15 @@
<DefineConstants>TRACE</DefineConstants>
<WarningLevel>3</WarningLevel>
<PlatformTarget>AnyCPU</PlatformTarget>
- <DocumentationFile>bin\Release\FunJS.TypeScript.XML</DocumentationFile>
+ <DocumentationFile>bin\Release\FunScript.TypeScript.XML</DocumentationFile>
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>
<ItemGroup>
- <Reference Include="mscorlib" />
<Reference Include="FSharp.Core, Version=4.3.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<Reference Include="System" />
+ <Reference Include="System.Web" />
+ <Reference Include="System.Net" />
<Reference Include="System.Core" />
- <Reference Include="System.Numerics" />
</ItemGroup>
<ItemGroup>
<!-- <Compile Include="ProvidedTypes.fsi" /> -->
@@ -50,17 +50,6 @@
<Compile Include="TypeGenerator.fs" />
<Compile Include="Provider.fs" />
</ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\FunJS.TypeScript.Interop\FunJS.TypeScript.Interop.fsproj">
- <Name>FunJS.TypeScript.Interop</Name>
- <Project>{0803befe-9f5f-4a5f-8572-6a8b5d089506}</Project>
- <Private>True</Private>
- </ProjectReference>
- <ProjectReference Include="..\FunJS\FunJS.fsproj">
- <Name>FunJS</Name>
- <Project>e0916e67-d3b0-4c3a-ad18-4146882fcedd</Project>
- </ProjectReference>
- </ItemGroup>
<PropertyGroup>
<MinimumVisualStudioVersion Condition="'$(MinimumVisualStudioVersion)' == ''">11</MinimumVisualStudioVersion>
</PropertyGroup>
@@ -72,4 +61,14 @@
<Target Name="AfterBuild">
</Target>
-->
-</Project>
+ <ItemGroup>
+ <ProjectReference Include="..\FunScript\FunScript.fsproj">
+ <Project>e0916e67-d3b0-4c3a-ad18-4146882fcedd</Project>
+ <Name>FunScript</Name>
+ </ProjectReference>
+ <ProjectReference Include="..\FunScript.TypeScript.Interop\FunScript.TypeScript.Interop.fsproj">
+ <Project>{0803BEFE-9F5F-4A5F-8572-6A8B5D089506}</Project>
+ <Name>FunScript.TypeScript.Interop</Name>
+ </ProjectReference>
+ </ItemGroup>
+</Project>
View
2 FunJS.TypeScript/Parser.fs → FunScript.TypeScript/Parser.fs
@@ -1,4 +1,4 @@
-module internal FunJS.TypeScript.Parser
+module internal FunScript.TypeScript.Parser
open AST
open System.Reflection
View
0 FunJS.TypeScript/ProvidedTypes.fs → FunScript.TypeScript/ProvidedTypes.fs
File renamed without changes.
View
4 FunJS.TypeScript/Provider.fs → FunScript.TypeScript/Provider.fs
@@ -1,4 +1,4 @@
-namespace FunJS.TypeScript
+namespace FunScript.TypeScript
open AST
open Microsoft.FSharp.Core.CompilerServices
@@ -48,7 +48,7 @@ type TypeScriptProvider(cfg:TypeProviderConfig) as this =
let runtimeAssembly = Assembly.LoadFrom(cfg.RuntimeAssembly)
let thisAssembly = Assembly.GetExecutingAssembly()
- let rootNamespace = "FunJS.TypeScript"
+ let rootNamespace = "FunScript.TypeScript"
let staticParams = [
ProvidedStaticParameter("files", typeof<string>)
]
View
4 FunJS.TypeScript/TypeGenerator.fs → FunScript.TypeScript/TypeGenerator.fs
@@ -1,6 +1,6 @@
-module internal FunJS.TypeScript.TypeGenerator
+module internal FunScript.TypeScript.TypeGenerator
-open FunJS.TypeScript.AST
+open FunScript.TypeScript.AST
open Samples.FSharp.ProvidedTypes
open System
open System.Reflection
View
12 FunJS.sln → FunScript.sln
@@ -1,15 +1,15 @@

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2012
-Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "FunJS", "FunJS\FunJS.fsproj", "{E0916E67-D3B0-4C3A-AD18-4146882FCEDD}"
+Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "FunScript", "FunScript\FunScript.fsproj", "{E0916E67-D3B0-4C3A-AD18-4146882FCEDD}"
EndProject
-Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "FunJS.Tests", "FunJS.Tests\FunJS.Tests.fsproj", "{EAC15526-7544-4EC5-AE50-32E5CDD05044}"
+Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "FunScript.Tests", "FunScript.Tests\FunScript.Tests.fsproj", "{EAC15526-7544-4EC5-AE50-32E5CDD05044}"
EndProject
-Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "FunJS.TypeScript", "FunJS.TypeScript\FunJS.TypeScript.fsproj", "{164139CF-07D4-468F-B6A8-9B92504C38E4}"
+Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "FunScript.TypeScript", "FunScript.TypeScript\FunScript.TypeScript.fsproj", "{164139CF-07D4-468F-B6A8-9B92504C38E4}"
EndProject
-Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "FunJS.BrowserAPI", "FunJS.BrowserAPI\FunJS.BrowserAPI.fsproj", "{11DA5A42-C4DF-4C1B-BF02-739EED79B33F}"
+Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "FunScript.BrowserAPI", "FunScript.BrowserAPI\FunScript.BrowserAPI.fsproj", "{11DA5A42-C4DF-4C1B-BF02-739EED79B33F}"
EndProject
-Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "FunJS.TypeScript.Interop", "FunJS.TypeScript.Interop\FunJS.TypeScript.Interop.fsproj", "{0803BEFE-9F5F-4A5F-8572-6A8B5D089506}"
+Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "FunScript.TypeScript.Interop", "FunScript.TypeScript.Interop\FunScript.TypeScript.Interop.fsproj", "{0803BEFE-9F5F-4A5F-8572-6A8B5D089506}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -52,6 +52,6 @@ Global
$2.inheritsSet = VisualStudio
$2.scope = text/plain
Policies = $0
- StartupItem = FunJS\FunJS.fsproj
+ StartupItem = FunScript\FunScript.fsproj
EndGlobalSection
EndGlobal
View
2 FunJS/AST.fs → FunScript/AST.fs
@@ -1,4 +1,4 @@
-module (*internal*) FunJS.AST
+module (*internal*) FunScript.AST
open Microsoft.FSharp.Quotations
View
2 FunJS/Arithmetic.fs → FunScript/Arithmetic.fs
@@ -1,4 +1,4 @@
-module internal FunJS.Arithmetic
+module internal FunScript.Arithmetic
open AST
open Microsoft.FSharp.Quotations
View
4 FunJS/Arrays.fs → FunScript/Arrays.fs
@@ -1,4 +1,4 @@
-module internal FunJS.Arrays
+module internal FunScript.Arrays
open AST
open Microsoft.FSharp.Quotations
@@ -40,5 +40,5 @@ let components =
]
ExpressionReplacer.createModuleMapping
"FSharp.Core" "Microsoft.FSharp.Collections.ArrayModule"
- "FunJS" "FunJS.Core.Array"
+ "FunScript" "FunScript.Core.Array"
] |> List.concat
View
2 FunJS/Asyncs.fs → FunScript/Asyncs.fs
@@ -1,4 +1,4 @@
-module internal FunJS.Asyncs
+module internal FunScript.Asyncs
open AST
open System.Threading
View
2 FunJS/AttributeHelpers.fs → FunScript/AttributeHelpers.fs
@@ -1,5 +1,5 @@
[<AutoOpen>]
-module internal FunJS.AttributeHelpers
+module internal FunScript.AttributeHelpers
open System.Reflection
View
2 FunJS/Attributes.fs → FunScript/Attributes.fs
@@ -1,4 +1,4 @@
-namespace FunJS
+namespace FunScript
open System
View
10 FunJS/CommonOperators.fs → FunScript/CommonOperators.fs
@@ -1,4 +1,4 @@
-module internal FunJS.CommonOperators
+module internal FunScript.CommonOperators
open AST
open Microsoft.FSharp.Quotations
@@ -111,12 +111,12 @@ let components =
CompilerComponent.unary <@ float32 @> id
CompilerComponent.unary <@ double @> id
CompilerComponent.unary <@ fun x -> x.ToString() @> (fun expr -> Apply(PropertyGet(expr, "toString"),[]))
- ExpressionReplacer.create <@ char @> <@ FunJS.Core.String.FromCharCode @>
+ ExpressionReplacer.create <@ char @> <@ FunScript.Core.String.FromCharCode @>
// Seq + ranges
ExpressionReplacer.create <@ seq @> <@ Replacements.id @>
- ExpressionReplacer.create <@ op_Range @> <@ FunJS.Core.Range.oneStep @>
- ExpressionReplacer.create <@ op_RangeStep @> <@ FunJS.Core.Range.customStep @>
+ ExpressionReplacer.create <@ op_Range @> <@ FunScript.Core.Range.oneStep @>
+ ExpressionReplacer.create <@ op_RangeStep @> <@ FunScript.Core.Range.customStep @>
// Casting
coerce
@@ -153,6 +153,6 @@ let components =
ExpressionReplacer.createModuleMapping
"FSharp.Core" "Microsoft.FSharp.Core.LanguagePrimitives.IntrinsicFunctions"
- "FunJS" "FunJS.Core.LanguagePrimitives"
+ "FunScript" "FunScript.Core.LanguagePrimitives"
] |> List.concat
View
2 FunJS/Comparison.fs → FunScript/Comparison.fs
@@ -1,4 +1,4 @@
-module internal FunJS.Comparison
+module internal FunScript.Comparison
open AST
open Microsoft.FSharp.Quotations
View
4 FunJS/Compiler.fs → FunScript/Compiler.fs
@@ -1,6 +1,6 @@
-module FunJS.Compiler
+module FunScript.Compiler
-open FunJS
+open FunScript
//TODO: Use IoC here. MiniIoC perhaps?
let private allComponents =
View
2 FunJS/CompilerComponent.fs → FunScript/CompilerComponent.fs
@@ -1,4 +1,4 @@
-module (*internal*) FunJS.CompilerComponent
+module (*internal*) FunScript.CompilerComponent
open AST
open InternalCompiler
View
2 FunJS/ControlFlow.fs → FunScript/ControlFlow.fs
@@ -1,4 +1,4 @@
-module internal FunJS.ControlFlow
+module internal FunScript.ControlFlow
open AST
open Microsoft.FSharp.Quotations
View
6 FunJS/Core/Array.fs → FunScript/Core/Array.fs
@@ -1,7 +1,7 @@
-[<FunJS.JS>]
-module FunJS.Core.Array
+[<FunScript.JS>]
+module FunScript.Core.Array
-open FunJS
+open FunScript
open System
[<JSEmit("return {0}.length;")>]
View
6 FunJS/Core/Async.fs → FunScript/Core/Async.fs
@@ -1,5 +1,5 @@
-[<FunJS.JS>]
-module FunJS.Core.Async
+[<FunScript.JS>]
+module FunScript.Core.Async
type CancellationToken =
private { Cell : option<bool ref> }
@@ -26,7 +26,7 @@ type AsyncParams<'T> =
type Async<'T> = Cont of (AsyncParams<'T> -> unit)
-[<FunJS.JSEmit("return setTimeout({0}, {1});")>]
+[<FunScript.JSEmit("return setTimeout({0}, {1});")>]
let setTimeout (handler:unit -> unit, milliseconds:float) = failwith "never"
let private protectedCont f = Cont (fun args ->
View
6 FunJS/Core/Events.fs → FunScript/Core/Events.fs
@@ -1,5 +1,5 @@
-[<FunJS.JS>]
-module FunJS.Core.Events
+[<FunScript.JS>]
+module FunScript.Core.Events
open System
type IObserver<'T> =
@@ -28,7 +28,7 @@ type IEvent<'T> =
inherit IObservable<'T>
end
-[<FunJS.JSEmit("return {0} !== {1};"); FunJS.Inline>]
+[<FunScript.JSEmit("return {0} !== {1};"); FunScript.Inline>]
let inline (!==) a b = failwith "never";
type ActionDisposable(f) =
View
10 FunScript/Core/GenericConstants.fs
@@ -0,0 +1,10 @@
+[<FunScript.JS>]
+module FunScript.Core.GenericConstants
+
+open FunScript
+
+[<JSEmit("return 0;")>]
+let Zero<'a> :'a = failwith "never"
+
+[<JSEmit("return 1;")>]
+let One<'a> : 'a = failwith "never"
View
2 FunScript/Core/KeyValuePair.fs
@@ -0,0 +1,2 @@
+[<FunScript.JS>]
+module FunScript.Core.KeyValuePair
View
6 FunJS/Core/LanguagePrimitives.fs → FunScript/Core/LanguagePrimitives.fs
@@ -1,7 +1,7 @@
-[<FunJS.JS>]
-module FunJS.Core.LanguagePrimitives
+[<FunScript.JS>]
+module FunScript.Core.LanguagePrimitives
-open FunJS
+open FunScript
open System.Collections.Generic
[<JSEmit("return {0};")>]
View
20 FunJS/Core/Map.fs → FunScript/Core/Map.fs
@@ -10,13 +10,13 @@
//----------------------------------------------------------------------------
// Root of the distribution is at: https://github.com/fsharp/fsharp
-// Modified Map implementation for FunJS
+// Modified Map implementation for FunScript
-[<FunJS.JS>]
-module FunJS.Core.Map
+[<FunScript.JS>]
+module FunScript.Core.Map
open System.Collections.Generic
-open FunJS.Core.LanguagePrimitives
+open FunScript.Core.LanguagePrimitives
[<CompilationRepresentation(CompilationRepresentationFlags.UseNullAsTrueValue)>]
[<NoEquality; NoComparison>]
@@ -316,7 +316,7 @@ module MapTree =
let copyToArray s (arr: _[]) i =
let j = ref i
- s |> iter (fun x y -> arr.[!j] <- FunJS.Core.LanguagePrimitives.KeyValuePair(x,y); j := !j + 1)
+ s |> iter (fun x y -> arr.[!j] <- FunScript.Core.LanguagePrimitives.KeyValuePair(x,y); j := !j + 1)
/// Imperative left-to-right iterators.