Website Summary Files Commits Branches @commit @diff @stats
path: root / demo
diff options
context:
space:
mode:
Commit30d69a4cc144db28d11d665f5879fd4d95031517 (patch)
Author
 Dimitar Trendafilov <dimitar@coherent-labs.com>
2020-11-03 18:00:16 +0200
Committer
 Dimitar Trendafilov <dimitar@coherent-labs.com>
2020-11-03 18:00:16 +0200
Files5057b347d93ed580578a56afff3894be3c97a468 /demo
IPL-30d69a4cc144db28d11d665f5879fd4d95031517.tar
IPL-30d69a4cc144db28d11d665f5879fd4d95031517.tar.gz
IPL-30d69a4cc144db28d11d665f5879fd4d95031517.zip
Parentb4a6c3d467682d9e0bb73637b9b80a2641a62970 (diff)
Parent032e5676d23cf801e34c530731ca6a57e0b7c2f4 (diff)
Merge branch 'feature/bison_demo'
3 files changed, 40 insertions, 2 deletions
-rw-r--r--demo/bison/calc/genie.lua38
-rw-r--r--demo/bison/calc/lex.yy.c2
-rw-r--r--demo/bison/calc/parser.tab.c2
diff --git a/demo/bison/calc/genie.lua b/demo/bison/calc/genie.lua
new file mode 100644
index 0000000..62af249
--- /dev/null
+++ b/demo/bison/calc/genie.lua
@@ -0,0 +1,38 @@
+solution 'BisonDemos'
+ configurations {'debug', 'release'}
+ flags {
+ 'Cpp14',
+ 'Symbols',
+ }
+ configuration '*'
+
+ local root = 'build/'
+
+
+ configuration 'debug'
+ targetdir(root .. 'bin/debug')
+ objdir(root .. 'obj/debug')
+
+ configuration 'release'
+ targetdir(root .. 'bin/release')
+ objdir(root .. 'obj/release')
+ flags 'OptimizeSpeed'
+ configuration '*'
+
+ project 'Calc'
+ kind 'ConsoleApp'
+ language 'C'
+ uuid(os.uuid('Calc'))
+ files {
+ 'lex.yy.c',
+ 'parser.tab.c',
+ }
+ project 'DebugCalc'
+ kind 'ConsoleApp'
+ language 'C'
+ uuid(os.uuid('DebugCalc'))
+ defines 'YYDEBUG=1'
+ files {
+ 'lex.yy.c',
+ 'parser.tab.c',
+ }
diff --git a/demo/bison/calc/lex.yy.c b/demo/bison/calc/lex.yy.c
index 452fff5..8c0e8b8 100644
--- a/demo/bison/calc/lex.yy.c
+++ b/demo/bison/calc/lex.yy.c
@@ -1371,7 +1371,7 @@ static void yy_load_buffer_state (void)
b->yy_bs_column = 0;
}
- b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
+ b->yy_is_interactive = 0;//file ? (isatty( fileno(file) ) > 0) : 0;
errno = oerrno;
}
diff --git a/demo/bison/calc/parser.tab.c b/demo/bison/calc/parser.tab.c
index 2395da5..b3cfa78 100644
--- a/demo/bison/calc/parser.tab.c
+++ b/demo/bison/calc/parser.tab.c
@@ -67,7 +67,7 @@
#include <stdio.h>
int yylex();
int yyerror(const char* error);
-#define YYDEBUG 1
+
#line 73 "parser.tab.c" /* yacc.c:339 */