📝 update test files

This commit is contained in:
ValKmjolnir 2022-05-17 18:22:24 +08:00
parent 712a047a43
commit f8692f1e4e
29 changed files with 4 additions and 46 deletions

View File

@ -448,11 +448,11 @@ var NM2M=1852;
var R2D=180/math.pi;
# functions that not supported in this runtime:
var bind=func(function,locals,outer_scope={}){
var bind=func(function,locals,outer_scope=nil){
die("this runtime does not support bind");
}
var call=func(function,args=[],_me=nil,locals={},error=[]){
var call=func(function,args=nil,_me=nil,locals=nil,error=nil){
die("this runtime does not support call");
}

View File

@ -448,11 +448,11 @@ var NM2M=1852;
var R2D=180/math.pi;
# functions that not supported in this runtime:
var bind=func(function,locals,outer_scope={}){
var bind=func(function,locals,outer_scope=nil){
die("this runtime does not support bind");
}
var call=func(function,args=[],_me=nil,locals={},error=[]){
var call=func(function,args=nil,_me=nil,locals=nil,error=nil){
die("this runtime does not support call");
}

View File

@ -1,4 +1,3 @@
import("lib.nas");
var char_ttf=[
[" "," "," "," "," "," "],
[" ████╗"," ██╔██║"," ██╔╝██║"," ███████║","██╔═══██║","╚═╝ ╚═╝"],

View File

@ -1,5 +1,4 @@
# Road check and auto pilot by ValKmjolnir
import("lib.nas");
import("test/props_sim.nas");
var dt=0.01;
var intergral=0;

View File

@ -1,5 +1,3 @@
import("lib.nas");
var mandelbrot=
"[A mandelbrot set fractal viewer in brainf*** written by Erik Bosman]
+++++++++++++[->++>>>+++++>++>+<<<<<<]>>>>>++++++>--->>>>>>>>>>+++++++++++++++[[

View File

@ -1,5 +1,3 @@
import("lib.nas");
var mandelbrot=
"[A mandelbrot set fractal viewer in brainf*** written by Erik Bosman]
+++++++++++++[->++>>>+++++>++>+<<<<<<]>>>>>++++++>--->>>>>>>>>>+++++++++++++++[[

View File

@ -1,8 +1,6 @@
import("stl/lib.nas");
import("stl/queue.nas");
rand(time(0));
var pixel=[' ','#','.','*'];
var map=[];
for(var i=0;i<10;i+=1)

View File

@ -1,5 +1,3 @@
import("lib.nas");
rand(time(0));
var new_neuron=func()

View File

@ -1,4 +1,3 @@
import("lib.nas");
var source=[
"main.cpp ",
"nasal_err.h ",

View File

@ -1,4 +1,3 @@
import("lib.nas");
var condition_true=1;
var condition_false=0;
if(condition_true)

View File

@ -1,5 +1,3 @@
import("lib.nas");
var student=func(n,a){
return {
print_info:func println(n,' ',a),

View File

@ -1,5 +1,3 @@
import("lib.nas");
var ResultTrait={
Ok:func(val){
me.ok=val;

View File

@ -1,4 +1,3 @@
import("lib.nas");
var fib=func(x)
{
if(x<2) return x;

View File

@ -1,5 +1,3 @@
import("lib.nas");
var fd=io.open("test/filesystem.nas");
while((var line=io.readln(fd))!=nil)
println(line);

View File

@ -1,8 +1,6 @@
# hexdump.nas by ValKmjolnir
# 2021/8/13
import("lib.nas");
# init
var hex_num=[
'0','1','2','3',

View File

@ -1,6 +1,4 @@
#lib json.nas
import("lib.nas");
var JSON=func(){
var (

View File

@ -1,4 +1,3 @@
import("lib.nas");
# union set
var n=4;
var input=[[0,1],[0,2],[1,2]];

View File

@ -1,5 +1,3 @@
import("lib.nas");
var lexer=func(file)
{
var (ptr,token)=(0,[]);

View File

@ -1,5 +1,3 @@
import("lib.nas");
var map=nil;
var check=func(x,y)

View File

@ -1,4 +1,3 @@
import("lib.nas");
for(;;)break;
for(;;)
{

View File

@ -1,5 +1,4 @@
#automatically generated by bfconvertor.nas
import('lib.nas');
var ptr=0;
var paper=[];
setsize(paper,131072);

View File

@ -1,4 +1,3 @@
import("lib.nas");
var (yMin,yMax,xMin,xMax,line)=(-0.2,0.2,-1.5,-1.0,"");
var (yDel,xDel)=(yMax-yMin,xMax-xMin);
for(var yPixel=0;yPixel<24;yPixel+=1)

View File

@ -1,5 +1,3 @@
import("lib.nas");
var check=func(x){
if(x<0x100000000)
return x;

View File

@ -1,4 +1,3 @@
import("lib.nas");
import("./module/libfib.nas");
println(libfib);

View File

@ -1,6 +1,5 @@
# This is written for Nasal Intepreter
# Sidi Liang
import("lib.nas");
var w = 1;
var x = "hello";
var f = func(){

View File

@ -1,5 +1,3 @@
import("lib.nas");
var is_prime=func(x){
for(var i=2;i<x;i+=1)
if(x/i==int(x/i))

View File

@ -1,5 +1,3 @@
import("lib.nas");
var geodinfo=func(lat,lon){
return {};
}

View File

@ -1,4 +1,3 @@
import("lib.nas");
import("./module/libkey.nas");
var list=func(){
var (begin,end,len)=(nil,nil,0);

View File

@ -1,6 +1,4 @@
import("lib.nas");
import("./module/libkey.nas");
var color=[
"\e[31m","\e[32m","\e[33m","\e[34m","\e[35m","\e[36m",
"\e[91m","\e[92m","\e[93m","\e[94m","\e[95m","\e[96m",