programming language
Go to file
2022-04-02 18:18:24 +08:00
.gitignore add tokenizer 2022-04-01 22:12:28 +08:00
LICENSE initial commit 2022-03-31 17:28:52 +08:00
main.c Add newline as token type and add skeleton for parser 2022-04-02 18:10:01 +08:00
Makefile Add newline as token type and add skeleton for parser 2022-04-02 18:10:01 +08:00
parse.c add reminder in README 2022-04-02 18:18:24 +08:00
parse.h Add newline as token type and add skeleton for parser 2022-04-02 18:10:01 +08:00
README add reminder in README 2022-04-02 18:18:24 +08:00
token.c Add newline as token type and add skeleton for parser 2022-04-02 18:10:01 +08:00
token.h Add newline as token type and add skeleton for parser 2022-04-02 18:10:01 +08:00

woody is a traditional programming language
note that woody does not exist yet.
no precedence (rtl)
+	add	$	concat
-	sub	(	lambda
*	mul	)	lambdaend
%	div	#	do x y times
'	mod	^	assign to var
~	swp	:	shift
[	psh	;	unshift
]	pop	.	length
=	eq	>	gt
!	not	?	*TODO*
@	at	,	array assign
`	*TODO*	/	foldl
{	prec	}	prec
<	iota	"	string
\	each	&	and
|	or

body if cond			body while cond
if cond then body [elsif cond then body [else body]]

_ flat array of arg

fact^(
  err if !1=._
  if 2 > _@0 then 1
  else */<1+:_
)