summaryrefslogtreecommitdiff
path: root/src/tparse
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2021-11-01 12:59:19 -0400
committerKyle Gunger <kgunger12@gmail.com>2021-11-01 12:59:19 -0400
commitd228a388e5c95c703cff9f3050bb47e19078484a (patch)
tree4b49aff29388e20d5556f3ac8a70b2a9123ab070 /src/tparse
parent705d62fdf1752e94df2071fdea16b41a124a15e6 (diff)
[EXEC] Flush out some things
+ Some initial stub code for tnsl + Finalize structs (for now) + Add a key type to the parser
Diffstat (limited to 'src/tparse')
-rw-r--r--src/tparse/token.go20
-rw-r--r--src/tparse/type.go7
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,