Allow for unicode
This commit is contained in:
parent
4a57c3c564
commit
c89013f263
|
@ -0,0 +1,4 @@
|
|||
<> (🯅 |) ()
|
||||
<> (🯅 ?x) (?x 🯅)
|
||||
|
||||
🯅 _ _ _ |
|
2
makefile
2
makefile
|
@ -10,7 +10,7 @@ dest:
|
|||
run: all bin/modal
|
||||
@ bin/modal -q examples/hello.modal
|
||||
debug: all bin/modal-debug
|
||||
@ bin/modal-debug -a examples/hello.modal
|
||||
@ bin/modal-debug -a examples/unicode.modal
|
||||
test: all bin/modal-debug bin/modal
|
||||
@ bin/modal -v
|
||||
@ bin/modal-debug -q examples/fizzbuzz.modal
|
||||
|
|
|
@ -105,7 +105,7 @@ file_import(char *path, char *ptr)
|
|||
FILE *f;
|
||||
int pr = 0;
|
||||
if((f = fopen(path, "r"))) {
|
||||
char c;
|
||||
unsigned char c;
|
||||
while(fread(&c, 1, 1, f)) {
|
||||
c = c <= 0x20 ? 0x20 : c;
|
||||
if(c == '(') pr++;
|
||||
|
|
Loading…
Reference in New Issue