parser: WIP

Signed-off-by: Alejandro Mery <amery@jpi.io>
This commit is contained in:
2023-08-28 23:46:05 +00:00
parent ab175180d6
commit 22b372cdb0
4 changed files with 132 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
package parser
import "unicode"
func (*Parser) IsSpace(r rune) bool {
return unicode.IsSpace(r)
}
func (*Parser) IsCommentStart(r rune) bool {
// TODO: use Parser options
switch r {
case ';', '#':
return true
default:
return false
}
}