aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@qt.io>2018-04-30 14:50:03 +0200
committerJoerg Bornemann <joerg.bornemann@qt.io>2018-05-04 05:19:20 +0000
commit2319531641817ef7d96a212b02aa0e763419fb00 (patch)
tree22e3d5243c96f28ac42e8fcc07d4e7d759fcc4fa /doc
parent9258beb35aaf30ab2e89cdd6af0e02ddc179d98d (diff)
Add support for prefix/output in lex_yacc module
The user can specify the outputs of lex/yacc via %option prefix="foo" in the .l file and %output "parser.cpp" in the .y file. Also, introduce the following properties to specify the outputs: lexOutputFilePath, yaccOutputFilePath. Scan the lex/yacc inputs for those specifications and adjust the output artifacts accordingly. [ChangeLog] Added support for %option outfile and %output to the lex_yacc module. Change-Id: I5437c737ae8da54dc7eda81ac7384727f00f9d1f Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'doc')
-rw-r--r--doc/reference/modules/lexyacc-module.qdoc24
1 files changed, 24 insertions, 0 deletions
diff --git a/doc/reference/modules/lexyacc-module.qdoc b/doc/reference/modules/lexyacc-module.qdoc
index c4991bdbf..2d5117641 100644
--- a/doc/reference/modules/lexyacc-module.qdoc
+++ b/doc/reference/modules/lexyacc-module.qdoc
@@ -89,6 +89,18 @@
*/
/*!
+ \qmlproperty string lex_yacc::lexOutputFilePath
+
+ The output file for the \c lex tool.
+
+ This corresponds to \c{%option outfile} in the .l file.
+ If \c{%option outfile} is set in the .l file then this property is ignored.
+
+ \defaultvalue \c undefined
+ \since 1.12
+*/
+
+/*!
\qmlproperty string lex_yacc::outputTag
The file tag for the generated scanner and parser sources.
@@ -130,3 +142,15 @@
\defaultvalue \c []
*/
+
+/*!
+ \qmlproperty string lex_yacc::yaccOutputFilePath
+
+ Main output file for the \c yacc tool.
+
+ This corresponds to \c{%output} in the .y file.
+ If \c{%output} is set in the .y file then this property is ignored.
+
+ \defaultvalue \c undefined
+ \since 1.12
+*/