jondot/logolang.org

Add support for comments

Open

#5 建立於 2023年1月9日

在 GitHub 查看
 (0 留言) (0 反應) (0 負責人)TypeScript (0 fork)github user discovery
good first issue🦀 Rust

倉庫指標

Star
 (11 star)
PR 合併指標
 (PR 指標待抓取)

描述

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)

貢獻者指南