Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
jianmin-chen committed May 14, 2024
1 parent 0b30f64 commit e41f378
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion site/content/orpheus-writes-interpreter.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ case Ast.Conditional: {
This is pretty expected. We evaluate the condition, and if it's true, we run the if-statement's body. Otherwise, we loop through the other conditions left and do the same exact thing by recursively calling `execute()`. The useful thing is that if there is an else statement in there, we've set its condition to always be true so it'll always run if the other conditions don't match up.
Hey, I think we forgot one last node in `evaluate()`! Let's add it now:
Hey, I think we forgot one last node in `execute()`! Let's add it now:
`Ast.Set`:
Expand Down
3 changes: 2 additions & 1 deletion site/content/orpheus-writes-lexer.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ export const TOKENS = {
Minus: 'Minus',
Asterisk: 'Asterisk',
Slash: 'Slash',
EOF: 'EOF',
EOF: 'EOF'
}

export class Token {
constructor(type, value, content, line, column) {
Expand Down
2 changes: 1 addition & 1 deletion site/content/orpheus-writes-parser.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ export class Array {
}
}

return {
export default {
Array,
// ...
}
Expand Down

0 comments on commit e41f378

Please sign in to comment.