Posted 16 years ago
by Kevin Carroll
-
Sr. Vice President,
Sign Management Consultants, Inc.
Version: 4.0.0280
I have successfully implemented a programmatic lexical parser for a Lisp/Scheme-like scripting language for use with SyntaxEditor. My lexical parser implements IMergableLexicalParser like your SimpleLexicalParser class.
I would now like to extend my language to have embedded SQL strings that can be edited with syntax-highlighting. For example, in my language, I can populate an ado.net DataTable with a command like:
(define adoTable (select "select * from table where column = {0}" columnValue))
I plan to modify my language to something like:
(define adoTable (select %"select * from table where column = {0}"% columnValue))
with the stuff between %" and "% being edited as SQL. I would like to use the provided dynamic SQL language parser for my "child" language implementation.
Is this doable? In other words, can the "parent" language be non-dynamic with dynamic child languages? If so, can you point me to the best places in the documentation and samples to go to to get started? I have begun reviewing the samples but all of the mult-language examples I've found are based on both languages being dynamic.
Thanks,
I would now like to extend my language to have embedded SQL strings that can be edited with syntax-highlighting. For example, in my language, I can populate an ado.net DataTable with a command like:
(define adoTable (select "select * from table where column = {0}" columnValue))
I plan to modify my language to something like:
(define adoTable (select %"select * from table where column = {0}"% columnValue))
with the stuff between %" and "% being edited as SQL. I would like to use the provided dynamic SQL language parser for my "child" language implementation.
Is this doable? In other words, can the "parent" language be non-dynamic with dynamic child languages? If so, can you point me to the best places in the documentation and samples to go to to get started? I have begun reviewing the samples but all of the mult-language examples I've found are based on both languages being dynamic.
Thanks,