Skip to content

Commit

Permalink
Move character name to base.ohm
Browse files Browse the repository at this point in the history
  • Loading branch information
netalondon committed Sep 8, 2024
1 parent d696fe5 commit 189947f
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion simulator/src/languages/grammars/asm.ohm
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ASM <: Base {
instruction = label|aInstruction|cInstruction
intermediateInstruction = instruction space+

colon = ":"

identifier := (letter|underscore|dot|dollar|colon) (alnum|underscore|dot|dollar|colon)*

label = openParen identifier closeParen
Expand Down
1 change: 0 additions & 1 deletion simulator/src/languages/grammars/asm.ohm.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ const asm = `ASM <: Base {
instruction = label|aInstruction|cInstruction
intermediateInstruction = instruction space+
colon = ":"
identifier := (letter|underscore|dot|dollar|colon) (alnum|underscore|dot|dollar|colon)*
label = openParen identifier closeParen
Expand Down
1 change: 1 addition & 0 deletions simulator/src/languages/grammars/base.ohm
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ Base {
percent = "%"
semi = ";"
underscore = "_"
colon = ":"

Value = identifier | number | boolean

Expand Down
1 change: 1 addition & 0 deletions simulator/src/languages/grammars/base.ohm.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ Base {
percent = "%"
semi = ";"
underscore = "_"
colon = ":"
Value = identifier | number | boolean
Expand Down

0 comments on commit 189947f

Please sign in to comment.