Implemented numeric constants

This commit is contained in:
Eduard Urbach 2024-06-14 11:48:28 +02:00
parent f04e9d7a60
commit 19489d7a9a
No known key found for this signature in database
GPG key ID: C874F672B1AF20C0
7 changed files with 59 additions and 9 deletions

View file

@ -215,9 +215,10 @@ func scanFile(path string, functions chan<- *Function) error {
}
functions <- &Function{
Name: tokens[nameStart].Text(),
Head: tokens[paramsStart:bodyStart],
Body: tokens[bodyStart : i+1],
Name: tokens[nameStart].Text(),
Head: tokens[paramsStart:bodyStart],
Body: tokens[bodyStart : i+1],
Variables: map[string]*Variable{},
}
nameStart = -1