tokenizing string literals and identifiers
This commit is contained in:
parent
a245a5be96
commit
f8f044a7a2
5 changed files with 99 additions and 11 deletions
10
05/util.b
10
05/util.b
|
@ -351,6 +351,16 @@ function close
|
|||
syscall(3, fd)
|
||||
return
|
||||
|
||||
#define SEEK_SET 0
|
||||
#define SEEK_CUR 1
|
||||
#define SEEK_END 2
|
||||
|
||||
function lseek
|
||||
argument fd
|
||||
argument offset
|
||||
argument whence
|
||||
return syscall(8, fd, offset, whence)
|
||||
|
||||
function isupper
|
||||
argument c
|
||||
if c < 'A goto return_0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue