No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Parser implementation Hi I am trying to implement a parser for a simple language with grammar like this. program ::= "program" declarations "begin" statements "end" declaration ::= "var" ident "as" type type ::= "string" | "int" I have the first two done, how would I write the type grammar? program( … |
|
Hi,I wish to simulate a traffic flow for a roundabout with 3 exits and be able to change how many cars enter and exit the roundabout and randomly turn off the exits. At a later stage I would also like to be able to input traffic lights to see would … |
|
Hi I am trying to implement a parser for a simple language with grammar like this. program ::= "program" declarations "begin" statements "end" declaration ::= "var" ident "as" type type ::= "string" | "int" I have the first two done, how would I write the type grammar? program( prog( DECLS, … |
|
Hi, I am doing a project on creating a traffic simulator for a particular road junction in java. I am looking for ideas on how I would go about recreating the visual of the junction in which I can have moving cars on. Would I use Graph with nodes or … |