Examples of Parser


Examples of ru.snake.spritepacker.writer.parser.Parser

  }

  public void prepareHeader(String textExpression) {
    Lexer lexer = new Lexer(textExpression);
    List<Token> tokens = lexer.getTokens();
    Parser parser = new Parser(tokens);
    headerExpression = parser.parse();

    headerExpression.visit(variableMap);
  }
View Full Code Here

Examples of seph.lang.parser.Parser

    public Regexp newRegexp(String pattern, String flags) {
        return Regexp.create(new StringUtils().replaceRegexpEscapes(pattern), flags);
    }

    public Object evaluateStream(String name, Reader reader) throws ControlFlow, IOException {
        Parser p = new Parser(this, reader, name);
        Message msg = (Message)p.parseFully().seq().first();
        Abstraction amsg = (Abstraction)NamedMessage.create("#", new PersistentList(msg), null, "<init>", -1, -1, p.scope);
        SephObject so = DefaultAbstraction.createFrom(amsg, LexicalScope.create(null, Ground.instance, this, new String[0]), "toplevel");
        SThread thread = new SThread(this);
        SephObject tmp = null;
        try {
View Full Code Here

Examples of sicel.compiler.parser.Parser

public class ParserImpl extends AbstractParser implements Parser
{
 
  public static void main( String[] args ) throws IOException
  {
    Parser parser = new ParserImpl();
    parser.setLexer( new LexerImpl() );
    ASTNode rootNode;
    try
    {
      rootNode = parser.parse( new File( "input.txt" ) );
    }
    catch ( SyntaxError e )
    {
      e.printStackTrace();
      return;
View Full Code Here

Examples of sk.fiit.jim.agent.parsing.Parser

    Parser.subscribe(agent);
  }
 
  @Test
  public void testRotationAndPositioncalculation(){
    new Parser().parse(message);
    assertGoodRotation();
    assertGoodPosition();
  }
View Full Code Here

Examples of st.gravel.support.compiler.ast.Parser

    }
    return _pkg[0];
  }

  public ClassNode readClass_packageName_file_namespace_(final String _aName, final st.gravel.core.Symbol _packageName, final java.io.File _aFilename, final String[] _anArray) {
    final Parser _parser;
    MessageNode _expr;
    ClassNode _cn;
    st.gravel.support.jvm.Block3<ClassNode, ClassNode, MessageNode, Parser> _directive;
    final int _start;
    _cn = ClassNode.factory.name_namespacePath_(st.gravel.core.Symbol.value(_aName), st.gravel.support.jvm.ArrayExtensions.collect_(_anArray, ((st.gravel.support.jvm.Block1<st.gravel.core.Symbol, String>) (new st.gravel.support.jvm.Block1<st.gravel.core.Symbol, String>() {

      @Override
      public st.gravel.core.Symbol value_(final String _each) {
        return (st.gravel.core.Symbol) st.gravel.core.Symbol.value(_each);
      }
    }))));
    _parser = Parser.factory.source_sourceFile_(st.gravel.support.jvm.FilenameExtensions.contentsOfEntireFile(_aFilename), SourceFile.factory.directory_name_packageName_(_aFilename.getParent(), _aFilename.getName(), _packageName));
    _start = _parser.position();
    boolean _temp1 = false;
    while (!_temp1) {
      _temp1 = _parser.atEnd();
      if (!_temp1) {
        _expr = ((MessageNode) _parser.parseExpression());
        _directive = DiskClassReader.this.directiveAt_(_expr.selector());
        _cn = _directive.value_value_value_(_cn, _expr, _parser);
        if (!_parser.atEnd()) {
          _parser.parseBang();
        }
      }
    }
    return ((ClassNode) _parser.setSourcePosition_node_(_start, _cn));
  }
View Full Code Here

Examples of stanfordlogic.gdl.Parser

    }

    public Gamer makeGamer(String gameId, GdlAtom role, GdlList description,
                           int startClock, int playClock)
    {
        Parser parser = GameManager.getParser();
       
        Gamer gamer = makeGamer(gameId, parser);
       
        GameInformation gameInfo = new MetaGdl(parser).examineGdl(description);
       
View Full Code Here

Examples of syntaxhighlight.Parser



  public static CodeContainer brush(String aText, Brush aBrush) {

    Parser aParser = new SyntaxHighlighterParser(aBrush);
    List<ParseResult> aResultList = aParser.parse(null, aText);

    CodeContainer container = new CodeContainer();

    int currentIndex = 0;
    for (ParseResult parseResult : aResultList) {
View Full Code Here

Examples of translation.tag_parser.Parser

    List<String> inputWords = new ArrayList<String>();
    inputWords.add("Jean");
    inputWords.add("dort");
    inputWords.add("beaucoup");
   
    Parser parser = new Parser();
    parser.parse(inputWords, sourceTrees);
 
  }
View Full Code Here

Examples of tzar.mafiabot.engine.Parser

        } else {
          thread = urlField.getText();
        }

        cacheFile = new File("MafiaBot-" + thread.hashCode() + ".cache");
        Parser bot = new Parser(thread, MafiaView.this);
        if (!isStopped())
          bot.start();
      }
    }.start();
  }
View Full Code Here

Examples of ua_parser.Parser

public class UserAgentMorphlineTest extends AbstractMorphlineTest {

  @Test
  public void testRawAPI() throws Exception {
    String userAgentStr = "Mozilla/5.0 (iPhone; CPU iPhone OS 5_1_1 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Version/5.1 Mobile/9B206 Safari/7534.48.3";
    Client client = new Parser().parse(userAgentStr);

    assertEquals("Mobile Safari", client.userAgent.family);
    assertEquals("5", client.userAgent.major);
    assertEquals("1", client.userAgent.minor);
    assertNull(client.userAgent.patch);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.