Browse Source

Renames js/ to src/

Nicolas Petton 10 years ago
parent
commit
f8c679c125
85 changed files with 32 additions and 32 deletions
  1. 25 25
      Gruntfile.js
  2. 1 1
      cli/support/amberc.js
  3. 0 0
      src/Benchfib.js
  4. 0 0
      src/Benchfib.st
  5. 0 0
      src/Canvas.js
  6. 0 0
      src/Canvas.st
  7. 0 0
      src/Compiler-AST.js
  8. 0 0
      src/Compiler-AST.st
  9. 0 0
      src/Compiler-Core.js
  10. 0 0
      src/Compiler-Core.st
  11. 0 0
      src/Compiler-Exceptions.js
  12. 0 0
      src/Compiler-Exceptions.st
  13. 0 0
      src/Compiler-IR.js
  14. 0 0
      src/Compiler-IR.st
  15. 0 0
      src/Compiler-Inlining.js
  16. 0 0
      src/Compiler-Inlining.st
  17. 0 0
      src/Compiler-Interpreter.js
  18. 0 0
      src/Compiler-Interpreter.st
  19. 0 0
      src/Compiler-Semantic.js
  20. 0 0
      src/Compiler-Semantic.st
  21. 0 0
      src/Compiler-Tests.js
  22. 0 0
      src/Compiler-Tests.st
  23. 0 0
      src/Examples.js
  24. 0 0
      src/Examples.st
  25. 0 0
      src/Helios-Announcements.js
  26. 0 0
      src/Helios-Announcements.st
  27. 0 0
      src/Helios-Browser.js
  28. 0 0
      src/Helios-Browser.st
  29. 0 0
      src/Helios-Commands-Browser.js
  30. 0 0
      src/Helios-Commands-Browser.st
  31. 0 0
      src/Helios-Commands-Core.js
  32. 0 0
      src/Helios-Commands-Core.st
  33. 0 0
      src/Helios-Commands-Tools.js
  34. 0 0
      src/Helios-Commands-Tools.st
  35. 0 0
      src/Helios-Core.js
  36. 0 0
      src/Helios-Core.st
  37. 0 0
      src/Helios-Debugger.js
  38. 0 0
      src/Helios-Debugger.st
  39. 0 0
      src/Helios-Exceptions.js
  40. 0 0
      src/Helios-Exceptions.st
  41. 0 0
      src/Helios-Helpers.js
  42. 0 0
      src/Helios-Helpers.st
  43. 0 0
      src/Helios-Inspector.js
  44. 0 0
      src/Helios-Inspector.st
  45. 0 0
      src/Helios-KeyBindings.js
  46. 0 0
      src/Helios-KeyBindings.st
  47. 0 0
      src/Helios-Layout.js
  48. 0 0
      src/Helios-Layout.st
  49. 0 0
      src/Helios-References.js
  50. 0 0
      src/Helios-References.st
  51. 0 0
      src/Helios-Transcript.js
  52. 0 0
      src/Helios-Transcript.st
  53. 0 0
      src/Helios-Workspace-Tests.js
  54. 0 0
      src/Helios-Workspace-Tests.st
  55. 0 0
      src/Helios-Workspace.js
  56. 0 0
      src/Helios-Workspace.st
  57. 0 0
      src/IDE.js
  58. 0 0
      src/IDE.st
  59. 0 0
      src/Kernel-Announcements.js
  60. 0 0
      src/Kernel-Announcements.st
  61. 0 0
      src/Kernel-Classes.js
  62. 0 0
      src/Kernel-Classes.st
  63. 1 1
      src/Kernel-Collections.js
  64. 0 0
      src/Kernel-Collections.st
  65. 0 0
      src/Kernel-Exceptions.js
  66. 0 0
      src/Kernel-Exceptions.st
  67. 0 0
      src/Kernel-ImportExport.js
  68. 0 0
      src/Kernel-ImportExport.st
  69. 1 1
      src/Kernel-Infrastructure.js
  70. 2 2
      src/Kernel-Infrastructure.st
  71. 0 0
      src/Kernel-Methods.js
  72. 0 0
      src/Kernel-Methods.st
  73. 1 1
      src/Kernel-Objects.js
  74. 0 0
      src/Kernel-Objects.st
  75. 0 0
      src/Kernel-Tests.js
  76. 0 0
      src/Kernel-Tests.st
  77. 0 0
      src/Kernel-Transcript.js
  78. 0 0
      src/Kernel-Transcript.st
  79. 0 0
      src/SUnit-Tests.js
  80. 0 0
      src/SUnit-Tests.st
  81. 0 0
      src/SUnit.js
  82. 0 0
      src/SUnit.st
  83. 0 0
      src/Spaces.js
  84. 0 0
      src/Spaces.st
  85. 1 1
      support/amber.js

+ 25 - 25
Gruntfile.js

@@ -30,40 +30,40 @@ module.exports = function(grunt) {
         closure_jar: ''
       },
       all: {
-        output_dir : 'js',
-        src: ['st/Kernel-Objects.st', 'st/Kernel-Classes.st', 'st/Kernel-Methods.st', 'st/Kernel-Collections.st',
-              'st/Kernel-Infrastructure.st', 'st/Kernel-Exceptions.st', 'st/Kernel-Transcript.st', 'st/Kernel-Announcements.st',
-              'st/Kernel-ImportExport.st', 'st/Compiler-Exceptions.st', 'st/Compiler-Core.st', 'st/Compiler-AST.st',
-              'st/Compiler-IR.st', 'st/Compiler-Inlining.st', 'st/Compiler-Semantic.st', 'st/Compiler-Interpreter.st',
-              'st/Canvas.st', 'st/SUnit.st', 'st/IDE.st',
-              'st/Kernel-Tests.st', 'st/Compiler-Tests.st', 'st/SUnit-Tests.st',
-              'st/Helios-Core.st', 'st/Helios-Exceptions.st', 'st/Helios-Announcements.st',
-              'st/Helios-KeyBindings.st', 'st/Helios-Layout.st',
-              'st/Helios-Commands-Core.st', 'st/Helios-Commands-Tools.st', 'st/Helios-Commands-Browser.st',
-              'st/Helios-References.st', 'st/Helios-Inspector.st', 'st/Helios-Browser.st',
-              'st/Helios-Transcript.st', 'st/Helios-Workspace.st', 'st/Helios-Debugger.st',
-              'st/Helios-Workspace-Tests.st',
-              'st/Benchfib.st', 'st/Examples.st', 'st/Spaces.st'
+        output_dir : 'src',
+        src: ['src/Kernel-Objects.st', 'src/Kernel-Classes.st', 'src/Kernel-Methods.st', 'src/Kernel-Collections.st',
+              'src/Kernel-Infrastructure.st', 'src/Kernel-Exceptions.st', 'src/Kernel-Transcript.st', 'src/Kernel-Announcements.st',
+              'src/Kernel-ImportExport.st', 'src/Compiler-Exceptions.st', 'src/Compiler-Core.st', 'src/Compiler-AST.st',
+              'src/Compiler-IR.st', 'src/Compiler-Inlining.st', 'src/Compiler-Semantic.st', 'src/Compiler-Interpreter.st',
+              'src/Canvas.st', 'src/SUnit.st', 'src/IDE.st',
+              'src/Kernel-Tests.st', 'src/Compiler-Tests.st', 'src/SUnit-Tests.st',
+              'src/Helios-Core.st', 'src/Helios-Exceptions.st', 'src/Helios-Announcements.st',
+              'src/Helios-KeyBindings.st', 'src/Helios-Layout.st',
+              'src/Helios-Commands-Core.st', 'src/Helios-Commands-Tools.st', 'src/Helios-Commands-Browser.st',
+              'src/Helios-References.st', 'src/Helios-Inspector.st', 'src/Helios-Browser.st',
+              'src/Helios-Transcript.st', 'src/Helios-Workspace.st', 'src/Helios-Debugger.st',
+              'src/Helios-Workspace-Tests.st',
+              'src/Benchfib.st', 'src/Examples.st', 'src/Spaces.st'
               ],
         jsGlobals: ['navigator']
       },
       amber_kernel: {
-        output_dir : 'js',
-        src: ['st/Kernel-Objects.st', 'st/Kernel-Classes.st', 'st/Kernel-Methods.st', 'st/Kernel-Collections.st',
-              'st/Kernel-Infrastructure.st', 'st/Kernel-Exceptions.st', 'st/Kernel-Transcript.st', 'st/Kernel-Announcements.st']
+        output_dir : 'src',
+        src: ['src/Kernel-Objects.st', 'src/Kernel-Classes.st', 'src/Kernel-Methods.st', 'src/Kernel-Collections.st',
+              'src/Kernel-Infrastructure.st', 'src/Kernel-Exceptions.st', 'src/Kernel-Transcript.st', 'src/Kernel-Announcements.st']
       },
       amber_canvas: {
-        output_dir : 'js',
-        src: ['st/Canvas.st', 'st/SUnit.st']
+        output_dir : 'src',
+        src: ['src/Canvas.st', 'src/SUnit.st']
       },
       amber_IDE: {
-        output_dir : 'js',
-        src: ['st/IDE.st'],
+        output_dir : 'src',
+        src: ['src/IDE.st'],
         libraries: ['Canvas']
       },
       amber_tests: {
-        output_dir : 'js',
-        src: ['st/Kernel-Tests.st', 'st/Compiler-Tests.st', 'st/SUnit-Tests.st'],
+        output_dir : 'src',
+        src: ['src/Kernel-Tests.st', 'src/Compiler-Tests.st', 'src/SUnit-Tests.st'],
         libraries: ['SUnit']
       },
       amber_test_runner: {
@@ -78,7 +78,7 @@ module.exports = function(grunt) {
       },
       amber_cli: {
         output_dir: 'cli/js',
-        src: ['cli/st/AmberCli.st'],
+        src: ['cli/src/AmberCli.st'],
         libraries: [
             'Compiler-Exceptions', 'Compiler-Core', 'Compiler-AST',
             'Compiler-IR', 'Compiler-Inlining', 'Compiler-Semantic', 'Compiler-Interpreter', 'parser'
@@ -90,7 +90,7 @@ module.exports = function(grunt) {
     },
 
     jshint: {
-      amber: ['js/*.js'],
+      amber: ['src/*.js'],
       server: ['server/*.js'],
       repl: ['repl/*.js'],
       tests: ['test/*.js'],

+ 1 - 1
cli/support/amberc.js

@@ -118,7 +118,7 @@ AmberCompiler.prototype.main = function(configuration, finished_callback) {
 	}
 
 	if (undefined !== configuration.jsLibraryDirs) {
-		configuration.jsLibraryDirs.push(path.join(this.amber_dir, 'js'));
+		configuration.jsLibraryDirs.push(path.join(this.amber_dir, 'src'));
 		configuration.jsLibraryDirs.push(path.join(this.amber_dir, 'support'));
 	}
 

+ 0 - 0
js/Benchfib.js → src/Benchfib.js


+ 0 - 0
js/Benchfib.st → src/Benchfib.st


+ 0 - 0
js/Canvas.js → src/Canvas.js


+ 0 - 0
js/Canvas.st → src/Canvas.st


+ 0 - 0
js/Compiler-AST.js → src/Compiler-AST.js


+ 0 - 0
js/Compiler-AST.st → src/Compiler-AST.st


+ 0 - 0
js/Compiler-Core.js → src/Compiler-Core.js


+ 0 - 0
js/Compiler-Core.st → src/Compiler-Core.st


+ 0 - 0
js/Compiler-Exceptions.js → src/Compiler-Exceptions.js


+ 0 - 0
js/Compiler-Exceptions.st → src/Compiler-Exceptions.st


+ 0 - 0
js/Compiler-IR.js → src/Compiler-IR.js


+ 0 - 0
js/Compiler-IR.st → src/Compiler-IR.st


+ 0 - 0
js/Compiler-Inlining.js → src/Compiler-Inlining.js


+ 0 - 0
js/Compiler-Inlining.st → src/Compiler-Inlining.st


+ 0 - 0
js/Compiler-Interpreter.js → src/Compiler-Interpreter.js


+ 0 - 0
js/Compiler-Interpreter.st → src/Compiler-Interpreter.st


+ 0 - 0
js/Compiler-Semantic.js → src/Compiler-Semantic.js


+ 0 - 0
js/Compiler-Semantic.st → src/Compiler-Semantic.st


+ 0 - 0
js/Compiler-Tests.js → src/Compiler-Tests.js


+ 0 - 0
js/Compiler-Tests.st → src/Compiler-Tests.st


+ 0 - 0
js/Examples.js → src/Examples.js


+ 0 - 0
js/Examples.st → src/Examples.st


+ 0 - 0
js/Helios-Announcements.js → src/Helios-Announcements.js


+ 0 - 0
js/Helios-Announcements.st → src/Helios-Announcements.st


+ 0 - 0
js/Helios-Browser.js → src/Helios-Browser.js


+ 0 - 0
js/Helios-Browser.st → src/Helios-Browser.st


+ 0 - 0
js/Helios-Commands-Browser.js → src/Helios-Commands-Browser.js


+ 0 - 0
js/Helios-Commands-Browser.st → src/Helios-Commands-Browser.st


+ 0 - 0
js/Helios-Commands-Core.js → src/Helios-Commands-Core.js


+ 0 - 0
js/Helios-Commands-Core.st → src/Helios-Commands-Core.st


+ 0 - 0
js/Helios-Commands-Tools.js → src/Helios-Commands-Tools.js


+ 0 - 0
js/Helios-Commands-Tools.st → src/Helios-Commands-Tools.st


+ 0 - 0
js/Helios-Core.js → src/Helios-Core.js


+ 0 - 0
js/Helios-Core.st → src/Helios-Core.st


+ 0 - 0
js/Helios-Debugger.js → src/Helios-Debugger.js


+ 0 - 0
js/Helios-Debugger.st → src/Helios-Debugger.st


+ 0 - 0
js/Helios-Exceptions.js → src/Helios-Exceptions.js


+ 0 - 0
js/Helios-Exceptions.st → src/Helios-Exceptions.st


+ 0 - 0
js/Helios-Helpers.js → src/Helios-Helpers.js


+ 0 - 0
js/Helios-Helpers.st → src/Helios-Helpers.st


+ 0 - 0
js/Helios-Inspector.js → src/Helios-Inspector.js


+ 0 - 0
js/Helios-Inspector.st → src/Helios-Inspector.st


+ 0 - 0
js/Helios-KeyBindings.js → src/Helios-KeyBindings.js


+ 0 - 0
js/Helios-KeyBindings.st → src/Helios-KeyBindings.st


+ 0 - 0
js/Helios-Layout.js → src/Helios-Layout.js


+ 0 - 0
js/Helios-Layout.st → src/Helios-Layout.st


+ 0 - 0
js/Helios-References.js → src/Helios-References.js


+ 0 - 0
js/Helios-References.st → src/Helios-References.st


+ 0 - 0
js/Helios-Transcript.js → src/Helios-Transcript.js


+ 0 - 0
js/Helios-Transcript.st → src/Helios-Transcript.st


+ 0 - 0
js/Helios-Workspace-Tests.js → src/Helios-Workspace-Tests.js


+ 0 - 0
js/Helios-Workspace-Tests.st → src/Helios-Workspace-Tests.st


+ 0 - 0
js/Helios-Workspace.js → src/Helios-Workspace.js


+ 0 - 0
js/Helios-Workspace.st → src/Helios-Workspace.st


+ 0 - 0
js/IDE.js → src/IDE.js


+ 0 - 0
js/IDE.st → src/IDE.st


+ 0 - 0
js/Kernel-Announcements.js → src/Kernel-Announcements.js


+ 0 - 0
js/Kernel-Announcements.st → src/Kernel-Announcements.st


+ 0 - 0
js/Kernel-Classes.js → src/Kernel-Classes.js


+ 0 - 0
js/Kernel-Classes.st → src/Kernel-Classes.st


+ 1 - 1
js/Kernel-Collections.js → src/Kernel-Collections.js

@@ -5437,7 +5437,7 @@ globals.String.klass);
 
 
 smalltalk.addClass('Set', globals.Collection, ['defaultBucket', 'slowBucketStores', 'fastBuckets', 'size'], 'Kernel-Collections');
-globals.Set.comment="I represent an unordered set of objects without duplicates.\x0a\x0a## Implementation notes\x0a\x0aI put elements into different stores based on their type.\x0aThe goal is to store some elements into native JS object property names to be fast.\x0a\x0aIf an unboxed element has typeof 'string', 'boolean' or 'number', or an element is nil, null or undefined,\x0aI store it as a property name in an empty (== Object.create(null)) JS object, different for each type\x0a(for simplicity, nil/null/undefined is treated as one and included with the two booleans).\x0a\x0aIf element happen to be an object, I try to store them in `ArrayBucketStore`. I have two of them by default,\x0aone hashed using the Smalltalk class name, the other one using the JS constructor name. It is possible to have more or less\x0ainstances of `ArrayBucketStores`, see `#initializeSlowBucketStores`.\x0a\x0aAs a last resort, if none of the `ArrayBucketStore` instances can find a suitable bucket, the `defaultBucket` is used,\x0awhich is an `Array`.\x0a";
+globals.Set.comment="I represent an unordered set of objects without duplicates.\x0a\x0a## Implementation notes\x0a\x0aI put elements into different stores based on their type.\x0aThe goal is to store some elements into native JS object property names to be fast.\x0a\x0aIf an unboxed element has typeof 'string', 'boolean' or 'number', or an element is nil, null or undefined,\x0aI store it as a property name in an empty (== Object.create(null)) JS object, different for each type\x0a(for simplicity, nil/null/undefined is treated as one and included with the two booleans).\x0a\x0aIf element happen to be an object, I try to store them in `ArrayBucketStore`. I have two of them by default,\x0aone hashed using the Smalltalk class name, the other one using the JS constructor name. It is possible to have more or less\x0ainstances of `ArrayBucketStores`, see `#initializeSlowBucketStores`.\x0a\x0aAs a last resort, if none of the `ArrayBucketStore` instances can find a suitable bucket, the `defaultBucket` is used,\x0awhich is an `Array`.";
 smalltalk.addMethod(
 smalltalk.method({
 selector: "=",

+ 0 - 0
js/Kernel-Collections.st → src/Kernel-Collections.st


+ 0 - 0
js/Kernel-Exceptions.js → src/Kernel-Exceptions.js


+ 0 - 0
js/Kernel-Exceptions.st → src/Kernel-Exceptions.st


+ 0 - 0
js/Kernel-ImportExport.js → src/Kernel-ImportExport.js


+ 0 - 0
js/Kernel-ImportExport.st → src/Kernel-ImportExport.st


+ 1 - 1
js/Kernel-Infrastructure.js → src/Kernel-Infrastructure.js

@@ -2484,7 +2484,7 @@ globals.Setting.klass);
 
 
 smalltalk.addClass('SmalltalkImage', globals.Object, [], 'Kernel-Infrastructure');
-globals.SmalltalkImage.comment="I represent the Smalltalk system, wrapping\x0aoperations of variable `smalltalk` declared in `js/boot.js`.\x0a\x0a## API\x0a\x0aI have only one instance, accessed with global variable `Smalltalk`.\x0a\x0aThe `smalltalk` object holds all class and packages defined in the system.\x0a\x0a## Classes\x0a\x0aClasses can be accessed using the following methods:\x0a\x0a- `#classes` answers the full list of Smalltalk classes in the system\x0a- `#at:` answers a specific class or `nil`\x0a\x0a## Packages\x0a\x0aPackages can be accessed using the following methods:\x0a\x0a- `#packages` answers the full list of packages\x0a- `#packageAt:` answers a specific package or `nil`\x0a\x0a## Parsing\x0a\x0aThe `#parse:` method is used to parse Amber source code.\x0aIt requires the `Compiler` package and the `js/parser.js` parser file in order to work.";
+globals.SmalltalkImage.comment="I represent the Smalltalk system, wrapping\x0aoperations of variable `smalltalk` declared in `support/boot.js`.\x0a\x0a## API\x0a\x0aI have only one instance, accessed with global variable `Smalltalk`.\x0a\x0aThe `smalltalk` object holds all class and packages defined in the system.\x0a\x0a## Classes\x0a\x0aClasses can be accessed using the following methods:\x0a\x0a- `#classes` answers the full list of Smalltalk classes in the system\x0a- `#at:` answers a specific class or `nil`\x0a\x0a## Packages\x0a\x0aPackages can be accessed using the following methods:\x0a\x0a- `#packages` answers the full list of packages\x0a- `#packageAt:` answers a specific package or `nil`\x0a\x0a## Parsing\x0a\x0aThe `#parse:` method is used to parse Amber source code.\x0aIt requires the `Compiler` package and the `support/parser.js` parser file in order to work.";
 smalltalk.addMethod(
 smalltalk.method({
 selector: "addGlobalJsVariable:",

+ 2 - 2
js/Kernel-Infrastructure.st → src/Kernel-Infrastructure.st

@@ -965,7 +965,7 @@ Object subclass: #SmalltalkImage
 	package: 'Kernel-Infrastructure'!
 !SmalltalkImage commentStamp!
 I represent the Smalltalk system, wrapping
-operations of variable `smalltalk` declared in `js/boot.js`.
+operations of variable `smalltalk` declared in `support/boot.js`.
 
 ## API
 
@@ -990,7 +990,7 @@ Packages can be accessed using the following methods:
 ## Parsing
 
 The `#parse:` method is used to parse Amber source code.
-It requires the `Compiler` package and the `js/parser.js` parser file in order to work.!
+It requires the `Compiler` package and the `support/parser.js` parser file in order to work.!
 
 !SmalltalkImage methodsFor: 'accessing'!
 

+ 0 - 0
js/Kernel-Methods.js → src/Kernel-Methods.js


+ 0 - 0
js/Kernel-Methods.st → src/Kernel-Methods.st


+ 1 - 1
js/Kernel-Objects.js → src/Kernel-Objects.js

@@ -3,7 +3,7 @@ smalltalk.addPackage('Kernel-Objects');
 smalltalk.packages["Kernel-Objects"].transport = {"type":"amd","amdNamespace":"amber_core"};
 
 smalltalk.addClass('ProtoObject', globals.nil, [], 'Kernel-Objects');
-globals.ProtoObject.comment="I implement the basic behavior required for any object in Amber.\x0a\x0aIn most cases, subclassing `ProtoObject` is wrong and `Object` should be used instead. However subclassing `ProtoObject` can be useful in some special cases like proxy implementations. ";
+globals.ProtoObject.comment="I implement the basic behavior required for any object in Amber.\x0a\x0aIn most cases, subclassing `ProtoObject` is wrong and `Object` should be used instead. However subclassing `ProtoObject` can be useful in some special cases like proxy implementations.";
 smalltalk.addMethod(
 smalltalk.method({
 selector: "=",

+ 0 - 0
js/Kernel-Objects.st → src/Kernel-Objects.st


+ 0 - 0
js/Kernel-Tests.js → src/Kernel-Tests.js


+ 0 - 0
js/Kernel-Tests.st → src/Kernel-Tests.st


+ 0 - 0
js/Kernel-Transcript.js → src/Kernel-Transcript.js


+ 0 - 0
js/Kernel-Transcript.st → src/Kernel-Transcript.st


+ 0 - 0
js/SUnit-Tests.js → src/SUnit-Tests.js


+ 0 - 0
js/SUnit-Tests.st → src/SUnit-Tests.st


+ 0 - 0
js/SUnit.js → src/SUnit.js


+ 0 - 0
js/SUnit.st → src/SUnit.st


+ 0 - 0
js/Spaces.js → src/Spaces.js


+ 0 - 0
js/Spaces.st → src/Spaces.st


+ 1 - 1
support/amber.js

@@ -62,7 +62,7 @@ require = function (require) {
             'amber_vm': amber_home + '/support',
             'amber_css': amber_home + '/css',
             'amber_lib': library_home,
-            'amber_core': amber_home + '/js',
+            'amber_core': amber_home + '/src',
             'amber_helios/html': amber_home,
             'jquery': library_home + '/jquery/jquery.min',
             'jquery-ui': library_home + '/jquery-ui/ui/minified/jquery-ui.min'