Oxygen Basic
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Latest OxygenBasic.zip at GitHub
(Click on the Wizard)
Home
Help
Search
Login
Register
Oxygen Basic
»
Programming
»
Problems & Solutions
»
[DISMISSED] Help w/ Need More Params Error Pls
« previous
next »
Print
Pages: [
1
]
Author
Topic: [DISMISSED] Help w/ Need More Params Error Pls (Read 1817 times)
0 Members and 1 Guest are viewing this topic.
Mike Lobanovsky
Guest
[DISMISSED] Help w/ Need More Params Error Pls
«
on:
November 05, 2014, 04:48:49 PM »
Hi Charles,
I'm stuck with another error that I can't figure out the cause of:
Code: OxygenBasic
#console
includepath
"$\
inc
\"
include
"Console.inc"
indexbase
0
#define
T_ATOM 16384 /* 0100000000000000 *//* only
for
gc */
#define
CLRATOM 114687 /* 11011111111111111 *//* only
for
gc */
#define
DOMARK 32768 /* 01000000000000000 */
#define
ctype(p) *(p +
sizeof
(
sys
) +
sizeof
(
sys
))
#define
isatom(p) (ctype(p) & T_ATOM)
#define
setatom(p) ctype(p) |= T_ATOM
#define
clratom(p) ctype(p) &= CLRATOM
#define
setmark(p) ctype(p) |= DOMARK
#define
ismark(p) (ctype(p) & DOMARK)
#define
car(p) *p
#define
cdr(p) *(p +
sizeof
(
sys
))
sub
gcmark(
sys
a)
sys
t, q, p
t = 0
p = a
E2:
setmark(p)
if
(isatom(p))
then
goto
E6
q = car(p)
if
((q != 0) && (ismark(q) != 0))
then
setatom(p)
car(p) = t
t = p
p = q
goto
E2
end
if
E5:
q = cdr(p)
if
((q != 0) && (ismark(q) != 0))
then
cdr(p) = t
t = p
p = q
goto
E2
end
if
E6:
if
(t == 0)
then
exit
sub
q = t
if
(isatom(q))
then
clratom(q)
t = car(q)
car(q) = p
p = q
goto
E5
else
t = cdr(q)
cdr(q) = p
p = q
goto
E6
end
if
end
sub
It throws the following exception:
ERROR: Need more params
WORD: *
LINE: 50
FILE: main source
PASS: 1
Can you help me with that please?
«
Last Edit: November 05, 2014, 05:05:41 PM by Mike Lobanovsky
»
Logged
Mike Lobanovsky
Guest
[DISMISSED] Re: Help w/ Need More Params Error Pls
«
Reply #1 on:
November 05, 2014, 05:04:26 PM »
Sorry Charles,
That was a false alarm. Here I have an upper/lower case name clash. Sorry again to have bothered you for nothing.
«
Last Edit: November 05, 2014, 05:14:54 PM by Mike Lobanovsky
»
Logged
Charles Pegge
Guest
Re: [DISMISSED] Help w/ Need More Params Error Pls
«
Reply #2 on:
November 06, 2014, 12:18:44 AM »
Hi Mike,
If there are clashes between captialised names and others then
#case capital
might be useful.
#case capital
sensitises the parser to
fully
capitalised names
Logged
Mike Lobanovsky
Guest
Re: [DISMISSED] Help w/ Need More Params Error Pls
«
Reply #3 on:
November 06, 2014, 12:28:37 AM »
Thanks for the tip, Charles. In fact, that one together with QUOTE that clashed with Oxygen's native
quote
were the only ones I had to resolve. But I'll try to remember it for the future.
Logged
Print
Pages: [
1
]
« previous
next »
Oxygen Basic
»
Programming
»
Problems & Solutions
»
[DISMISSED] Help w/ Need More Params Error Pls