New design on LEL that's way more sane and allows for more flexible columns and rows.

This commit is contained in:
Zed A. Shaw 2025-02-16 11:50:14 -05:00
parent f884b83809
commit 79c84ce885
8 changed files with 83 additions and 78 deletions

View file

@ -10,15 +10,11 @@ namespace lel {
action token {tk = input.substr(start - begin, fpc - start); }
action col { }
action ltab { cur.row = rows; }
action col {}
action ltab { grid.push_back(Row()); }
action valign { cur.bottom = fc == '.'; }
action id { id(input.substr(start - begin, fpc - start)); }
action row {
rows++;
columns = std::max(columns, cur.col);
cur.col = 0;
}
action row { cur.col = 0; cur.row++; }
action align { cur.right = fc == '>'; }
action setwidth {cur.max_w = std::stoi(tk); }
action setheight { cur.max_h = std::stoi(tk); }