Website Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
Commitd942fd5baffdafb2645287a5bf362fb7c120190f (patch)
Author
 Dimitar Trendafilov <dimitar@coherent-labs.com>
2018-10-10 21:46:36 +0300
Committer
 Dimitar Trendafilov <dimitar@coherent-labs.com>
2018-10-10 21:52:55 +0300
Filesbbe4153a054956ff6a2b0e341e9d5af73f73374c
IPL-d942fd5baffdafb2645287a5bf362fb7c120190f.tar
IPL-d942fd5baffdafb2645287a5bf362fb7c120190f.tar.gz
IPL-d942fd5baffdafb2645287a5bf362fb7c120190f.zip
Parenteddc31d42bce24b97e18e8ed765888af7ddbb44f (diff)
Added a sample homework
6 files changed, 38 insertions, 10 deletions
-rw-r--r--demo/flex/genie.lua10
-rw-r--r--homework/80095/js2html/.gitignore3
-rw-r--r--homework/80095/js2html/genie.lua31
-rw-r--r--homework/80095/js2html/hello.js4
-rw-r--r--homework/80095/js2html/js2html.c (renamed from demo/flex/js2html.c)0
-rw-r--r--homework/80095/js2html/js2html.flex (renamed from demo/flex/js2html.flex)0
diff --git a/demo/flex/genie.lua b/demo/flex/genie.lua
index 44b76b4..e1a4847 100644
--- a/demo/flex/genie.lua
+++ b/demo/flex/genie.lua
@@ -29,13 +29,3 @@ solution 'FlexDemos'
'JavaScript.flex',
}
debugargs 'hello.js'
-
- project 'js2html'
- kind 'ConsoleApp'
- language 'C'
- uuid(os.uuid('js2html'))
- files {
- 'js2html.c',
- 'js2html.flex',
- }
- debugargs 'hello.js'
diff --git a/homework/80095/js2html/.gitignore b/homework/80095/js2html/.gitignore
new file mode 100644
index 0000000..f3a9884
--- /dev/null
+++ b/homework/80095/js2html/.gitignore
@@ -0,0 +1,3 @@
+build
+*.sln
+*.vcxproj*
diff --git a/homework/80095/js2html/genie.lua b/homework/80095/js2html/genie.lua
new file mode 100644
index 0000000..7897b5a
--- /dev/null
+++ b/homework/80095/js2html/genie.lua
@@ -0,0 +1,31 @@
+solution 'js2html'
+ configurations {'debug', 'release'}
+ configuration 'Linux'
+ flags {
+ 'FatalWarnings',
+ 'ExtraWarnings',
+ 'Cpp14',
+ }
+ configuration '*'
+
+ local root = 'build/'
+
+
+ configuration 'debug'
+ targetdir(root .. 'bin/debug')
+ objdir(root .. 'obj/debug')
+
+ configuration 'release'
+ targetdir(root .. 'bin/release')
+ objdir(root .. 'obj/release')
+ configuration '*'
+
+ project 'js2html'
+ kind 'ConsoleApp'
+ language 'C'
+ uuid(os.uuid('js2html'))
+ files {
+ 'js2html.c',
+ 'js2html.flex',
+ }
+ debugargs 'hello.js'
diff --git a/homework/80095/js2html/hello.js b/homework/80095/js2html/hello.js
new file mode 100644
index 0000000..48170a0
--- /dev/null
+++ b/homework/80095/js2html/hello.js
@@ -0,0 +1,4 @@
+function answer() {
+ return 42;
+}
+console.log('The "Answer" is:\' ' + answer());
diff --git a/demo/flex/js2html.c b/homework/80095/js2html/js2html.c
index 00d10c6..00d10c6 100644
--- a/demo/flex/js2html.c
+++ b/homework/80095/js2html/js2html.c
diff --git a/demo/flex/js2html.flex b/homework/80095/js2html/js2html.flex
index 4dfe28a..4dfe28a 100644
--- a/demo/flex/js2html.flex
+++ b/homework/80095/js2html/js2html.flex