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
#! Neon 1.0 | |
IMPORT acroname | |
IMPORT base | |
IMPORT bigint | |
IMPORT binary | |
IMPORT cformat | |
IMPORT cmdline | |
IMPORT complex | |
IMPORT console |
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
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | |
// File : MAC.h | |
// Author : Larry Frieson | |
// Desc : Basic typedef's and Macro's for OS/X and iOS. | |
// Date : 05/23/2012 | |
// | |
// Copyright © 2012 MLinks Technologies. All rights reserved. | |
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | |
#ifndef __MAC_H__ | |
#define __MAC_H__ |
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
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | |
// File : strings.h | |
// Author : Larry Frieson | |
// Desc : An STL (std::string) utility implementation. Helper classes if you will. | |
// Date : 06/04/2012 | |
// | |
// Copyright © 2012 MLinks Technologies. All rights reserved. | |
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | |
#ifndef __STRINGS_H | |
#define __STRINGS_H |
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
IMPORT io | |
IMPORT file | |
IMPORT datetime | |
VAR Entries: Number := 0 | |
LET dbPath := "c-files.db" | |
TYPE Entry IS RECORD | |
path: String | |
name: String |
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
VAR words := [ "dog", "cat", "hamster", "parrot", "chinchilla", "rat", "turtle", "snake" ] | |
quickSort(INOUT words, 0, words.size() - 1) | |
FOREACH w IN words DO | |
print(w) | |
END FOREACH | |
--= cat | |
--= chinchilla | |
--= dog | |
--= hamster |
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
cmake_minimum_required(VERSION 3.0) | |
cmake_policy(SET CMP0054 NEW) | |
project(neon_bcrypt) | |
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY .) | |
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG .) | |
if (NOT EXISTS crypt_blowfish-1.3/Makefile) | |
execute_process( | |
COMMAND cmake -E tar zxf crypt_blowfish-1.3.tar.gz |
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
/* | |
* File: xml | |
* | |
* Provides functions for working with Xml files. | |
*/ | |
IMPORT file | |
IMPORT math | |
IMPORT string | |
EXPORT parse |
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
IMPORT math | |
-- ToDo: The goal here would be to create a TimeSpan object by passing the number of seconds | |
-- into a constructor, if possible... | |
-- VAR ts: TimeSpan := TimeSpan(1440 * 24 * (365 / 6)) | |
VAR ts: TimeSpan := CalcTimeSpan(2600252 - 3600) | |
print(ts.toString()) | |
TYPE TimeSpan IS RECORD | |
milliseconds: Number |
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
diff --git a/CMakeLists.txt b/CMakeLists.txt | |
index 34e2ad8..4b5e688 100644 | |
--- a/CMakeLists.txt | |
+++ b/CMakeLists.txt | |
@@ -889,6 +889,20 @@ add_test( | |
NAME hello_exe | |
COMMAND tmp/hello.exe | |
) | |
+if (WIN32) | |
+ # Windows needs extra goodies to be able to execute shebang files. |
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
IMPORT file | |
IMPORT os | |
IMPORT string | |
IMPORT sys | |
IMPORT textio | |
LET location: String := "https://github.com/ghewgill/neon-module-registry" | |
FUNCTION showHelp() | |
textio.writeLine(textio.stderr, "Usage: module-install.neon [options] module\n") |
NewerOlder