Add generic declaration for functions

This commit is contained in:
JohnnyMorganz 2022-01-17 13:39:47 +00:00
parent 4bf601ecc5
commit e0b9aadb06

View file

@ -29,7 +29,7 @@ stat = varlist '=' explist |
laststat = 'return' [explist] | 'break' | 'continue' laststat = 'return' [explist] | 'break' | 'continue'
funcname = NAME {'.' NAME} [':' NAME] funcname = NAME {'.' NAME} [':' NAME]
funcbody = '(' [parlist] ')' [':' ReturnType] block 'end' funcbody = ['<' GenericTypeList '>'] '(' [parlist] ')' [':' ReturnType] block 'end'
parlist = bindinglist [',' '...'] | '...' parlist = bindinglist [',' '...'] | '...'
explist = {exp ','} exp explist = {exp ','} exp