jondot/logolang.org

Add support for comments

Open

#5 ouverte le 9 janv. 2023

Voir sur GitHub
 (0 commentaires) (0 réactions) (0 assignés)TypeScript (0 forks)github user discovery
good first issue🦀 Rust

Métriques du dépôt

Stars
 (11 stars)
Métriques de merge PR
 (Métriques PR en attente)

Description

Comments are not implemented right now but can be very simple:

  • Comments start with ;, like Lisp
  • Start of line, or end of line
  • You can trim it as first step before tokenizing code (this way, the parser/ast are ignorant of comments)
  • Prefer not using regex, but if you have to, it's good enough (because in the future, we'll be happy to get rid of the regex crate, which only does tokenization for now)

Guide contributeur