-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Expand command to compile Elm Interactive environment
+ Add an option on the command to filter the Elm modules from the sources for a given set of root modules. + Add an option on the command to disable the lowering step explicitly. + Add an option on the command to compress the compacted representation further using gzip. + Expand logging to report statistics.
- Loading branch information
Showing
9 changed files
with
271 additions
and
76 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,21 @@ | ||
using System.Globalization; | ||
|
||
namespace Pine.Core; | ||
|
||
public class CommandLineInterface | ||
{ | ||
public static string FormatIntegerForDisplay(long integer) => | ||
FormatIntegerForDisplay(integer, '_'); | ||
|
||
public static string FormatIntegerForDisplay(long integer, char thousandsSeparator) => | ||
integer.ToString("N", | ||
BuildNumberFormatInfo(thousandsSeparator)); | ||
|
||
private static NumberFormatInfo BuildNumberFormatInfo(char thousandsSeparator) => | ||
new() | ||
{ | ||
NumberGroupSizes = [3, 3, 3, 3, 3, 3], | ||
NumberGroupSeparator = thousandsSeparator.ToString(), | ||
NumberDecimalDigits = 0 | ||
}; | ||
} |
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
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
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.