package tiny_languages
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
Small languages from scratch: Scheme, Lisp, Smalltalk-80, Pascal, BASIC, JavaScript, HTML, CSS and more
Install
dune-project
Dependency
Authors
Maintainers
Sources
0.3.6.tar.gz
md5=7c636383d146d30ac6f2fa234a6253c8
sha512=c79f3823c5f8f57e5038eb640d487c61168b84aa07c61999d6622ef9fd0c890e2b03b4c6a7cdbbe9352a49e25dda00ac7bb14693cee8e3d7beeed251351a2af0
doc/tiny_languages.javascript/Js_ast/index.html
Module Js_astSource
Source
type expr = | Number of float| String of string| Bool of bool| Null| Name of string| This| Array of expr list| Object of (string * expr) list| Function of func| Unary of string * expr| Update of string * bool * expr| Binary of string * expr * expr| Logical of string * expr * expr| Assign of string * expr * expr| Conditional of expr * expr * expr| Member of expr * string| Index of expr * expr| Call of expr * expr list| New of expr * expr list| Regex of string * string
Source
and statement = | Expr of expr| Let of let_kind * (string * expr option) list| Function_decl of func| Return of expr option| If of expr * stmt * stmt option| While of expr * stmt| For of stmt option * expr option * expr option * stmt| For_of of let_kind * string * expr * stmt| Break| Continue| Throw of expr| Try of stmt list * string * stmt list| Block of stmt list| Empty
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>