fjsc: fix parsing of factor quotations
parent
b99936be9a
commit
b8163eadfb
|
@ -219,7 +219,7 @@ M: word (parse-factor-quotation) ( object -- ast )
|
||||||
word-name <ast-identifier> ;
|
word-name <ast-identifier> ;
|
||||||
|
|
||||||
M: string (parse-factor-quotation) ( object -- ast )
|
M: string (parse-factor-quotation) ( object -- ast )
|
||||||
<ast-identifier> ;
|
<ast-string> ;
|
||||||
|
|
||||||
M: quotation (parse-factor-quotation) ( object -- ast )
|
M: quotation (parse-factor-quotation) ( object -- ast )
|
||||||
[
|
[
|
||||||
|
@ -240,7 +240,9 @@ M: string fjsc-parse ( object -- ast )
|
||||||
'expression' parse car parse-result-parsed ;
|
'expression' parse car parse-result-parsed ;
|
||||||
|
|
||||||
M: quotation fjsc-parse ( object -- ast )
|
M: quotation fjsc-parse ( object -- ast )
|
||||||
(parse-factor-quotation) <ast-expression> ;
|
[
|
||||||
|
[ (parse-factor-quotation) , ] each
|
||||||
|
] { } make <ast-expression> ;
|
||||||
|
|
||||||
: fjsc-compile ( ast -- string )
|
: fjsc-compile ( ast -- string )
|
||||||
[
|
[
|
||||||
|
|
Loading…
Reference in New Issue