forked from dotnet/fsharp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
115 changed files
with
5,090 additions
and
403 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": ".NET Core Launch (console)", | ||
"type": "coreclr", | ||
"request": "launch", | ||
"program": "${workspaceFolder}/artifacts/bin/fcs-fable-test/Debug/netcoreapp3.1/fcs-fable-test.dll", | ||
"args": [], | ||
"cwd": "${workspaceFolder}/fcs/fcs-fable/test", | ||
"console": "internalConsole", | ||
"stopAtEntry": false | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/usr/bin/env bash | ||
|
||
# cd to root | ||
cd $(dirname $0)/.. | ||
|
||
# build fslex/fsyacc tools | ||
dotnet build -c Release src/buildtools/buildtools.proj | ||
# dotnet build -c Release src/fsharp/FSharp.Compiler.Service | ||
|
||
# FCS-Fable codegen | ||
cd fcs/fcs-fable/codegen | ||
dotnet build -c Release | ||
dotnet run -c Release -- ../../../src/fsharp/FSComp.txt FSComp.fs | ||
dotnet run -c Release -- ../../../src/fsharp/fsi/FSIstrings.txt FSIstrings.fs | ||
|
||
# replace all #line directives with comments | ||
files="lex.fs pplex.fs illex.fs ilpars.fs pars.fs pppars.fs" | ||
for file in $files; do | ||
echo "Replace #line directives with comments in $file" | ||
sed -i 's/^# [0-9]/\/\/\0/' $file # comment #line directives | ||
sed -i 's/^\(\/\/# [0-9]\{1,\} "\).*\/codegen\//\1/' $file # cleanup #line paths | ||
done | ||
|
||
# FCS-Fable build | ||
cd .. | ||
dotnet build -c Release | ||
|
||
# # run test | ||
# cd test | ||
# dotnet run -c Release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Codegen | ||
codegen/*.fs | ||
codegen/*.fsi |
Oops, something went wrong.