koch boot compiler with orc (#20467)

* koch boot compiler with orc

* use orc

* workaround bugs

* move it

* move the data
This commit is contained in:
ringabout 2022-09-30 18:38:25 +08:00 • committed by GitHub
commit ae050b05e9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 6 additions and 11 deletions

View file

@ -225,7 +225,7 @@ proc semTry(c: PContext, n: PNode; flags: TExprFlags; expectedType: PType = nil)
if a.len == 2 and a[0].kind == nkBracket:
# rewrite ``except [a, b, c]: body`` -> ```except a, b, c: body```
a.sons[0..0] = a[0].sons
a.sons[0..0] = move a[0].sons
if a.len == 2 and a[0].isInfixAs():
# support ``except Exception as ex: body``