j
: Next unread message k
: Previous unread message j a
: Jump to all threads
j l
: Jump to MailingList overview
Hi, I am trying to create a word that will parse all the characters up to a '}' on the same line. Does anyone have any idea as to how I can make this word read the characters in the input buffer while the interpret word is running? I thought about changing the value of the state variable to go from compile to interpret mode, but I still don't know how to access the input buffer. Any help would be great.
Programmingkid wrote:
Hi, I am trying to create a word that will parse all the characters up to a '}' on the same line. Does anyone have any idea as to how I can make this word read the characters in the input buffer while the interpret word is running? I thought about changing the value of the state variable to go from compile to interpret mode, but I still don't know how to access the input buffer. Any help would be great.
You'll need to start following through the interpret word in forth/bootstrap/interpreter.fs taking a good look at both the parse-word and : words.
HTH,
Mark.