We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
expr = (blockExpr | ifExpr | whenExpr | caseStmt | forExpr | tryExpr) / simpleExpr blockExpr = 'block' symbol? colcom stmt condExpr = expr colcom expr optInd ('elif' expr colcom expr optInd)* 'else' colcom expr ifExpr = 'if' condExpr whenExpr = 'when' condExpr caseStmt = 'case' expr ':'? COMMENT? (IND{>} ofBranches DED | IND{=} ofBranches) forExpr = forStmt tryExpr = 'try' colcom stmt &(optInd 'except'|'finally') (optInd 'except' exprList colcom stmt)* (optInd 'finally' colcom stmt)?
see existing tests below
https://github.com/aMOPel/tree-sitter-nim/blob/main/grammar.js#L707
(needs to be moved to test/corpus/expr.txt) https://github.com/aMOPel/tree-sitter-nim/blob/main/test/expr.txt
test/corpus/expr.txt
The text was updated successfully, but these errors were encountered:
No branches or pull requests
official grammar:
examples:
see existing tests below
Some work has already been done:
https://github.com/aMOPel/tree-sitter-nim/blob/main/grammar.js#L707
existing tests:
(needs to be moved to
test/corpus/expr.txt
)https://github.com/aMOPel/tree-sitter-nim/blob/main/test/expr.txt
The text was updated successfully, but these errors were encountered: