Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Idiom Recognition. How is it works?

Status
Not open for further replies.

burya

Programmer
Oct 26, 2003
7
IL
Hi,
I have working Idiom Recognition mechanism. But it fails, when I try work with Quark 6 files.

File structure:

QuarkXPress_6.5 begin

% substitution works on this dictionary level

xbldct60 begin
% sunsitution does not works on this dictionary level
xcustblnd
end

end

Procedure's syntacsis looks like equal for substitution one.

My question:
can presented file structure (procedure has to be substituted was called inside her dictionary) lead to problem with idiom recognition?

If can, how I have to change my part of idiom recognition code to "catch" original procedure.

Thank you
Michael
 
The idiom recognition is very simple process. You have a pair of procedures: a template and a substitute. bind operator first binds the operand. Then it compares it recursively with the template. If they are equal the substitute is returned.

Regatding the problem, there's no magic but some subtle differences in the procedures. Check your source procedure and the template.

Your PostScript expert is just a click away.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top