Skip to content

Commit b0f35bf

Browse files
authored
Updates to executable and code generator files
Run the executable as java -jar umlrsds.jar in a directory with subdirectory called "output". Place code generator files in a subdirectory "cg". For mobile app generation, there should be iosapp and app subdirectories of "output".
1 parent 1a6e82a commit b0f35bf

File tree

3 files changed

+31
-0
lines changed

3 files changed

+31
-0
lines changed

cgJava8.cstl

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
--
2+
-- Main code-generation specification file for Java
3+
-- Version 8+. Also uses cginterface.cstl
4+
-- Depends on Ocl.java
5+
--
6+
-- Copyright (c) 2003,2020 Kevin Lano
7+
-- This program and the accompanying materials are
8+
-- made available under the
9+
-- terms of the Eclipse Public License 2.0
10+
-- which is available at
11+
-- http://www.eclipse.org/legal/epl-2.0
12+
--
13+
-- SPDX-License-Identifier: EPL-2.0
14+
--
15+
16+
117
Package::
218
package _1 { types: _2 classes: _3 usecases: _4 } |-->package _1;\n\nimport java.util.*;\nimport java.util.Map;\nimport java.util.HashMap;\n\n\n_2 \n_3\npublic class _1\n{ public static void main(String[] args) { }\n\n_4 \n}\n
319

cgSwift.cstl

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
--
2+
-- Main code-generation specification file for Swift
3+
-- Versions 4, 5. Also uses cgswiftmain.cstl, cgprotocol.cstl
4+
-- Depends on Ocl.swift
5+
--
6+
-- Copyright (c) 2003,2020 Kevin Lano
7+
-- This program and the accompanying materials are
8+
-- made available under the
9+
-- terms of the Eclipse Public License 2.0
10+
-- which is available at
11+
-- http://www.eclipse.org/legal/epl-2.0
12+
--
13+
-- SPDX-License-Identifier: EPL-2.0
14+
--
15+
116
Package::
217
package _1 { types: _2 classes: _3 usecases: _4 } |-->import Foundation\nimport Glibc\n\nfunc displayString(s: String)\n{ print(s) }\n\nfunc displayint(s: Int)\n{ print(String(s)) }\n\nfunc displaylong(s: Int)\n{ print(String(s)) }\n\nfunc displaydouble(s: Double)\n{ print(String(s)) }\n\nfunc displayboolean(s: Bool)\n{ print(String(s)) }\n\n_2\n\n_3\n\n_3`cgswiftmain \n\n_4
318

umlrsds.jar

23.9 KB
Binary file not shown.

0 commit comments

Comments
 (0)