parser: WIP

Signed-off-by: Alejandro Mery <amery@jpi.io>
This commit is contained in:
2023-08-30 02:27:46 +01:00
parent 8e98b927dd
commit 5514583962
3 changed files with 43 additions and 13 deletions
+6
View File
@@ -11,4 +11,10 @@ var (
IsNotNewLine = lexer.NewIsNot(IsNewLine)
// IsNotSpace tells if a rune is anything other than whitespace
IsNotSpace = lexer.NewIsNot(IsSpace)
IsCommentStart = lexer.NewIsIn(";#")
)
func IsSectionStart(r rune) bool {
return r == '['
}