diff options
author | Kyle Gunger <kgunger12@gmail.com> | 2021-08-06 19:58:35 -0400 |
---|---|---|
committer | Kyle Gunger <kgunger12@gmail.com> | 2021-08-06 19:58:35 -0400 |
commit | 171e1986bb92c0e41f5f8e3672d5de1fc069c27c (patch) | |
tree | 3b23fbefa0009b4c6145b388798734afa7cc799f /tnslc/src/parse | |
parent | dd35976e57081987bee8278d006b2ae48e604f1d (diff) |
Initial empty/bare-bones files for implementation
Diffstat (limited to 'tnslc/src/parse')
-rw-r--r-- | tnslc/src/parse/parse.tnsl | 22 | ||||
-rw-r--r-- | tnslc/src/parse/token.tnsl | 35 |
2 files changed, 57 insertions, 0 deletions
diff --git a/tnslc/src/parse/parse.tnsl b/tnslc/src/parse/parse.tnsl new file mode 100644 index 0000000..1c81394 --- /dev/null +++ b/tnslc/src/parse/parse.tnsl @@ -0,0 +1,22 @@ +/## + Copyright 2020-2021 Kyle Gunger + + Licensed under the COMMON DEVELOPMENT AND DISTRIBUTION LICENSE + (CDDL) Version 1.0 (the "License"). You may not use this file + except in compliance with the License. You may obtain a copy of + the License at + + https://opensource.org/licenses/CDDL-1.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. +#/ + +/; export module parse + :import 'token.tnsl' +;/
\ No newline at end of file diff --git a/tnslc/src/parse/token.tnsl b/tnslc/src/parse/token.tnsl new file mode 100644 index 0000000..816177a --- /dev/null +++ b/tnslc/src/parse/token.tnsl @@ -0,0 +1,35 @@ +/## + Copyright 2020-2021 Kyle Gunger + + Licensed under the COMMON DEVELOPMENT AND DISTRIBUTION LICENSE + (CDDL) Version 1.0 (the "License"). You may not use this file + except in compliance with the License. You may obtain a copy of + the License at + + https://opensource.org/licenses/CDDL-1.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. +#/ + +;struct Token { + uint + type, + line, + char, + + ~{}char + data +} + +/; method Token + + /; operator delete + ;delete this.data + ;/ +;/
\ No newline at end of file |