Skip to content

Conversation

@chqrlie
Copy link
Contributor

@chqrlie chqrlie commented Oct 8, 2025

  • output tokens with the original spelling
  • use Style enum to support custom colors
  • show syntax errors
  • add --color and --nocolor to force/disable color output

@chqrlie chqrlie force-pushed the c2cat branch 4 times, most recently from 16607a5 to c546d14 Compare October 18, 2025 20:11
@chqrlie chqrlie force-pushed the c2cat branch 3 times, most recently from b8fe8d3 to 401d61e Compare October 20, 2025 20:54
@chqrlie chqrlie force-pushed the c2cat branch 3 times, most recently from 84dfd88 to 6efd5ec Compare November 5, 2025 07:56
@chqrlie chqrlie force-pushed the c2cat branch 3 times, most recently from 08828f6 to c0dfcb9 Compare November 7, 2025 15:53
@bvdberg
Copy link
Member

bvdberg commented Dec 5, 2025

The idea of c2cat is to colorize the output, otherwise you could just use 'cat'. So adding a --nocolor options does not make sense..

@chqrlie
Copy link
Contributor Author

chqrlie commented Dec 5, 2025

c2cat can also be used to just parse the tokens and check for tokenization errors, or even just benchmark the tokenizer...
I will post an update to make this more obvious.

* output tokens with the original spelling
* use Style enum and dispatch on token kind
* add `--color` and `--nocolor` to force/disable color output
* show syntax errors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants