diff options
feat!: Add basic lexer components
1 files changed, 20 insertions, 0 deletions
| -rw-r--r-- | src/StringConsumer/IStringConsumer.cl | 20 |
diff --git a/src/StringConsumer/IStringConsumer.cl b/src/StringConsumer/IStringConsumer.cl new file mode 100644 index 0000000..20a4f3a --- /dev/null +++ b/src/StringConsumer/IStringConsumer.cl @@ -0,0 +1,20 @@ +class IStringConsumer inherits System { + consume(s: String) : Int { + not_implemented_retint("consume") + }; + + token() : IToken {{ + not_implemented("token"); + new IToken; + }}; + + out() : Object { + not_implemented("out") + }; + +--- + consumed_length: Int; + consumed_length() : Int { + consumed_length + }; +}; |
