Free Hero Mesh

Check-in [30d372f39a]
Login
This is a mirror of the main repository for Free Hero Mesh. New tickets and changes will not be accepted at this mirror.
Overview
Comment:More explanation of how the results of calculations are used for the level table.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 30d372f39a0c49a3fb61447c617e46c898add6fe
User & Date: user on 2021-12-30 23:44:38
Other Links: manifest | tags
Context
2021-12-31
07:02
Use ll_append_str for literal strings too, in case they contain \x escapes. check-in: 7b627ca618 user: user tags: trunk
2021-12-30
23:44
More explanation of how the results of calculations are used for the level table. check-in: 30d372f39a user: user tags: trunk
21:49
Implement pattern strings and some other commands, an da few more corrections, in the (LevelTable) block implementation. check-in: b629fea66f user: user tags: trunk
Changes

Modified class.doc from [94e8d147ec] to [19bc4a72c6].

2699
2700
2701
2702
2703
2704
2705

















2706
  %    Successful match; the result is the length of the matched slice.

A "delimited string" in this block is delimited by any printable
character on both sides (except a character with code less than 32).

(The above list of pattern codes maybe it isn't explained very well;
hopefully someone else know how to improve it better.)

























>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>

2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
  %    Successful match; the result is the length of the matched slice.

A "delimited string" in this block is delimited by any printable
character on both sides (except a character with code less than 32).

(The above list of pattern codes maybe it isn't explained very well;
hopefully someone else know how to improve it better.)

After the instructions for a % block is executed, there should be only one
or zero items on the stack. If none, then this one is ignored; if there is
one, then it is added to the accumulation. For all three kinds, if only one
value is given it can use that even if it is not a number.

After the instructions for a : block is executed, the possible cases are:

* The stack is empty, or contains only a mark: The result is null.

* The stack contains only a number: The result is that number. It will be
treated as signed or unsigned according to the column type.

* The stack contains one or more items, of which the first (bottom) one is
a string: Concatenates all of them together, which can be strings, numbers
(treated as unsigned), or classes. All formatting codes of strings will be
stripped, so that the result will be a unformatted string.