generateGrammar(template, outfile, demarkf)
generateGrammar(outfile, demarkf)
This method generates a grammar file for use in syntax highlighting Macaulay2 code in a text editor or web browser.
The file template may contain any of the following special strings:
The function demarkf indicates how the elements of each of the lists will be demarked in the resulting file. The file outfile will then be generated, replacing each of these strings as indicated above.
|
|
|
|
|
|
|
|
|
|
|
|
If template is omitted, then it defaults to currentFileDirectory | outfile | ".in"
.
The object generateGrammar is a method function.
The source of this document is in Style.m2:182:0.