Skip to content

Commit 06734b7

Browse files
committed
Rename project to Nelua
1 parent be29994 commit 06734b7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

105 files changed

+1207
-1207
lines changed

Diff for: .gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
euluna_cache
1+
nelua_cache
22
*.out
33
.vscode
44
tempCodeRunner.*

Diff for: .luacheckrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
std='max'
2-
exclude_files={'playground', 'euluna_cache'}
2+
exclude_files={'playground', 'nelua_cache'}
33
--self=false
44
unused_secondaries=false
55
globals = {

Diff for: .luacov

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
modules = {
2-
['euluna.*'] = '.',
3-
['euluna.*.*'] = '.',
4-
['euluna.*.*.*'] = '.',
2+
['nelua.*'] = '.',
3+
['nelua.*.*'] = '.',
4+
['nelua.*.*.*'] = '.',
55
['spec.*'] = '.'
66
}

Diff for: Dockerfile

+6-6
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ RUN apk add lua5.3 lua5.3-dev lua5.1 lua5.1-dev luajit luajit-dev luarocks5.1 lu
1111
#RUN pacman -S --noconfirm --needed base-devel git gcc clang
1212
#RUN pacman -S --noconfirm lua lua51 luajit luarocks luarocks5.1
1313

14-
COPY rockspecs/euluna-dev-1.rockspec .
14+
COPY rockspecs/nelua-dev-1.rockspec .
1515

16-
# euluna lua dependencies (5.1)
17-
RUN sudo luarocks-5.1 install --only-deps euluna-dev-1.rockspec
16+
# nelua lua dependencies (5.1)
17+
RUN sudo luarocks-5.1 install --only-deps nelua-dev-1.rockspec
1818

19-
# euluna lua dependencies (5.3)
20-
RUN sudo luarocks-5.3 install --only-deps euluna-dev-1.rockspec
19+
# nelua lua dependencies (5.3)
20+
RUN sudo luarocks-5.3 install --only-deps nelua-dev-1.rockspec
2121

22-
WORKDIR /euluna
22+
WORKDIR /nelua

Diff for: Makefile

+12-12
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
UID=$(shell id -u $(USER))
22
GID=$(shell id -g $(USER))
33
PWD=$(shell pwd)
4-
DRFLAGS=--rm -it -v "$(PWD):/euluna" euluna
4+
DRFLAGS=--rm -it -v "$(PWD):/nelua" nelua
55
DFLAGS=-u $(UID):$(GID) $(DRFLAGS)
6-
LUAMONFLAGS=-w euluna,spec,tools,examples,runtime -e lua,euluna,h,c -q -x
6+
LUAMONFLAGS=-w nelua,spec,tools,examples,runtime -e lua,nelua,h,c -q -x
77

88
test: test-luajit test-lua5.3 test-lua5.1
99

@@ -54,7 +54,7 @@ check-duplication:
5454
-balanceParentheses+ \
5555
-balanceCurlyBraces+ \
5656
-reportDuplicateText+ \
57-
`find euluna -name '*.lua'` | tail +5 | head -n -2
57+
`find nelua -name '*.lua'` | tail +5 | head -n -2
5858

5959
_clear-stdout:
6060
@clear
@@ -71,15 +71,15 @@ livedevlight:
7171
luamon $(LUAMONFLAGS) "make -Ss devtestlight"
7272

7373
docker-image:
74-
docker build -t "euluna" .
74+
docker build -t "nelua" .
7575

7676
docker-test:
7777
docker run $(DFLAGS) make -s test
7878

7979
_docker-test-rocks:
80-
sudo luarocks-5.3 make rockspecs/euluna-dev-1.rockspec
81-
cd /tmp && euluna /euluna/examples/helloworld.euluna
82-
cd /tmp && euluna -g c /euluna/examples/helloworld.euluna
80+
sudo luarocks-5.3 make rockspecs/nelua-dev-1.rockspec
81+
cd /tmp && nelua /nelua/examples/helloworld.nelua
82+
cd /tmp && nelua -g c /nelua/examples/helloworld.nelua
8383

8484
docker-test-rocks:
8585
docker run $(DRFLAGS) make -s _docker-test-rocks
@@ -96,14 +96,14 @@ docker-term:
9696
docker run $(DRFLAGS) /bin/bash
9797

9898
install-dev:
99-
luarocks install --lua-version=5.3 --local rockspecs/euluna-dev-1.rockspec
99+
luarocks install --lua-version=5.3 --local rockspecs/nelua-dev-1.rockspec
100100

101101
install-dev-deps:
102-
luarocks install --lua-version=5.1 --only-deps rockspecs/euluna-dev-1.rockspec --local
103-
luarocks install --lua-version=5.3 --only-deps rockspecs/euluna-dev-1.rockspec --local
102+
luarocks install --lua-version=5.1 --only-deps rockspecs/nelua-dev-1.rockspec --local
103+
luarocks install --lua-version=5.3 --only-deps rockspecs/nelua-dev-1.rockspec --local
104104

105105
upload-dev-rocks:
106-
luarocks upload --api-key=$(LUAROCKS_APIKEY) --force rockspecs/euluna-dev-1.rockspec
106+
luarocks upload --api-key=$(LUAROCKS_APIKEY) --force rockspecs/nelua-dev-1.rockspec
107107

108108
docs:
109109
cd docs && jekyll build
@@ -116,6 +116,6 @@ docs-serve:
116116
cd docs && bundle exec jekyll serve
117117

118118
cache-clean:
119-
rm -rf euluna_cache
119+
rm -rf nelua_cache
120120

121121
clean: cache-clean coverage-clean

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
docs/pages/euluna.md
1+
docs/pages/nelua.md
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

Diff for: docs/_config.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,17 @@
1313
# you will see them accessed via {{ site.title }}, {{ site.email }}, and so on.
1414
# You can create any custom variable you would like, and they will be accessible
1515
# in the templates via {{ site.myvariable }}.
16-
title: Euluna
16+
title: Nelua
1717
1818
description: >- # this means to ignore newlines until "baseurl:"
19-
Euluna is a minimalistic, performant, safe, optionally typed, meta programmable,
19+
Nelua is a minimalistic, performant, safe, optionally typed, meta programmable,
2020
systems programming language with syntax close to Lua language that works
2121
either dynamically or staticaly by compiling to Lua or C respectively.
22-
baseurl: "/euluna-lang" # the subpath of your site, e.g. /blog
22+
baseurl: "/nelua-lang" # the subpath of your site, e.g. /blog
2323
url: "https://edubart.github.io" # the base hostname & protocol for your site, e.g. http://example.com
2424

2525
categories: [sidenav]
26-
exclude: [pages/euluna]
26+
exclude: [pages/nelua]
2727

2828
# Build settings
2929
markdown: kramdown

Diff for: docs/_includes/site.css

+6-6
Original file line numberDiff line numberDiff line change
@@ -27,31 +27,31 @@ code {
2727
vertical-align: text-top;
2828
}
2929

30-
.euluna-brand {
30+
.nelua-brand {
3131
line-height: 2.8rem;
3232
}
3333

34-
.euluna-brand svg {
34+
.nelua-brand svg {
3535
width: 2.8rem;
3636
height: 2.8rem;
3737
}
3838

39-
.euluna-brand img {
39+
.nelua-brand img {
4040
float: left;
4141
}
4242

43-
.euluna-brand .euluna-name {
43+
.nelua-brand .nelua-name {
4444
margin-left: 10px;
4545
font-weight: bold;
4646
font-family: 'Montserrat', sans-serif;
4747
}
4848

49-
.euluna-subname {
49+
.nelua-subname {
5050
display: none;
5151
}
5252

5353
@media (min-width: 768px) {
54-
.euluna-subname {
54+
.nelua-subname {
5555
display: inline;
5656
}
5757
}

Diff for: docs/_layouts/default.html

+5-5
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@
3333
</noscript>
3434

3535
<header class="navbar navbar-expand navbar-dark fixed-top bg-primary bd-navbar">
36-
<a class="navbar-brand euluna-brand" href="{{site.baseurl}}/">
37-
<svg title="Euluna" role="img" viewBox="0 0 135.46666 135.46667" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
36+
<a class="navbar-brand nelua-brand" href="{{site.baseurl}}/">
37+
<svg title="Nelua" role="img" viewBox="0 0 135.46666 135.46667" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
3838
<metadata>
3939
<rdf:RDF>
4040
<cc:Work rdf:about="">
@@ -54,11 +54,11 @@
5454
</g>
5555
</g>
5656
</svg>
57-
<span class="euluna-name">Euluna</span><span class="euluna-subname"> Programming Language</span>
57+
<span class="nelua-name">Nelua</span><span class="nelua-subname"> Programming Language</span>
5858
</a>
5959
<ul class="navbar-nav flex-row ml-md-auto d-none d-md-flex">
6060
<li class="nav-item">
61-
<a class="nav-link" href="https://github.com/edubart/euluna-lang" target="_blank" rel="noopener" aria-label="GitHub">
61+
<a class="nav-link" href="https://github.com/edubart/nelua-lang" target="_blank" rel="noopener" aria-label="GitHub">
6262
<!-- <i class="fab fa-github" title="GitHub"></i> -->
6363
<svg class="navbar-nav-svg" title="GitHub" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 496 512"><title id="svg-inline--fa-title-rCfpaeor5EZi">GitHub</title><path fill="currentColor" d="M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"></path></svg>
6464
</a>
@@ -124,7 +124,7 @@
124124
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/languages/lua.min.js" integrity="sha256-K92Gf25zBrh58ZlALdvZik/93u+SkrkukisdjQ0uLkg=" crossorigin="anonymous"></script>
125125
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/languages/cpp.min.js" integrity="sha256-7DO5gO2K6TmvH3eQkVXW24aOQznz06DAg3wKy+i++5Y=" crossorigin="anonymous"></script>
126126
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/languages/bash.min.js" integrity="sha256-zXrlim8wsIvcEFjsD3THiAfTvtPZifqx8q0rxegiWQc=" crossorigin="anonymous"></script>
127-
<script src="{{site.baseurl}}/assets/js/highlightjs-euluna.js"></script>
127+
<script src="{{site.baseurl}}/assets/js/highlightjs-nelua.js"></script>
128128

129129
<!-- site js -->
130130
<script>hljs.initHighlightingOnLoad();</script>

Diff for: docs/assets/images/euluna-logo.svg renamed to docs/assets/images/nelua-logo.svg

+1-1
Loading

Diff for: docs/assets/js/highlightjs-euluna.js renamed to docs/assets/js/highlightjs-nelua.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
hljs.registerLanguage("euluna", function(e) {
1+
hljs.registerLanguage("nelua", function(e) {
22
var OPENING_LONG_BRACKET = "\\[=*\\[",
33
CLOSING_LONG_BRACKET = "\\]=*\\]",
44
LONG_BRACKETS = {

Diff for: docs/index.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
22
layout: default
3-
title: Euluna
3+
title: Nelua
44
toc: true
55
categories: sidenav
66
order: 1
77
---
88

9-
{% include_relative pages/euluna.md %}
9+
{% include_relative pages/nelua.md %}

Diff for: docs/pages/draft.md

+20-20
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Modules are useful to separate code scopes using local variables to avoid
1616
type and function name clashing across the code base.
1717

1818
Creating module `hello`:
19-
```euluna
19+
```nelua
2020
-- hello.lua
2121
local a = 1 -- private variable
2222
local function get_a() -- private function
@@ -30,7 +30,7 @@ end
3030
```
3131

3232
Using the module:
33-
```euluna
33+
```nelua
3434
import hello
3535
hello.foo()
3636
print(hello.b)
@@ -47,7 +47,7 @@ foo()
4747
Dynamic modules uses tables and it can change on runtime.
4848

4949
Creating module `hello`:
50-
```euluna
50+
```nelua
5151
-- hello.lua
5252
local M = {}
5353
local a = 1 -- private variable
@@ -64,7 +64,7 @@ return M
6464
```
6565

6666
Using the module:
67-
```euluna
67+
```nelua
6868
local hello = require 'hello'
6969
hello.foo()
7070
print(hello.b)
@@ -77,7 +77,7 @@ foo()
7777
## Operators
7878

7979
### Operator overloading
80-
```euluna
80+
```nelua
8181
local function `+`(a: string, b: string)
8282
return a .. b
8383
end
@@ -91,7 +91,7 @@ print(a) -- outputs hello world
9191

9292
### Returning errors
9393

94-
```euluna
94+
```nelua
9595
function foo(dofail)
9696
if dofail then
9797
return nil, "fail"
@@ -107,7 +107,7 @@ print(foo(false)) -- outputs "success"
107107

108108
Exceptions are useful to raise and catch errors.
109109

110-
```euluna
110+
```nelua
111111
local function foo(err)
112112
error "failed" -- raise an exception with a string object
113113
end
@@ -126,8 +126,8 @@ end
126126

127127
### Allocation
128128

129-
```euluna
130-
@import 'euluna.std.memory'
129+
```nelua
130+
@import 'nelua.std.memory'
131131
132132
local a = new(@integer) -- a type is: pointer<integer>
133133
a[0] = 1
@@ -144,8 +144,8 @@ delete(a)
144144

145145
### Shared objects with smart pointers
146146

147-
```euluna
148-
local shared_pointer = @import 'euluna.std.shared_pointer'
147+
```nelua
148+
local shared_pointer = @import 'nelua.std.shared_pointer'
149149
150150
local Person = @struct{
151151
name: string,
@@ -162,8 +162,8 @@ print(a.name) -- outputs "John"
162162

163163
### Shared objects with garbage collector
164164

165-
```euluna
166-
@import 'euluna.std.gc'
165+
```nelua
166+
@import 'nelua.std.gc'
167167
168168
local Person = @struct{
169169
name: string,
@@ -183,7 +183,7 @@ The language has basic features for object oriented programming,
183183
more advanced ones cna be achieved with metaprogramming.
184184

185185
### Methods
186-
```euluna
186+
```nelua
187187
local Person = @struct{
188188
name: string,
189189
age: integer
@@ -201,7 +201,7 @@ print(a.age)
201201

202202
### Inheritance
203203

204-
```euluna
204+
```nelua
205205
local PolygonVTable = @struct{
206206
area: function<(self: pointer): integer>
207207
}
@@ -245,7 +245,7 @@ print(polygon:area()) -- outputs 4
245245

246246
Literals are used to convert string or numbers into arbitrary types.
247247

248-
```euluna
248+
```nelua
249249
function _f32(v) !literal
250250
return tofloat(v)
251251
end
@@ -258,17 +258,17 @@ local a = "1234"_f32 -- a is float
258258

259259
### Dynamic arrays
260260

261-
```euluna
262-
local vector = @import 'euluna.std.vector'
261+
```nelua
262+
local vector = @import 'nelua.std.vector'
263263
264264
local a = @vector(int8) {1,2,3,4} -- dynamic array of int8
265265
local a: vector(string) -- dynamic array of string
266266
```
267267

268268
### Maps
269269

270-
```euluna
271-
local map = @import 'euluna.std.map'
270+
```nelua
271+
local map = @import 'nelua.std.map'
272272
273273
local m = @map(string, integer) {a = 1, b = 2} -- map of string -> integer
274274
local m: map(string, integer) -- map of string -> int

0 commit comments

Comments
 (0)