summaryrefslogtreecommitdiff
path: root/xmake/rules
diff options
context:
space:
mode:
authorruki <[email protected]>2019-06-15 09:19:06 +0800
committerruki <[email protected]>2019-06-15 09:19:06 +0800
commit115665bd7ad421d448b7dda421303096a677dd72 (patch)
treee10ec94c419814c6822cf6f051f98ed337bcbd53 /xmake/rules
parent42ddca8c330acd5928a553fbd562f3a3d2a4700b (diff)
add lex/yacc test project
Diffstat (limited to 'xmake/rules')
-rw-r--r--xmake/rules/lex_yacc/lex/xmake.lua29
-rw-r--r--xmake/rules/lex_yacc/yacc/xmake.lua29
2 files changed, 58 insertions, 0 deletions
diff --git a/xmake/rules/lex_yacc/lex/xmake.lua b/xmake/rules/lex_yacc/lex/xmake.lua
new file mode 100644
index 000000000..1f49731c1
--- /dev/null
+++ b/xmake/rules/lex_yacc/lex/xmake.lua
@@ -0,0 +1,29 @@
+--!A cross-platform build utility based on Lua
+--
+-- Licensed under the Apache License, Version 2.0 (the "License");
+-- you may not use this file except in compliance with the License.
+-- You may obtain a copy of the License at
+--
+-- http://www.apache.org/licenses/LICENSE-2.0
+--
+-- Unless required by applicable law or agreed to in writing, software
+-- distributed under the License is distributed on an "AS IS" BASIS,
+-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+-- See the License for the specific language governing permissions and
+-- limitations under the License.
+--
+-- Copyright (C) 2015 - 2019, TBOOX Open Source Group.
+--
+-- @author ruki
+-- @file xmake.lua
+--
+
+-- define rule: lex
+rule("lex")
+
+ -- set externsion
+ set_extensions(".l", ".ll")
+
+ -- load lex/flex
+ before_load(function (target)
+ end)
diff --git a/xmake/rules/lex_yacc/yacc/xmake.lua b/xmake/rules/lex_yacc/yacc/xmake.lua
new file mode 100644
index 000000000..5a7e3ae76
--- /dev/null
+++ b/xmake/rules/lex_yacc/yacc/xmake.lua
@@ -0,0 +1,29 @@
+--!A cross-platform build utility based on Lua
+--
+-- Licensed under the Apache License, Version 2.0 (the "License");
+-- you may not use this file except in compliance with the License.
+-- You may obtain a copy of the License at
+--
+-- http://www.apache.org/licenses/LICENSE-2.0
+--
+-- Unless required by applicable law or agreed to in writing, software
+-- distributed under the License is distributed on an "AS IS" BASIS,
+-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+-- See the License for the specific language governing permissions and
+-- limitations under the License.
+--
+-- Copyright (C) 2015 - 2019, TBOOX Open Source Group.
+--
+-- @author ruki
+-- @file xmake.lua
+--
+
+-- define rule: yacc
+rule("yacc")
+
+ -- set externsion
+ set_extensions(".y", ".yy")
+
+ -- load yacc/bison
+ before_load(function (target)
+ end)