OSDN Git Service

support BytesLiteral true/false and operator && / || / ! (#12)
authoroysheng <33340252+oysheng@users.noreply.github.com>
Sat, 29 Sep 2018 06:04:50 +0000 (14:04 +0800)
committerPaladz <yzhu101@uottawa.ca>
Sat, 29 Sep 2018 06:04:50 +0000 (14:04 +0800)
commita732ed23c7e71f3a0135ce416b6ba4669b9a61eb
tree1919a162f612527f90c31f670dca22c609097786
parent38a476b9a5bed09fef310a89216e5da4c5e1e956
support BytesLiteral true/false and operator && / || / ! (#12)

* modify to support BytesLiteral

* optimise

* fix string literal and add escape character

* add unit test for constant

* add boolean literal true/false

* delete boolean check

* modify keywords

* add unit test

* support ! operator

* support boolean or / and operator
compiler/builtins.go
compiler/compile_test.go
compiler/equitytest/equitytest.go
compiler/parse.go