about summary refs log tree commit diff
path: root/users/tazjin/rlox/src/bytecode/opcode.rs
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2021-03-05T19·43+0200
committertazjin <mail@tazj.in>2021-03-06T11·52+0000
commitb7b94335cc3b2d5650a385e1f4a439a7ef6d30ff (patch)
tree5c068e90cd996cfd731f7ef215981b619f20f563 /users/tazjin/rlox/src/bytecode/opcode.rs
parent822e5ae57f8253e83d40b6a8d686d774b1500a3f (diff)
refactor(tazjin/rlox): Refactor Compiler::consume into a macro r/2272
Making this function a macro instead makes it possible to match
arbitrary token kinds, even the ones that carry data, without changing
the syntax too much.

Change-Id: I5cda9e36d6833bd9c259f7d4d8340db6e783b4e8
Reviewed-on: https://cl.tvl.fyi/c/depot/+/2593
Reviewed-by: tazjin <mail@tazj.in>
Tested-by: BuildkiteCI
Diffstat (limited to 'users/tazjin/rlox/src/bytecode/opcode.rs')
0 files changed, 0 insertions, 0 deletions