Skip to content

This tool will be able to parse textual contracts such as treaties and collective agreement and enable negotiation of changes

License

Notifications You must be signed in to change notification settings

Emmacho/agreementNegotiation

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

agreementNegotiation

This tool will be able to parse textual contracts such as treaties and collective agreement and enable negotiation of changes

Steps to create a build script

  1. TO DO create a build script that will

a) copy the UmpleParser generated code into a lib directory

create directory lib if not there

cd src
umple Agreement.ump -g Java --path ../src-gen-umple .

(make sure this is never committed ... put it in .gitignore)

b) Compile the umple in the src directory, directing output to src-gen-umple (later on we should adjust the umple compiler so that it can use a classpath and compile the java directly, currently done in step c)

umple -g Java --path ../src-gen-umple Agreement.ump

c) Compile the resulting Java with the correct classpath

javac -cp ../lib/ *.java */*.java
  1. As in this repo, there needs to be an en.error file in the src directory that would optionally be populated with error messages that the parser analysis step would generate.

  2. Execute the result (the following currently has a problem due to

  • will try to process everything in testagreements .. needs fixing to just process specific files

in the src directory

java -cp '../src-gen-umple:../lib' AgreementProcessorMain ../testagreements ../../tempOutput

Steps to make the Agreement parser (and any other independent app) work

  1. Change directory to "src"
cd src

  1. Compile the umple in the src directory, directing output to src-gen-umple
umple Agreement.ump -g Java --path ../src-gen-umple

  1. Change directory to "src-gen-umple"
cd ../src-gen-umple

  1. Copy grammar file to same directory "src-gen-umple"
cp ../src/Agreement.grammar 

  1. Execute the result using the command below:
java -cp "../lib/umpleparser-1.31.0.5692.1a9e80997.jar:." AgreementProcessorMain ../testagreements ../tempOutput

About

This tool will be able to parse textual contracts such as treaties and collective agreement and enable negotiation of changes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published