Author: aharui
Date: Fri Nov 23 21:00:20 2012
New Revision: 1413064
URL: http://svn.apache.org/viewvc?rev=1413064&view=rev
Log:
A readme and a basic test for FalconJS. The code is currently configured to
output a js file for every as file. Use -debug to get files that aren't
minified in order to see what is going on.
Added:
incubator/flex/falcon/trunk/compiler.js/README (with props)
incubator/flex/falcon/trunk/compiler.js/tests/
incubator/flex/falcon/trunk/compiler.js/tests/MainCode.as (with props)
incubator/flex/falcon/trunk/compiler.js/tests/TestApp.as (with props)
Added: incubator/flex/falcon/trunk/compiler.js/README
URL:
http://svn.apache.org/viewvc/incubator/flex/falcon/trunk/compiler.js/README?rev=1413064&view=auto
==============================================================================
--- incubator/flex/falcon/trunk/compiler.js/README (added)
+++ incubator/flex/falcon/trunk/compiler.js/README Fri Nov 23 21:00:20 2012
@@ -0,0 +1,11 @@
+Apache FalconJS Compiler
+====================
+
+Before trying to build FalconJS, you must:
+
+1. Build Falcon (the compiler folder). Follow instructions in the parent
folder's README
+
+2. Try to compile tests/TestApp. It should generate .js files for TestApp.as
and MainCode.as
+
+To run FalconJS, use the bin/mxmlc script. Pass in the .as file of the
top-level application like you would normally pass it in to mxmlc with all of
the same options.
+
Propchange: incubator/flex/falcon/trunk/compiler.js/README
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/flex/falcon/trunk/compiler.js/tests/MainCode.as
URL:
http://svn.apache.org/viewvc/incubator/flex/falcon/trunk/compiler.js/tests/MainCode.as?rev=1413064&view=auto
==============================================================================
--- incubator/flex/falcon/trunk/compiler.js/tests/MainCode.as (added)
+++ incubator/flex/falcon/trunk/compiler.js/tests/MainCode.as Fri Nov 23
21:00:20 2012
@@ -0,0 +1,44 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// Licensed to the Apache Software Foundation (ASF) under one or more
+// contributor license agreements. See the NOTICE file distributed with
+// this work for additional information regarding copyright ownership.
+// The ASF licenses this file to You 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.
+//
+////////////////////////////////////////////////////////////////////////////////
+package
+{
+ public class MainCode
+ {
+ public function MainCode()
+ {
+
+ }
+
+ public var foo:String;
+
+ private var bar:int = 0;
+
+ public function get baz():String
+ {
+ return foo;
+ }
+
+ public function set baz(value:String):void
+ {
+ foo = value;
+ }
+ }
+
+
+}
\ No newline at end of file
Propchange: incubator/flex/falcon/trunk/compiler.js/tests/MainCode.as
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/flex/falcon/trunk/compiler.js/tests/TestApp.as
URL:
http://svn.apache.org/viewvc/incubator/flex/falcon/trunk/compiler.js/tests/TestApp.as?rev=1413064&view=auto
==============================================================================
--- incubator/flex/falcon/trunk/compiler.js/tests/TestApp.as (added)
+++ incubator/flex/falcon/trunk/compiler.js/tests/TestApp.as Fri Nov 23
21:00:20 2012
@@ -0,0 +1,31 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// Licensed to the Apache Software Foundation (ASF) under one or more
+// contributor license agreements. See the NOTICE file distributed with
+// this work for additional information regarding copyright ownership.
+// The ASF licenses this file to You 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.
+//
+////////////////////////////////////////////////////////////////////////////////
+package
+{
+ public class TestApp
+ {
+ private var linker:MainCode;
+
+ public function TestApp()
+ {
+
+ }
+ }
+
+}
\ No newline at end of file
Propchange: incubator/flex/falcon/trunk/compiler.js/tests/TestApp.as
------------------------------------------------------------------------------
svn:eol-style = native