Created
March 1, 2023 15:32
-
-
Save drkameleon/5b5b854294d8da885e7a477165b9a4a7 to your computer and use it in GitHub Desktop.
Updated lib.files output (macOS)
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
Created: temp/ | |
>> copy | |
copy is working well! | |
>> copy.directory - with empty folders | |
copy empty directory is working well! | |
>> copy.directory - with filled folders | |
copy filled directory is working well! | |
>> delete | |
deleted | |
>> delete.directory - with empty folders | |
directories deleted! | |
>> delete.directory - with filled folders | |
directories & files deleted! | |
>> move | |
file.txt moved to dest/ | |
>> move.directory - with empty folders | |
empty folders created inside input/ | |
empty folders moved to dest/ | |
>> move.directory - with filled folders | |
filled folders moved to dest/ | |
>> permissions | |
[ :dictionary | |
user : [ :dictionary | |
read : true :logical | |
write : true :logical | |
execute : false :logical | |
] | |
group : [ :dictionary | |
read : true :logical | |
write : false :logical | |
execute : false :logical | |
] | |
others : [ :dictionary | |
read : true :logical | |
write : false :logical | |
execute : false :logical | |
] | |
] | |
>> read | |
Hello, world | |
This is a multiline File. | |
:) :string | |
>> read.lines | |
[ :block | |
The Language :string | |
------------------------------ :string | |
:string | |
Arturo is an independently-developed, modern programming language, :string | |
vaguely related to various other ones - including but not limited to: :string | |
Logo, Rebol, Forth, Ruby, Haskell, D, Smalltalk, Tcl, and Lisp. :string | |
:string | |
The language has been designed :string | |
following some very simple and straightforward principles: :string | |
:string | |
- Code is just a list of words, symbols and literal values :string | |
- Words and symbols within a block are interpreted - when needed - :string | |
according to the context :string | |
- No reserved words or keywords - :string | |
look for them as hard as you can; there are absolutely none :string | |
] | |
>> read.json | |
[ :dictionary | |
name : Arturo :string | |
version : 0.9.83 :string | |
build : b/12 :string | |
platform : amd/win10 :string | |
] | |
>> read.csv | |
[ :block | |
[ :block | |
language :string | |
version :string | |
platform :string | |
] | |
[ :block | |
Arturo :string | |
0.9.83 :string | |
win10 :string | |
] | |
[ :block | |
Python :string | |
3.9 :string | |
gnu/linux :string | |
] | |
[ :block | |
Ruby :string | |
3.2.1 :string | |
macOS :string | |
] | |
] | |
>> read.csv.withHeaders | |
[ :block | |
[ :dictionary | |
language; version; platform : Arturo; 0.9.83; win10 :string | |
] | |
[ :dictionary | |
language; version; platform : Python; 3.9; gnu/linux :string | |
] | |
[ :dictionary | |
language; version; platform : Ruby; 3.2.1; macOS :string | |
] | |
] | |
>> read.html | |
[ :dictionary | |
attrs : [ :dictionary | |
] | |
text : | |
Unordered List with Square Bullets | |
Arturo | |
Python | |
Ruby | |
Hello | |
World | |
:string | |
body : [ :dictionary | |
attrs : [ :dictionary | |
] | |
text : | |
Unordered List with Square Bullets | |
Arturo | |
Python | |
Ruby | |
Hello | |
World | |
:string | |
h2 : [ :dictionary | |
attrs : [ :dictionary | |
] | |
text : Unordered List with Square Bullets :string | |
] | |
ul : [ :dictionary | |
attrs : [ :dictionary | |
style : list-style-type:square; :string | |
] | |
text : | |
Arturo | |
Python | |
Ruby | |
:string | |
li : [ :block | |
[ :dictionary | |
attrs : [ :dictionary | |
] | |
text : Arturo :string | |
] | |
[ :dictionary | |
attrs : [ :dictionary | |
] | |
text : Python :string | |
] | |
[ :dictionary | |
attrs : [ :dictionary | |
] | |
text : Ruby :string | |
] | |
] | |
] | |
p : [ :dictionary | |
attrs : [ :dictionary | |
] | |
text : | |
Hello | |
World | |
:string | |
br : [ :dictionary | |
attrs : [ :dictionary | |
] | |
text : :string | |
] | |
] | |
] | |
] | |
>> read.xml | |
[ :block | |
[ :dictionary | |
name : Arturo Programming Language :string | |
author : Yanis Zafiropulos :string | |
category : Scripting and Concatenative :string | |
_tag : language :string | |
id : art :string | |
] | |
[ :dictionary | |
name : CPython :string | |
author : Guido van Rossum :string | |
category : Scripting and Object Oriented :string | |
_tag : language :string | |
id : py :string | |
] | |
[ :dictionary | |
name : Ruby :string | |
author : Yukihiro Matsumoto :string | |
category : Scripting and Object Oriented :string | |
_tag : language :string | |
id : rb :string | |
] | |
] | |
>> read.markdown | |
<h1>Arturo Basics</h1> | |
<blockquote> | |
<p>Arturo is a very simple language. | |
Even without any prior experience, | |
I estimate it would take you roughly half an hour | |
before you are comfortable enough to write your first program.</p> | |
</blockquote> | |
<hr> | |
<ul> | |
<li><a href="https://arturo-lang.io/documentation/library">Library</a></li> | |
<li><a href="https://arturo-lang.io/documentation/examples">Examples</a></li> | |
</ul> | |
<h2>First Steps</h2> | |
<ol> | |
<li><a href="https://arturo-lang.io/documentation/language/#the-main-components">Main Components</a></li> | |
<li><a href="https://arturo-lang.io/documentation/language/#precedence-and-evaluation">Precedence & Evaluation</a></li> | |
<li><a href="https://arturo-lang.io/documentation/language/#scope-and-rules">Scope & Rules</a></li> | |
</ol> | |
:string | |
>> read.toml | |
[ :dictionary | |
arturo : [ :dictionary | |
package : [ :dictionary | |
name : TOML Reader :string | |
description : Yet another TOML Reader :string | |
version : 1.0.1 :string | |
authors : [ :block | |
author A :string | |
author B :string | |
] | |
license : MIT :string | |
] | |
config : [ :dictionary | |
version : ^0.9 :string | |
pkg-manager : ^0.2 :string | |
] | |
] | |
] | |
>> read.toml -- from ini file | |
[ :dictionary | |
package : [ :dictionary | |
name : TOML Reader :string | |
description : Yet another TOML Reader :string | |
version : 1.0.1 :string | |
authors : [ :block | |
author A :string | |
author B :string | |
] | |
license : MIT :string | |
] | |
config : [ :dictionary | |
version : ^0.9 :string | |
pkg-manager : ^0.2 :string | |
] | |
] | |
>> read.binary | |
[ :binary | |
48 65 6C 6C 6F 2C 20 57 6F 72 6C 64 21 | |
] | |
>> read.file | |
temp/read-file/test.bin :string | |
error raised as expected! | |
>> rename | |
file: Hello, world! | |
>> rename.directory | |
directory renamed [temp/rename-dir/renamed/file.txt] | |
>> timestamp | |
all fields are filled: [created accessed modified] | |
>> zip & unzip - README | |
zipped as dest.zip | |
unzipped as README.md | |
>> zip & unzip - src/arturo.nim | |
>> zip & unzip - destination | |
>> volume | |
13B | |
>> write | |
Hello, world! | |
>> write.append | |
Hello, world! | |
Hello, world! | |
From Arturo's World! | |
>> write.directory | |
before: [] | |
now: [temp/write-dir/folder temp/write-dir/directory] | |
>> write.json | |
{ | |
"name": "Arturo", | |
"version": "1.9.83", | |
"build": "b/12", | |
"platform": "amd/win10" | |
} | |
>> write.json.compact | |
{"name":"Arturo","version":"1.9.83","build":"b/12","platform":"amd/win10"} | |
>> write.binary | |
Hello, world! | |
>> exists? | |
file does not exist | |
file exists | |
>> exists?.directory | |
directory does not exist | |
directory exists | |
>> hidden? | |
false | |
false | |
true | |
true | |
true | |
true | |
Removed: temp/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment