Hi Ter, The target generation seemed to work some days ago, thanks.
Lately though I can't build //depot/code/antlr4/main/ as I seem to be missing org.antlr.v4.codegen.OutputModelFactory. The build complains its missing with lots of errors like: /h/argus/2/j/antlr4/g/antlr4/antlr4/tool/src/org/antlr/v4/codegen/model/RuleFunction.java:32: cannot find symbol symbol : class OutputModelFactory location: package org.antlr.v4.codegen import org.antlr.v4.codegen.OutputModelFactory; % git p4 sync Performing incremental import into refs/remotes/p4/master git branch Depot paths: //depot/code/antlr4/main/ No changes to import! % git p4 rebase Performing incremental import into refs/remotes/p4/master git branch Depot paths: //depot/code/antlr4/main/ No changes to import! Rebasing the current branch onto remotes/p4/master Current branch master is up to date. % git status # On branch master nothing to commit (working directory clean) % cd tool/src/org/antlr/v4/codegen % ls -al *.java -rw-rw-r-- 1 mwright eng 11046 Jun 30 10:54 ActionTranslator.java -rw-rw-r-- 1 mwright eng 1777 Jun 30 10:54 CodeGenPipeline.java -rw-rw-r-- 1 mwright eng 7423 Jun 30 10:54 CodeGenerator.java -rw-rw-r-- 1 mwright eng 3399 Jun 30 10:54 CodeGeneratorExtension.java -rw-rw-r-- 1 mwright eng 5016 Jun 30 10:54 DefaultOutputModelFactory.java -rw-rw-r-- 1 mwright eng 1601 Jun 30 10:54 LexerFactory.java -rw-rw-r-- 1 mwright eng 9489 Jun 30 10:54 OutputModelController.java -rw-rw-r-- 1 mwright eng 5698 Jun 30 10:54 OutputModelWalker.java -rw-rw-r-- 1 mwright eng 2956 Jun 30 10:54 ParserASTExtension.java -rw-rw-r-- 1 mwright eng 7031 Jun 30 10:54 ParserFactory.java -rw-rw-r-- 1 mwright eng 3064 Jun 26 00:11 SchemeTarget.java -rw-rw-r-- 1 mwright eng 76749 Jun 28 13:47 SourceGenTriggers.java -rw-rw-r-- 1 mwright eng 8160 Jun 30 10:54 Target.java % I've written a Haskell sketch of the atn deserialize, I need to write some tests and test it, and of course lots more of the runtime to write. I'll try to stick with the lexer stuff for the moment in the hope that the lexer stuff will not be changing as much as the parser (though of course I understand that you need to change anything you want since its in development). Thanks, Mark On Wed, 22 Jun 2011 16:04:25 -0700, Terence Parr <pa...@cs.usfca.edu> wrote: > works here...try again. i added X.stg target to demo. > Ter > On Jun 21, 2011, at 7:39 AM, Mark Wright wrote: > > > On Mon, 20 Jun 2011 12:35:43 -0700, Terence Parr <pa...@cs.usfca.edu> wrote: > >> > >>> Hi Ter, > >>> > >>> This is fixed with the antlr 3.4 snapshot just released: > >>> > >>> http://antlr.org/download/antlr-3.4-complete.jar > >> > >> Yeah,Sorry. I forgot to mention that. i added inContext() function back in > >> to antlr. > >> > >>> PS: In case anyone else is trying to figure out how to build the antlr 4 > >>> dev > >>> branch, I built it with netbeans adding this to be bottom of the build.xml > >>> file. Not sure if its correct or not, but did get a successful compile: > >> > >> I think you just created our ANT build ;) I'll using that instead of mvn. > >> > >> Ter > > > > Hi Ter, > > > > Thanks for creating the ant build.xml. > > > > The options { language = Weird } seems to be missing (I thought it worked > > the other day), I was wondering if you could add it to that it looks > > for tool/resources/org/antlr/v4/tool/templates/codegen/Weird/Weird.stg > > and then I try to generate weird code? I think the file extension specified > > in Weird.stg something like: > > codeFileExtension() ::= ".ss" > > worked the other day. > > > > I'll work on trying to write the ATN interpreter. > > > > Thanks, Mark > _______________________________________________ antlr-dev mailing list antlr-dev@antlr.org http://www.antlr.org/mailman/listinfo/antlr-dev