mirror of
https://bitbucket.org/grumdrig/pq-web.git
synced 2026-09-29 08:44:00 -06:00
A few improvements to conversions, I hope
This commit is contained in:
+10
-3
@@ -7,12 +7,12 @@ s,},*/,g
|
|||||||
s/ = / == /g
|
s/ = / == /g
|
||||||
s/:=/=/g
|
s/:=/=/g
|
||||||
s/procedure/function/g
|
s/procedure/function/g
|
||||||
s/begin/{/g
|
s/begin/{/
|
||||||
s/end;/}/g
|
s/end;/}/g
|
||||||
s/end/}/g
|
s/end/}/g
|
||||||
|
|
||||||
s/not/!/g
|
s/not/!/g
|
||||||
s/ and / && /g
|
s/ and / \&\& /g
|
||||||
s/ or / || /g
|
s/ or / || /g
|
||||||
s/<>/!=/g
|
s/<>/!=/g
|
||||||
s/ mod / % /g
|
s/ mod / % /g
|
||||||
@@ -26,6 +26,13 @@ s/with /with (/g
|
|||||||
s/ do/)/
|
s/ do/)/
|
||||||
|
|
||||||
s/case /switch (/g
|
s/case /switch (/g
|
||||||
s/ of/) {/g
|
/\Wcase\W/ s/ of/) {/g
|
||||||
|
|
||||||
s/Result =/return/g
|
s/Result =/return/g
|
||||||
|
|
||||||
|
/^function / s/): [A-Za-z][A-Za-z]*;/)/
|
||||||
|
/^function / s/: [A-Za-z][A-Za-z]*;/()/
|
||||||
|
#/^function / s/: [A-Za-z][A-Za-z]*//g
|
||||||
|
|
||||||
|
/\Wfor\W/ s/ to /; i <= /
|
||||||
|
/\Wfor\W/ s/)/; ++i)/
|
||||||
|
|||||||
Reference in New Issue
Block a user