Arbno, the Cursor, and Snobol Patterns in Prolog

Can any Prolog or SWI-Prolog expert tell me how to implement an equivalent of Snobol's "arbno" pattern for use in Definite Clause Grammars, efficiently and elegantly? This is the pattern that matches an arbitrary number of repetitions of an argument pattern. And how would you define Snobol's "$" and "@"?


January 26, 2010
URL:http://www.drdobbs.com/architecture-and-design/arbno-the-cursor-and-snobol-patterns-in/228700802

Terms of Service | Privacy Statement | Copyright © 2024 UBM Tech, All rights reserved.