aboutsummaryrefslogtreecommitdiff
path: root/src/prc1/td.c
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi92@disroot.org>2026-10-30 13:56:38 +0100
committerXavier Del Campo Romero <xavi92@disroot.org>2026-10-30 13:56:38 +0100
commit803e95a883a5d3881f662d60cd1a24309bafd4de (patch)
tree8096027380d95ac992dd1cbf22576040eff6b750 /src/prc1/td.c
parent49d1b87b246f50e5eca25419656188befb4cb85e (diff)
downloadprc-803e95a883a5d3881f662d60cd1a24309bafd4de.tar.gz
WIP
Diffstat (limited to 'src/prc1/td.c')
-rw-r--r--src/prc1/td.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/prc1/td.c b/src/prc1/td.c
index 4f894af..a1212b4 100644
--- a/src/prc1/td.c
+++ b/src/prc1/td.c
@@ -27,8 +27,12 @@ static int p(const struct lex *, struct prv *);
static const struct seq seqs[] =
{
{(struct step[]){{ID, "end"}, {0}}, .fn = end},
- {(struct step[]){{ID}, {ID, "constant"}, {ID, "to"}, {ID}, {0}}, .fn = cid},
- {(struct step[]){{ID}, {ID, "constant"}, {ID, "to"}, {NUM}, {0}}, .fn = cnum},
+ {(struct step[]){
+ {ID}, {ID, "constant"}, {ID, "set"}, {ID, "to"}, {ID}, {0}}, .fn = cid},
+ {(struct step[]){
+ {ID}, {ID, "constant"}, {ID, "set"}, {ID, "to"}, {NUM}, {0}},
+ .fn = cnum
+ },
{(struct step[]){{ID}, {ID, "alias"}, {0}}, .fn = a},
{(struct step[]){{ID}, {ID, "union"}, {0}}, .fn = u},
{(struct step[]){{ID}, {ID, "struct"}, {0}}, .fn = s},