osh-code
provides a set of basic components for generating program code.
Components
Lines
;;
Example
// 1. Line// 2. Indented line// 3. LinerenderToStringjsCode, ,;
Comments
;;;
Example
// /* inline comment */renderToStringjsCode, comment"inline comment"; // /*// * block comment// */renderToStringjsCode, blockComment line"block comment", ,; // /**// * doc comment// */renderToStringjsCode, docComment line"doc comment", ,;
Symbol Scopes
; ;
Context Symbols
INDENT_LEVEL
indentation level.INDENT_STRING
string that is used for indentating lines.PADDING
line padding.LINE
rendering inside of a line.COMMENT_CONFIG
comment config.BLOCK_COMMENT
block comment type.