diff options
Diffstat (limited to 'src/tparse')
-rw-r--r-- | src/tparse/token.go | 20 | ||||
-rw-r--r-- | src/tparse/type.go | 7 |
2 files changed, 14 insertions, 13 deletions
diff --git a/src/tparse/token.go b/src/tparse/token.go index 6c84c72..b358568 100644 --- a/src/tparse/token.go +++ b/src/tparse/token.go @@ -1,17 +1,17 @@ /* - Copyright 2020 Kyle Gunger + Copyright 2020 Kyle Gunger - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. */ package tparse diff --git a/src/tparse/type.go b/src/tparse/type.go index 8a38527..329aec3 100644 --- a/src/tparse/type.go +++ b/src/tparse/type.go @@ -71,9 +71,10 @@ func checkPreWord(s string) int { // RESWORD represents all the reserved words and what type of tokens they are. var RESWORD = map[string]int{ - "bool": KEYTYPE, - "char": KEYTYPE, - "charp": KEYTYPE, + "bool": KEYTYPE, + "char": KEYTYPE, + "charp": KEYTYPE, + "string": KEYTYPE, "int": KEYTYPE, "int8": KEYTYPE, |