diff options
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 |