bcc
bcc copied to clipboard
Long %% and Short @@ shorthand issue
Bug Report
The following is a small example showing Long %% and Short @@ with their respective shorthand issue.
Could we also consider adding Bool and Void to ng since they are in the parser and making them reserved keywords?
SuperStrict
Framework brl.standardio
Print %1 'Int
Print Int(1)
Print
Print %%2 'Long <-- works only when 1 anything else gives 'Compiler Error Expecting expression but encountered '%'
Print Long(2)
Print
Print !3 'Double
Print Double(3)
Print
Print #4 'Float
Print Float(4)
Print
Print @5 'Byte
Print Byte(5)
Print
Print @@6 'Short <-- this line gives 'Compiler Error Expecting expression but encountered '@'
Print Short(6)
Expected Behavior
should print 2 and 6 respectively for Long %% and Short @@ shorthand forms but gives expression error
Actual Behavior
both lines give Expecting expression but encountered error
Environment
- Operating System: Win 10 x64
- Output of
bcc -v
: bcc[ng] Release Version 0.132