Jan Max Meyer
Jan Max Meyer
Currently, Tokays own grammar is defined in two places: 1. `src/compiler/parser.rs` contains a tokay!() macro that defines Tokay's own grammar using Rust syntax 2. `examples/tokay.tok` is a version of Tokay's...
This little program just prints nothing! ``` >>> b = 2 >>> a : if b == 2 1 else 2 >>> a ``` And this version of the program...
To refer the current parselet itself, as `self` keyword might be useful. This is also relevant for #10 ``` @{ Self 'T' | 'T' } # matches T TT TTT...
With Tokay v0.5, the language is entering a phase where modularity becomes an important part. For example, the new builtin native tokens `Int` and `Float` can be grouped by a...
Tokay currently has a monolithic implementation of Values [as an enum](https://github.com/tokay-lang/tokay/blob/v0.4/src/value/mod.rs#L19). This enum is fine for the atomics and primitives (Void, Null, True, False, Integer, Float, Addr), but not for...
The current main branch contains a version of Tokay which is already capable of doing this: ```tokay >>> s = "Hello World" >>> s[2] l ``` Now what if setting...
Currently, this is allowed: ``` f : @{ 1 repeat; 2 } ``` a non.-consuming function uses parselet-only keywords. In general, these are `accept`, `reject` and `repeat`. The `repeat`has no...
The expression `(1,)+` is currently parsed as a sequence of 1 and the pos-repetition operator. ``` main [start 1:1, end 1:6] sequence [start 1:1, end 1:6] op_mod_pos [start 1:1, end...
Seems to be a grammar bug. ``` Tokay 0.4.0 >>> -2 -2 >>> 1--2 Line 1, column 4: Expecting Lvalue >>> 1- -2 3 ``` Expected behavior: ``` Tokay 0.4.0...
For the [user's manual of UniCC](https://github.com/phorward/unicc-manual/tree/master/ast_draw), I've used Batik, an XSLT-Script and a self-written tool chain to visualize parse trees from a grammar like this: ```tokay Add: Add '+' Mul...