minor
This commit is contained in:
parent
abd78108c8
commit
e38e8d4f1e
|
|
@ -65,7 +65,7 @@ export class Parser {
|
||||||
return node
|
return node
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// parse foundation nodes - statements, expressions
|
// parse foundation nodes - statements, expressions
|
||||||
//
|
//
|
||||||
|
|
||||||
|
|
@ -321,7 +321,7 @@ export class Parser {
|
||||||
}
|
}
|
||||||
|
|
||||||
// atoms are the basic building blocks: literals, identifiers, words
|
// atoms are the basic building blocks: literals, identifiers, words
|
||||||
atom() {
|
atom(): SyntaxNode {
|
||||||
if (this.is($T.String))
|
if (this.is($T.String))
|
||||||
return this.string()
|
return this.string()
|
||||||
|
|
||||||
|
|
@ -333,7 +333,7 @@ export class Parser {
|
||||||
}
|
}
|
||||||
|
|
||||||
// blocks in if, do, special calls, etc
|
// blocks in if, do, special calls, etc
|
||||||
// `: something end`
|
// `: something end`
|
||||||
//
|
//
|
||||||
// `blockNode` determines whether we return [colon, BlockNode, end] or
|
// `blockNode` determines whether we return [colon, BlockNode, end] or
|
||||||
// just a list of statements like [colon, stmt1, stmt2, end]
|
// just a list of statements like [colon, stmt1, stmt2, end]
|
||||||
|
|
@ -784,7 +784,7 @@ export class Parser {
|
||||||
return new SyntaxNode('Word', parts[0]!.from, parts.at(-1)!.to)
|
return new SyntaxNode('Word', parts[0]!.from, parts.at(-1)!.to)
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// helpers
|
// helpers
|
||||||
//
|
//
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user