Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
104 commits
Select commit Hold shift + click to select a range
c53cb7c
tonumber() support for '0x' values.
May 10, 2020
b86b02e
fix DynValue tuple comparison.
May 10, 2020
6000f6b
fix: added support of nil value to string.format
May 10, 2020
b819a48
fix: local uninitialized values sometimes was initialized with random…
May 10, 2020
f525f79
Reduce to core netstandard2.0 build. Try implement mergeable hardwire
CallumDev Jul 11, 2020
0dd486e
Remove more files
CallumDev Jul 11, 2020
7a7dab6
Hardwire: Use ordinal ordering
CallumDev Jul 11, 2020
a375189
Remove unmergeable generated comments
CallumDev Jul 11, 2020
ddf5655
Merge branch 'aberro/master' into Librelancer
CallumDev Oct 5, 2020
a917d6a
Fix OsTimeModule.clock returning nil at application start
CallumDev Oct 5, 2020
7c406c8
Make io.write flush to console automatically
CallumDev Oct 5, 2020
9200605
Compiler: Evaluate constant expressions
CallumDev Oct 5, 2020
9a9c8a4
Bring math and tonumber in line with Lua 5.2
CallumDev Oct 5, 2020
dd53164
Fixed table.insert mishandling nil values inserts.
Benjamin-Dobell Mar 27, 2021
f19fbff
Exposed AutoDescribingUserDataDescriptor.
Benjamin-Dobell Mar 30, 2021
15b19ae
Merge upstream
CallumDev Aug 15, 2021
a18d6b0
Merge branch 'moonsharp-devs-master' into librelancer
CallumDev Aug 15, 2021
d11cb8f
Retarget shell to net5.0
CallumDev Aug 21, 2021
9de35c8
Add hardwire source generator
CallumDev Aug 21, 2021
87167e3
HardwireGen: __new is static
CallumDev Aug 21, 2021
0360500
HardwireGen: Fix fields. Add timing diagnostic
CallumDev Aug 21, 2021
e7a9672
HardwireGen: Retarget to netstandard2.0, fixes VS2019
CallumDev Jan 5, 2022
d1c40cd
Ported Test Runner to .NET 6.0
CallumDev Mar 10, 2022
ccba46b
Update interpreter binary to .NET 6.0
CallumDev Mar 10, 2022
abbf807
Make DynValue and Instruction structs, significantly reduce GC pressure.
CallumDev Mar 10, 2022
023e8f5
Slightly optimise table set
CallumDev Mar 10, 2022
2127ac9
Interpreter Optimisations
CallumDev Mar 12, 2022
1daaff1
Redesign closure capture to avoid extra allocations
CallumDev Mar 12, 2022
b25d47b
Clarify LICENSE is BSD 3-Clause (no change in terms). Add AUTHORS
CallumDev Mar 23, 2022
99a1711
Refactor out most platform abstractions for non-building platforms
CallumDev Mar 23, 2022
2342527
FastStack: use initial capacity for ram savings
CallumDev Mar 23, 2022
0d5c5f1
Remove unused variables
CallumDev Mar 23, 2022
add059c
Improve dumped binary code. MoonSharp interpreter dump bytecode
CallumDev Mar 23, 2022
92cd92e
SourceRef: Slightly smaller dump
CallumDev Mar 24, 2022
c873b8a
BinDumpWriter: Slightly improve variable length encode
CallumDev Mar 24, 2022
543eb3d
BinaryDumpTests: add missing using
CallumDev Mar 25, 2022
2c52d89
Allow Lua scripts to await/wait on Task results
CallumDev Mar 25, 2022
7d4df4e
Remove extraneous File.WriteAllText
CallumDev Mar 26, 2022
cf817bf
Fix double boxing of Script.Call
lofcz Mar 26, 2022
3572217
Merge pull request #2 from lofcz/fix-double-boxing
CallumDev Mar 26, 2022
2b55309
Store locals on ValueStack to reduce garbage
CallumDev Mar 27, 2022
97bba70
Add assert methods to be called from lua scripts
CallumDev Mar 30, 2022
d5eeb93
Begin implementation of C-like syntax extensions
CallumDev Mar 29, 2022
945294f
Implement compound assignment. &&,||
CallumDev Mar 30, 2022
8626fd8
Added an option to index tables from 0
lofcz Mar 30, 2022
63172e7
Unary ! not operator
CallumDev Mar 30, 2022
4d125c2
Introduce ScriptSyntax enum. Implement inc/dec ops
CallumDev Mar 31, 2022
9fa390c
C Multiline comments
CallumDev Mar 31, 2022
50ad7c6
Do/While loops. Fix single inc/dec statement
CallumDev Mar 31, 2022
85b527e
While Loops
CallumDev Mar 31, 2022
2d8181b
Ternary and label syntax. Fix blocks
CallumDev Mar 31, 2022
c6e5838
Fix indexing of tables with when double is used as a key
lofcz Mar 31, 2022
29c7ca9
Allow while+if to end with block statement.
CallumDev Mar 31, 2022
16e6755
Merge pull request #4 from lofcz/librelancer
CallumDev Mar 31, 2022
6ce39e6
Refactor CallStackItem to struct
lofcz Mar 31, 2022
cf3a094
For loops. Continue statement
CallumDev Mar 31, 2022
711b3d6
Repeat Statement. More continue tests
CallumDev Mar 31, 2022
1da8daa
Table construct with []
CallumDev Mar 31, 2022
f82390d
Merge pull request #6 from Librelancer/csyntax
CallumDev Mar 31, 2022
c4a2cc1
Merge pull request #5 from lofcz/perf-callstackitem
CallumDev Mar 31, 2022
307b45f
CLikeTestRunner: Fix dir separator
CallumDev Mar 31, 2022
3c6403a
add Matěj Štágl to AUTHORS
CallumDev Mar 31, 2022
efa11b6
Make C-Style for work with closures. Fix zero arg lambdas
CallumDev Mar 31, 2022
634f9eb
C Style for: remove value duplication
CallumDev Mar 31, 2022
c12c0f5
Implement string concat in Add operator for CLike mode
CallumDev Mar 31, 2022
54fb5bc
For on integer ranges
CallumDev Mar 31, 2022
d14b2f0
Implement ??=
lofcz Apr 4, 2022
048c748
Reorder
lofcz Apr 4, 2022
c682eeb
Fix typo
lofcz Apr 4, 2022
5ef2cb4
Merge pull request #9 from SimplexEngine/feat-nil-coalescing-assignment
CallumDev Apr 4, 2022
42cb1db
Relax brks around ternary condition
lofcz Apr 4, 2022
e1d276c
Implement ?? op
CallumDev Apr 4, 2022
d9da70c
Merge pull request #10 from SimplexEngine/feat-relax-ternary-brk
CallumDev Apr 4, 2022
0040e71
Add support for null alias
lofcz Apr 4, 2022
18f2654
Implement bit operations in CLike mode
CallumDev Apr 4, 2022
090a95a
Merge branch 'librelancer' of github.com:Librelancer/moonsharp into l…
CallumDev Apr 4, 2022
c292621
Merge pull request #12 from SimplexEngine/feat-alias-null
CallumDev Apr 4, 2022
e836877
Enable GitHub actions for testing
CallumDev Apr 4, 2022
9c2e40a
Disable getenv() status to make CI happy
CallumDev Apr 4, 2022
f2945ea
Implement "this" as alias for "self" in CLike mode
lofcz Apr 4, 2022
6f0dd2c
Implement ?!, ?!=
lofcz Apr 4, 2022
78d1417
Merge pull request #14 from Librelancer/feat-nill-coalescing-inverse
CallumDev Apr 5, 2022
6d3409f
Merge pull request #13 from SimplexEngine/feat-this-alias
CallumDev Apr 5, 2022
eab876c
Change bindump magic
CallumDev Apr 5, 2022
ec99b27
?. and ?[ for indexing nil
CallumDev Apr 5, 2022
4995d85
Index: Create special .length property for readonly
CallumDev Apr 5, 2022
80178f4
.length property on string literals
CallumDev Apr 5, 2022
5ebb3d4
CLike: Implement templated strings
CallumDev Apr 5, 2022
4e4b5dd
Template String: Change interpolation to remove '$' sign
CallumDev Apr 5, 2022
9f0f79a
Implement annotations and directives
CallumDev Apr 7, 2022
479bbe1
Draft default params
lofcz Apr 6, 2022
a4847ff
Fix scoping issues with default function parameters
CallumDev Apr 7, 2022
f9eb0f0
Merge pull request #18 from Librelancer/feat-default-param-fix
CallumDev Apr 7, 2022
8d400cc
Merge branch 'librelancer' into feat-annotations
CallumDev Apr 7, 2022
b35c307
Instruction: fix warning
CallumDev Apr 7, 2022
2e6ee5f
Merge pull request #17 from Librelancer/feat-annotations
CallumDev Apr 7, 2022
492f916
Refactor how scope is resolved in the compiler. Implement hoisting
CallumDev Apr 8, 2022
3ea993d
Merge pull request #19 from Librelancer/feat-hoisting
CallumDev Apr 8, 2022
bcb449f
Allow more than 1 return per block in non-lua mode
CallumDev Apr 9, 2022
f366e87
DynValue: Tag values more efficiently to save memory
CallumDev Apr 9, 2022
2ab7adc
Implement basic parser recovery
lofcz Apr 9, 2022
e6f9881
Relax brks around annotations
lofcz Apr 9, 2022
fd9daad
Merge pull request #21 from Librelancer/feat-relax-brks-annotations
CallumDev Apr 12, 2022
d686970
Merge pull request #20 from Librelancer/feat-parsing-errors
CallumDev Apr 12, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
28 changes: 28 additions & 0 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: .NET

on:
push:
branches: [ librelancer ]
pull_request:
branches: [ librelancer ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: 6.0.x
- name: Restore dependencies
working-directory: ./src
run: dotnet restore
- name: Build
working-directory: ./src
run: dotnet build --no-restore
- name: Test
working-directory: ./src
run: dotnet test --no-build --verbosity normal
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
*.suo
*.user
*.sln.docstates
*.idea
*.vs

# Build results

Expand Down
16 changes: 0 additions & 16 deletions .travis.yml

This file was deleted.

17 changes: 17 additions & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@

# This is the list of MoonSharp's significant contributors.
#
# This does not necessarily list everyone who has contributed code,
# especially since many employees of one corporation may be contributing.
# To see the full list of contributors, see the revision history in
# source control.

Marco Mastropaolo
wledfor2
NullShock78
doritsugita
Pedro Fanha
Benjamin Dobell
Kevin Morgan
Callum McGing
Matěj Štágl
22 changes: 9 additions & 13 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,16 +1,7 @@
Copyright (c) 2014-2016, Marco Mastropaolo
All rights reserved.

Parts of the string library are based on the KopiLua project (https://github.com/NLua/KopiLua)
Copyright (c) 2012 LoDC
BSD 3-Clause License

Visual Studio Code debugger code is based on code from Microsoft vscode-mono-debug project (https://github.com/Microsoft/vscode-mono-debug).
Copyright (c) Microsoft Corporation - released under MIT license.

Remote Debugger icons are from the Eclipse project (https://www.eclipse.org/).
Copyright of The Eclipse Foundation

The MoonSharp icon is (c) Isaac, 2014-2015
Copyright (c) 2014-2022 The MoonSharp Authors, as shown by the AUTHORS file.
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
Expand All @@ -22,7 +13,7 @@ modification, are permitted provided that the following conditions are met:
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

* Neither the name of the {organization} nor the names of its
* Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.

Expand All @@ -36,3 +27,8 @@ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Parts of the string library are based on the KopiLua project (https://github.com/NLua/KopiLua)
Copyright (c) 2012 LoDC

The MoonSharp icon is (c) Isaac, 2014-2015
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
MoonSharp: Librelancer Branch
* This only contains a subset of the MoonSharp project for .Net Core 3.1
* See upstream at https://github.com/moonsharp-devs/moonsharp


MoonSharp [![Build Status](https://travis-ci.org/xanathar/moonsharp.svg?branch=master)](https://travis-ci.org/xanathar/moonsharp) [![Build Status](https://img.shields.io/nuget/v/MoonSharp.svg)](https://www.nuget.org/packages/MoonSharp/)
=========
http://www.moonsharp.org
Expand Down
Binary file removed bfg.jar
Binary file not shown.
7 changes: 0 additions & 7 deletions src/.vs/restore.dg

This file was deleted.

16 changes: 0 additions & 16 deletions src/DevTools/MoonSharp.VmDebugger/DoubleBufferedListView.cs

This file was deleted.

28 changes: 0 additions & 28 deletions src/DevTools/MoonSharp.VmDebugger/Ext_Methods.cs

This file was deleted.

Loading