mirror of
https://github.com/dschmenk/PLASMA.git
synced 2025-01-09 13:33:26 +00:00
Quick hack to flag var: and var=> without follow-on value as error
This commit is contained in:
parent
4591334896
commit
b5cac6dc3d
@ -584,6 +584,11 @@ t_opseq *parse_value(t_opseq *codeseq, int rvalue, int *stackdepth)
|
||||
type = (scantoken == PTRB_TOKEN) ? BPTR_TYPE : WPTR_TYPE;
|
||||
if (!parse_const(&const_offset))
|
||||
{
|
||||
if (scantoken == EOL_TOKEN || scantoken == CLOSE_PAREN_TOKEN)
|
||||
{
|
||||
parse_error("Syntax");
|
||||
return (NULL);
|
||||
}
|
||||
/*
|
||||
* Setting type override for following operations
|
||||
*/
|
||||
@ -618,6 +623,11 @@ t_opseq *parse_value(t_opseq *codeseq, int rvalue, int *stackdepth)
|
||||
: ((scantoken == DOT_TOKEN) ? BPTR_TYPE : WPTR_TYPE);
|
||||
if (!parse_const(&const_offset))
|
||||
{
|
||||
if (scantoken == EOL_TOKEN || scantoken == CLOSE_PAREN_TOKEN)
|
||||
{
|
||||
parse_error("Syntax");
|
||||
return (NULL);
|
||||
}
|
||||
/*
|
||||
* Setting type override for following operations
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user