dsshit

command module
v0.0.0-...-4d84230 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 12, 2025 License: MIT Imports: 4 Imported by: 0

README

DsShit shell language

example script

function hello do
  |: | echo hi :|
done end

:( |: | hello | toupper :| )

let( a  []{ 5# 3.4@ } )

$a[ 1# ].print( 4# )

print( $a )

output:

HI
3.4
3.4
3.4
3.4
[5, 3.4]

The Main Specifications:

this language uses whitespace for separating tokens from each other: Note that you cannot write this:

$a[1#].print(4#)

the correct way is this:

$a[ 1# ].print( 4# )

because whitespace around items makes parser know which token it is

It has MAPS as well:

let( a { name: DSSHIT isGood: true! } )
print( $a.name )
$a.isGood.print()

the output:

DSSHIT
true

the Project is under development but it runs already just pieces missing

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package dsl
Package dsl
Package parser
Package parser
main command

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL