mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2026-01-04 15:20:45 +01:00
+ Convert shorthand syntax notation to full notation
This commit is contained in:
parent
18508f7a26
commit
45910eed90
21
docs/syntax/changeit.pp
Normal file
21
docs/syntax/changeit.pp
Normal file
@ -0,0 +1,21 @@
|
||||
program changeit;
|
||||
|
||||
uses sysutils;
|
||||
|
||||
var
|
||||
S : String;
|
||||
|
||||
begin
|
||||
While not eof do
|
||||
begin
|
||||
ReadLn(S);
|
||||
S:=StringReplace(S,'\[','\begin{stack}\\',[rfReplaceAll]);
|
||||
S:=StringReplace(S,'\]','\end{stack}',[rfReplaceAll]);
|
||||
S:=StringReplace(S,'\(','\begin{stack}',[rfReplaceAll]);
|
||||
S:=StringReplace(S,'\)','\end{stack}',[rfReplaceAll]);
|
||||
S:=StringReplace(S,'\<','\begin{rep}',[rfReplaceAll]);
|
||||
S:=StringReplace(S,'\>','\end{rep}',[rfReplaceAll]);
|
||||
Writeln(S);
|
||||
end;
|
||||
end.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user