denol

所属分类:编程语言基础
开发工具:GO
文件大小:0KB
下载次数:0
上传日期:2022-04-14 02:13:47
上 传 者sh-1993
说明:  来自galacta的最佳编程语言
(The best programming language from galacta)

文件列表:
DEBIAN/ (0, 2022-03-24)
DEBIAN/control (171, 2022-03-24)
DEBIAN/postinst (43, 2022-03-24)
Denol.g4 (977, 2022-03-24)
LICENSE (1071, 2022-03-24)
assets/ (0, 2022-03-24)
assets/logo.png (28404, 2022-03-24)
bin/ (0, 2022-03-24)
bin/denol (3029431, 2022-03-24)
builds/ (0, 2022-03-24)
builds/denol.deb (9823680, 2022-03-24)
builds/denol.exe (3144704, 2022-03-24)
go.mod (117, 2022-03-24)
go.sum (221, 2022-03-24)
main.go (3215, 2022-03-24)
parser/ (0, 2022-03-24)
parser/Denol.interp (4354, 2022-03-24)
parser/Denol.tokens (473, 2022-03-24)
parser/DenolLexer.interp (7230, 2022-03-24)
parser/DenolLexer.tokens (473, 2022-03-24)
parser/denol_base_listener.go (2806, 2022-03-24)
parser/denol_lexer.go (10087, 2022-03-24)
parser/denol_listener.go (1804, 2022-03-24)
parser/denol_parser.go (34685, 2022-03-24)
usr/ (0, 2022-03-24)
usr/bin/ (0, 2022-03-24)
usr/bin/denol (3029396, 2022-03-24)

# Denol Language Denol Language is a ~~seriously~~ programming language. You write Denol code, and this code is parsed to PHP code. ![Denol Logo](https://github.com/lissatransborda/denol/blob/master/assets/logo.png) # Install ## Windows get `denol.exe` with this method: ``` git clone https://github.com/lissaferreira/denol cd denol/builds ``` now, move `denol.exe` to a certain place (binaries directory). I know the path to this place? No! But I fell you know Kappa ## Linux ### Using DEB Run these commands: ``` cd /tmp git clone https://github.com/lissaferreira/denol cd denol sudo dpkg -i builds/denol.deb ``` ### Using Golang - [Install Golang](https://github.com/lissatransborda/denol/blob/master/https://golang.org/) - Run `go install github.com/lissaferreira/denol` # Using Denol Denol has a simple syntax, and a extended syntax to PHP. To compile Denol Code to PHP code, only use `denol` binary, and the file(s) to compile, like this: ``` $ denol helloworld.denol ``` ## Hello World The Denol Hello World is: > hello.denol ``` ola("Hello World") ``` To execute, run: ``` denol hello.denol ``` This command will parse Denol code to PHP code, and save it in a directory named `build` And now, you can execute the PHP code with this command: ``` php build/hello.php ``` # Denol keywords | Denol | PHP | | :----------- | ---------: | | `!import` | `import` | | `amain` | `finally` | | `cancelar` | `break` | | `day` | `do` | | `deno` | `exit` | | `esporro` | `function` | | `mandabala` | `continue` | | `naosalvou` | `else` | | `ola` | `echo` | | `outrosalve` | `else if` | | `padraozao` | `default` | | `pamonhosa` | `for` | | `pediu` | `require` | | `pega` | `catch` | | `printa` | `print` | | `salve` | `if` | | `sepa` | `case` | | `tenta` | `try` | | `teste` | `switch` | | `veio` | `return` | | `zoeira` | `while` | # Code Examples Assign 10 to `a` and log `a` ``` a = 10 ola(a) ``` Assign 20 to `b` and if `b` is 20 log a "b is 20" ``` b = 20 salve (b == 20){ ola ("b is 20") } ``` Create a `alo` function, execute alo, assing 10 to `a` and log `a` ``` esporro alo(){ ola("alo") } alo() a = 10 ola(a) ``` # Denol VS PHP - Denol is funnier than PHP - Denol has "Deno" in the name, but PHP not. - Denol has a Deninho as logo, PHP not. - And `amain` ops, Finally, Denol is Denol, and PHP not is Denol.

近期下载者

相关文件


收藏者