diff options
| author | Baitinq <[email protected]> | 2025-05-19 23:12:24 +0200 |
|---|---|---|
| committer | Baitinq <[email protected]> | 2025-05-19 23:12:24 +0200 |
| commit | 65d7ae71c822fd4adcd098c4c1f7753fa28e34d3 (patch) | |
| tree | 21d5ecf72da96038c7891750661e7964f7b44e79 /src/bootstrap | |
| parent | Bootstra: Tokenizer: Allocate more memory for tokens (diff) | |
| download | pry-lang-65d7ae71c822fd4adcd098c4c1f7753fa28e34d3.tar.gz pry-lang-65d7ae71c822fd4adcd098c4c1f7753fa28e34d3.tar.bz2 pry-lang-65d7ae71c822fd4adcd098c4c1f7753fa28e34d3.zip | |
Feature: Add support for !=
Diffstat (limited to 'src/bootstrap')
| -rw-r--r-- | src/bootstrap/tokenizer.src | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bootstrap/tokenizer.src b/src/bootstrap/tokenizer.src index d8f868e..34e2b2e 100644 --- a/src/bootstrap/tokenizer.src +++ b/src/bootstrap/tokenizer.src @@ -305,7 +305,7 @@ let tokenizer_next = () => *i8 { }; let maybe_int = tokenizer_accept_int_type(); - if !(maybe_int == null) { + if maybe_int != null { let t = malloc(1000); sprintf(t, "int:%d", *maybe_int); @@ -313,7 +313,7 @@ let tokenizer_next = () => *i8 { }; let maybe_char = tokenizer_accept_char_type(); - if !(maybe_char == null) { + if maybe_char != null { let t = malloc(1000); sprintf(t, "char:%d", *maybe_char); @@ -321,7 +321,7 @@ let tokenizer_next = () => *i8 { }; let maybe_string = tokenizer_accept_string_type(); - if !(maybe_string == null) { + if maybe_string != null { let t = malloc(1000); sprintf(t, "string:%s", maybe_string); |