Mike Gerwitz

Activist for User Freedom

path: root/rater
Commit message (Collapse)AuthorAgeFilesLines
* Clean up extclass remenantsMike Gerwitz2019-05-221-20/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | This is left over from f2db9f12682476437fe60c4a63c6d4e93e8f2258, in which I should have cleaned all of this up. One of our developers was hitting the removed warning, which isn't necessary since the concept of a separate "classifier" is no longer a thing after the aforementioned commit. * rater/rater.xsd (no-extclass, no-extclass-keeps): Remove. * src/current/rater.xsd: Likewise. (I really need to deduplicate these.) * src/current/compiler/js.xsl (compiler:entry-rater): Remove inaccurate comment (genclasses is used for other things). * src/current/include/depgen.xsl (preproc:depgen-match): Remove error checking for pulling in non-external classes (this is the error that the developer hit that is no longer needed). * src/current/include/preproc/eligclass.xsl (preproc:sym): Remove `@extclass' predicate. Remove portion of comment. * src/current/include/preproc/expand.xsl: Remove ancient footnote that even references an old internal rater! * src/current/include/preproc/macros.xsl (preproc:class-groupgen): Remove external propagation. * src/current/include/preproc/symtable.xsl (preproc:symimport): Remove extclass checks and propagation. (preproc:symtable)[lv:rate]: Remove external propagation. [lv:classify]: Likewise. * src/current/include/preproc/template.xsl (preproc:inline-apply): Remove external sym metadata support.
* core: Add _where-*_ query predicate templatesMike Gerwitz2019-02-041-1/+1
| | | | | | | | | | | | | | These provide a more pleasent abstraction than having to reference CMP_OP_* constants. * core/test/core/vector/interpolate.xml: {t:when=>t:where-eq}. * core/test/core/vector/table.xml: Likewise, but using the other variants where appropriate given the value of `@op'. * core/vector/interpolate.xml: Likewise. * core/vector/table.xml (_when_, _where_): Rename former to latter and provide deprecation warning. (_when-lt_, _when-lte_, _when-gt_, _when-gte_): Add abstractions. * src/current/rater.xsd: Permit template variable as tenplate name.
* DslCompiler: Use s9api instead of JAXPMike Gerwitz2018-12-181-1/+1
| | | | | | | | | | | | | | | | | | | | The difference is described here: http://www.saxonica.com/html/documentation/using-xsl/embedding/ And s9api here: http://www.saxonica.com/html/documentation/using-xsl/embedding/s9api-transformation.html * Makefile.am (DSLC_CLASSPATH): Export for submakes. * configure.ac (DSLC_CLASSPATH): Prefix with SAXON_CP. * rater/rater.xsd (classNameType): Increase length 50=>75 (generated identifiers can now exceed that, it seems). * src/current/rater.xsd: Likewise. These files need to be combined. * src/current/src/Makefile (CLASSPATH): Set to DSLC_CLASSPATH. * src/current/src/com/lovullo/dslc/DslCompiler.java: Update imports. (DslCompiler)[_DslCompiler]: New members _processor and _xsltCompiler. Convert to s9api.
* core buildMike Gerwitz2018-11-082-0/+2
| | | | | | | | | | This is the start of a working build for core. * .gitignore: Ignore generated files from configuration and build. * build.xml: Copy from rater repo. This is the last remaining ant-based dependency and can be gotten rid of; see comments. * configure.ac: New file. * rater/build-aux, rater/src: New symlinks.
* bin/: Server/client build scriptsMike Gerwitz2018-10-0813-0/+2004
These scripts allow the TAME compiler stack to be invoked naturally, rather than requiring the use of a Makefile today. This will not only allow users to more easily invoke the compiler, but will also allow us to invoke TAME naturally from Makefile and remove the klugery that has existed for so long. This users a server/client architecture in order to mitigate the startup cost of the JVM. More documentation will follow. Note that there are a bunch of symlinks in rater/---this is a transition step to allow the build to continue working as it did before, which relies on a directory structure that exists outside of this repository. This will be cleaned up in the future. * .gitignore (bin/dslc): Add ignore for generated file. * bin/dslc.in: New script to encapsulate Java invocation. * bin/tame: New script (client). * bin/tamed: New script (server). * configure.ac (JAVA_OPTS, DSLC_CLASSPATH, AUTOGENERATED): New variables for dslc.in. Output bin/dslc. * rater/README.md: Note that this symlink mess is temporary. * rater/c1map: New symlink for dslc assumptions. * rater/c1map.xsl: Likewise. * rater/calc.xsd: Likewise. * rater/compile.xsl: Likewise. * rater/compiler: Likewise. * rater/dot.xsl: Likewise. * rater/include: Likewise. * rater/link.xsl: Likewise. * rater/standalone.xsl: Likewise. * rater/summary.xsl: Likewise. * rater/tame: Likewise (warning: circular symlink). * src/current/src/com/lovullo/dslc/DslCompiler.java (_DslCompiler)[compile]: Output `DONE' lines.