scml  Check-in [cf358f5850]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:fix docs AGAIN
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: cf358f58502dc72d35bb6689f728deeb7b63548b80ad1505c350467cfdd79e7d
User & Date: lexi 2019-05-25 06:45:32
Context
2019-05-25
06:46
FIX DOCS YET AGAIN check-in: 74ba28d1ff user: lexi tags: trunk
06:45
fix docs AGAIN check-in: cf358f5850 user: lexi tags: trunk
06:44
fix docs AGAIN check-in: b839592894 user: lexi tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to README.md.

13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
	make debug	# creates debug version of the `scmlc` binary

scml also comes with a program demonstrating how it may be embedded, called `embed.scm`. it can be compiled with `make embed`.

## using
there are two ways to use scml: as a binary that takes `*.sm` template and emits HTML files, or as a library inside a user-written program.

the bundled compiler `scmlc` reads from standard input and writes to standard out. we can run it on e.g. the bundled `torture-test.sm` file with the command `$ cat torture-test.sm | ./scmlc > torture-test.html`, or using the makefile's generic `%.html` rule, `make torture-test.html`.

the library is described further on.

### templates

a very simple template that just generates static HTML might look something like the following








|







13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
	make debug	# creates debug version of the `scmlc` binary

scml also comes with a program demonstrating how it may be embedded, called `embed.scm`. it can be compiled with `make embed`.

## using
there are two ways to use scml: as a binary that takes `*.sm` template and emits HTML files, or as a library inside a user-written program.

the bundled compiler `scmlc` reads from standard input and writes to standard out. we can run it on e.g. the bundled `torture-test.sm` file with the command `$ cat torture-test.sm \| ./scmlc > torture-test.html`, or using the makefile's generic `%.html` rule, `make torture-test.html`.

the library is described further on.

### templates

a very simple template that just generates static HTML might look something like the following