fjsc: remove extraneous semicolons in compiled output
parent
fba42655be
commit
e68593d9e5
|
@ -53,7 +53,6 @@ LAZY: 'identifier-middle' ( -- parser )
|
||||||
and and and and and and and and
|
and and and and and and and and
|
||||||
] satisfy <+> ;
|
] satisfy <+> ;
|
||||||
|
|
||||||
USE: prettyprint
|
|
||||||
LAZY: 'identifier' ( -- parser )
|
LAZY: 'identifier' ( -- parser )
|
||||||
'identifier-ends'
|
'identifier-ends'
|
||||||
'identifier-middle' <&> [ first2 append ] <@
|
'identifier-middle' <&> [ first2 append ] <@
|
||||||
|
@ -100,7 +99,7 @@ M: ast-number (literal)
|
||||||
M: ast-number (compile)
|
M: ast-number (compile)
|
||||||
"factor.data_stack.push(" ,
|
"factor.data_stack.push(" ,
|
||||||
(literal)
|
(literal)
|
||||||
");" , ;
|
")" , ;
|
||||||
|
|
||||||
M: ast-string (literal)
|
M: ast-string (literal)
|
||||||
"'" ,
|
"'" ,
|
||||||
|
@ -110,7 +109,7 @@ M: ast-string (literal)
|
||||||
M: ast-string (compile)
|
M: ast-string (compile)
|
||||||
"factor.data_stack.push(" ,
|
"factor.data_stack.push(" ,
|
||||||
(literal)
|
(literal)
|
||||||
");" , ;
|
")" , ;
|
||||||
|
|
||||||
M: ast-identifier (literal)
|
M: ast-identifier (literal)
|
||||||
"factor.words[\"" , ast-identifier-value , "\"]" , ;
|
"factor.words[\"" , ast-identifier-value , "\"]" , ;
|
||||||
|
|
Loading…
Reference in New Issue