Skip to content

Idea: Comments #2

@Ekischleki

Description

@Ekischleki

Allowing comments would be a relatively easy and yet helpful thing to add to ✈ Flug ✈.
One would have to debate what comments look like (e.g. whether single line comments start with // or # or something else) and whether multi line comments should be a thing. For now adding something like

<...>
else if(current == '#') {
    while(pos + 1 < input.length) {
        pos += 1
        //Maybe some more robust handling for different types of newline
        if(input[pos] == '\n') {
            break
        }
    } 
}
<...>

to the tokenize function should be enough

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions