code stringlengths 1 1.72M | language stringclasses 1
value |
|---|---|
from Tkinter import *
from ttk import Combobox, Label
from tkFont import families
from tkSimpleDialog import Dialog
class PreferencesDialog(Dialog):
def __init__(self, parent, title, font, size):
self._master = parent
self.result = False
self.font = font
self.size = size
... | Python |
import web
class Player:
TURN = 0
WAIT_TURN = 1
WIN = 2
LOSE = 3
GUESS = 4
NOT_STARTED = 5
@classmethod
def create(cls, game, word):
p = web.insert('players',
word = word,
game = game,
comments = "",
alph... | Python |
import web
web.config.db_parameters = dict(dbn='sqlite',
db='db\\letters.db') | Python |
import web
import random
from player import Player
urls = ('/', 'index',
'/game([0-9]*)-([0-9]*)', 'game',
'/join', 'join',
'/create', 'create',
'/move', 'move',
'/ajax/game_state/([0-9]*)', 'game_state',
'/ajax/state/([0-9]*)/td([0-9]*)-([0-9]*)', 'state')
re... | Python |
from web import form
guess_word_form = form.Form(form.Textbox("word"),
form.Hidden("game")) | Python |
#####################################################################################
## Copyright (c) 2012, pa.eeapai@gmail.com ##
## All rights reserved. ##
## ... | Python |
#####################################################################################
## Copyright (c) 2012, pa.eeapai@gmail.com ##
## All rights reserved. ##
## ... | Python |
#####################################################################################
## Copyright (c) 2012, pa.eeapai@gmail.com ##
## All rights reserved. ##
## ... | Python |
#####################################################################################
## Copyright (c) 2012, pa.eeapai@gmail.com ##
## All rights reserved. ##
## ... | Python |
#####################################################################################
## Copyright (c) 2012, pa.eeapai@gmail.com ##
## All rights reserved. ##
## ... | Python |
#####################################################################################
## Copyright (c) 2012, pa.eeapai@gmail.com ##
## All rights reserved. ##
## ... | Python |
#####################################################################################
## Copyright (c) 2012, pa.eeapai@gmail.com ##
## All rights reserved. ##
## ... | Python |
#####################################################################################
## Copyright (c) 2014, pa.eeapai@gmail.com ##
## All rights reserved. ##
## ... | Python |
#####################################################################################
## Copyright (c) 2012, pa.eeapai@gmail.com ##
## All rights reserved. ##
## ... | Python |
#####################################################################################
## Copyright (c) 2012, pa.eeapai@gmail.com ##
## All rights reserved. ##
## ... | Python |
#####################################################################################
## Copyright (c) 2012, pa.eeapai@gmail.com ##
## All rights reserved. ##
## ... | Python |
#!python
"""Bootstrap setuptools installation
If you want to use setuptools in your package's setup.py, just include this
file in the same directory with it, and add this to the top of your setup.py::
from ez_setup import use_setuptools
use_setuptools()
If you want to require a specific version of setuptools... | Python |
# bootstrapping setuptools
import ez_setup
ez_setup.use_setuptools()
import os
import sys
import textwrap
from distutils.errors import *
from distutils.command.clean import clean as _clean
from distutils.cmd import Command
from setuptools import setup
from distutils import log
from distutils.core import setup
class... | Python |
import antlr3
import testbase
import unittest
class t025lexerRulePropertyRef(testbase.ANTLRTest):
def setUp(self):
self.compileGrammar()
def testValid1(self):
stream = antlr3.StringStream('foobar _Ab98 \n A12sdf')
lexer = self.getLexer(stream)
while True:
... | Python |
import antlr3
import testbase
import unittest
import textwrap
class t022scopes(testbase.ANTLRTest):
def setUp(self):
self.compileGrammar()
def parserClass(self, base):
class TParser(base):
def emitErrorMessage(self, msg):
# report errors to /dev/null
... | Python |
# -*- coding: utf-8 -*-
import unittest
import textwrap
import antlr3
import antlr3.tree
import testbase
import sys
from StringIO import StringIO
class T(testbase.ANTLRTest):
def setUp(self):
self.oldPath = sys.path[:]
sys.path.insert(0, self.baseDir)
def tearDown(self):
sys.path = s... | Python |
import antlr3
import testbase
import unittest
class t004lexer(testbase.ANTLRTest):
def setUp(self):
self.compileGrammar()
def lexerClass(self, base):
class TLexer(base):
def emitErrorMessage(self, msg):
# report errors to /dev/null
p... | Python |
import antlr3
import testbase
import unittest
class t043synpred(testbase.ANTLRTest):
def setUp(self):
self.compileGrammar()
def lexerClass(self, base):
class TLexer(base):
def recover(self, input, re):
# no error recovery yet, just crash!
r... | Python |
import antlr3
import testbase
import unittest
class t023scopes(testbase.ANTLRTest):
def setUp(self):
self.compileGrammar()
def testValid1(self):
cStream = antlr3.StringStream('foobar')
lexer = self.getLexer(cStream)
tStream = antlr3.CommonTokenStream(lexer)
pa... | Python |
import os
import sys
import antlr3
import testbase
import unittest
class t021hoist(testbase.ANTLRTest):
def setUp(self):
self.compileGrammar()
def testValid1(self):
cStream = antlr3.StringStream('enum')
lexer = self.getLexer(cStream)
tStream = antlr3.CommonTokenStream... | Python |
import antlr3
import testbase
import unittest
class t002lexer(testbase.ANTLRTest):
def setUp(self):
self.compileGrammar()
def lexerClass(self, base):
class TLexer(base):
def emitErrorMessage(self, msg):
# report errors to /dev/null
p... | Python |
import antlr3
import testbase
import unittest
class T(testbase.ANTLRTest):
def setUp(self):
self.compileGrammar(options='-trace')
def lexerClass(self, base):
class TLexer(base):
def __init__(self, *args, **kwargs):
base.__init__(self, *args, **kwargs)
... | Python |
import antlr3
import testbase
import unittest
class t039labels(testbase.ANTLRTest):
def setUp(self):
self.compileGrammar()
def lexerClass(self, base):
class TLexer(base):
def recover(self, input, re):
# no error recovery yet, just crash!
ra... | Python |
import os
import antlr3
import testbase
import unittest
class t019lexer(testbase.ANTLRTest):
def setUp(self):
self.compileGrammar()
def testValid(self):
inputPath = os.path.splitext(__file__)[0] + '.input'
stream = antlr3.StringStream(open(inputPath).read())
lexer = se... | Python |
import antlr3
import testbase
import unittest
class t035ruleLabelPropertyRef(testbase.ANTLRTest):
def setUp(self):
self.compileGrammar()
def lexerClass(self, base):
class TLexer(base):
def recover(self, input, re):
# no error recovery yet, just crash!
... | Python |
import antlr3
import testbase
import unittest
class t005lexer(testbase.ANTLRTest):
def setUp(self):
self.compileGrammar()
def lexerClass(self, base):
class TLexer(base):
def emitErrorMessage(self, msg):
# report errors to /dev/null
p... | Python |
import unittest
import textwrap
import antlr3
import testbase
class t042ast(testbase.ANTLRTest):
## def lexerClass(self, base):
## class TLexer(base):
## def reportError(self, re):
## # no error recovery yet, just crash!
## raise re
## return TLexer
... | Python |
import antlr3
import testbase
import unittest
class t010lexer(testbase.ANTLRTest):
def setUp(self):
self.compileGrammar()
def lexerClass(self, base):
class TLexer(base):
def emitErrorMessage(self, msg):
# report errors to /dev/null
p... | Python |
import antlr3
import testbase
import unittest
class t003lexer(testbase.ANTLRTest):
def setUp(self):
self.compileGrammar()
def lexerClass(self, base):
class TLexer(base):
def emitErrorMessage(self, msg):
# report errors to /dev/null
p... | Python |
import unittest
import textwrap
import antlr3
import testbase
class T(testbase.ANTLRTest):
def testbug(self):
self.compileGrammar()
cStream = antlr3.StringStream("public fooze")
lexer = self.getLexer(cStream)
tStream = antlr3.CommonTokenStream(lexer)
parser = self.... | Python |
import antlr3
import testbase
import unittest
class t038lexerRuleLabel(testbase.ANTLRTest):
def setUp(self):
self.compileGrammar()
def lexerClass(self, base):
class TLexer(base):
def recover(self, input, re):
# no error recovery yet, just crash!
... | Python |
import unittest
import textwrap
import antlr3
import antlr3.tree
import testbase
import sys
class T(testbase.ANTLRTest):
def setUp(self):
self.oldPath = sys.path[:]
sys.path.insert(0, self.baseDir)
def tearDown(self):
sys.path = self.oldPath
def parserClass(self, base):
... | Python |
import unittest
import textwrap
import antlr3
import testbase
class T(testbase.ANTLRTest):
def testRewrite(self):
self.compileGrammar()
input = textwrap.dedent(
'''\
method foo() {
i = 3;
k = i;
i = k*4;
}
m... | Python |
import antlr3
import testbase
import unittest
class t032subrulePredict(testbase.ANTLRTest):
def setUp(self):
self.compileGrammar()
def parserClass(self, base):
class TParser(base):
def recover(self, input, re):
# no error recovery yet, just crash!
... | Python |
import antlr3
import testbase
import unittest
class t014parser(testbase.ANTLRTest):
def setUp(self):
self.compileGrammar()
def testValid(self):
cStream = antlr3.StringStream('var foobar; gnarz(); var blupp; flupp ( ) ;')
lexer = self.getLexer(cStream)
tStream =... | Python |
import antlr3
import testbase
import unittest
class t041parameters(testbase.ANTLRTest):
def setUp(self):
self.compileGrammar()
def lexerClass(self, base):
class TLexer(base):
def recover(self, input, re):
# no error recovery yet, just crash!
... | Python |
import antlr3
import testbase
import unittest
class t027eof(testbase.ANTLRTest):
def setUp(self):
self.compileGrammar()
@testbase.broken("That's not how EOF is supposed to be used", Exception)
def testValid1(self):
cStream = antlr3.StringStream(' ')
lexer = self.getLexer(... | Python |
import antlr3
import testbase
import unittest
class t016actions(testbase.ANTLRTest):
def setUp(self):
self.compileGrammar()
def testValid(self):
cStream = antlr3.StringStream("int foo;")
lexer = self.getLexer(cStream)
tStream = antlr3.CommonTokenStream(lexer)
... | Python |
import antlr3
import testbase
import unittest
class t011lexer(testbase.ANTLRTest):
def setUp(self):
self.compileGrammar()
def lexerClass(self, base):
class TLexer(base):
def emitErrorMessage(self, msg):
# report errors to /dev/null
p... | Python |
import antlr3
import testbase
import unittest
class t024finally(testbase.ANTLRTest):
def setUp(self):
self.compileGrammar()
def testValid1(self):
cStream = antlr3.StringStream('foobar')
lexer = self.getLexer(cStream)
tStream = antlr3.CommonTokenStream(lexer)
p... | Python |
import unittest
import textwrap
import antlr3
import antlr3.tree
import stringtemplate3
import testbase
import sys
import os
from StringIO import StringIO
class T(testbase.ANTLRTest):
def execParser(self, grammar, grammarEntry, input, group=None):
lexerCls, parserCls = self.compileInlineGrammar(grammar)
... | Python |
import antlr3
import testbase
import unittest
class t037rulePropertyRef(testbase.ANTLRTest):
def setUp(self):
self.compileGrammar()
def lexerClass(self, base):
class TLexer(base):
def recover(self, input, re):
# no error recovery yet, just crash!
... | Python |
import antlr3
import testbase
import unittest
class t009lexer(testbase.ANTLRTest):
def setUp(self):
self.compileGrammar()
def lexerClass(self, base):
class TLexer(base):
def emitErrorMessage(self, msg):
# report errors to /dev/null
p... | Python |
import antlr3
import testbase
import unittest
class t008lexer(testbase.ANTLRTest):
def setUp(self):
self.compileGrammar()
def lexerClass(self, base):
class TLexer(base):
def emitErrorMessage(self, msg):
# report errors to /dev/null
p... | Python |
import antlr3
import testbase
import unittest
class t007lexer(testbase.ANTLRTest):
def setUp(self):
self.compileGrammar()
def lexerClass(self, base):
class TLexer(base):
def emitErrorMessage(self, msg):
# report errors to /dev/null
p... | Python |
import antlr3
import testbase
import unittest
class t036multipleReturnValues(testbase.ANTLRTest):
def setUp(self):
self.compileGrammar()
def lexerClass(self, base):
class TLexer(base):
def recover(self, input, re):
# no error recovery yet, just crash!
... | Python |
import unittest
import textwrap
import antlr3
import antlr3.tree
import stringtemplate3
import testbase
import sys
import os
from StringIO import StringIO
# FIXME: port other tests from TestLexer.java
class T(testbase.ANTLRTest):
def execParser(self, grammar, grammarEntry, input):
lexerCls, parserCls = se... | Python |
import antlr3
import testbase
import unittest
class t026actions(testbase.ANTLRTest):
def parserClass(self, base):
class TParser(base):
def __init__(self, *args, **kwargs):
base.__init__(self, *args, **kwargs)
self._errors = []
self._output = ""
... | Python |
import antlr3
import testbase
import unittest
class t029synpredgate(testbase.ANTLRTest):
def setUp(self):
self.compileGrammar()
def testValid1(self):
stream = antlr3.StringStream('ac')
lexer = self.getLexer(stream)
token = lexer.nextToken()
if __name__ == '__main__'... | Python |
import antlr3
import testbase
import unittest
class t030specialStates(testbase.ANTLRTest):
def setUp(self):
self.compileGrammar()
def testValid1(self):
cStream = antlr3.StringStream('foo')
lexer = self.getLexer(cStream)
tStream = antlr3.CommonTokenStream(lexer)
... | Python |
import antlr3
import testbase
import unittest
class t013parser(testbase.ANTLRTest):
def setUp(self):
self.compileGrammar()
def testValid(self):
cStream = antlr3.StringStream('foobar')
lexer = self.getLexer(cStream)
tStream = antlr3.CommonTokenStream(lexer)
... | Python |
import antlr3
import testbase
import unittest
import os
import sys
from cStringIO import StringIO
import difflib
import textwrap
class t012lexerXML(testbase.ANTLRTest):
def setUp(self):
self.compileGrammar('t012lexerXMLLexer.g')
def lexerClass(self, base):
class TLexer(base):
... | Python |
import unittest
import imp
import os
import errno
import sys
import glob
import re
import tempfile
import shutil
import inspect
from distutils.errors import *
import antlr3
def unlink(path):
try:
os.unlink(path)
except OSError, exc:
if exc.errno != errno.ENOENT:
raise
# At least o... | Python |
import os
import sys
import antlr3
import testbase
import unittest
from cStringIO import StringIO
import difflib
class t020fuzzy(testbase.ANTLRTest):
def setUp(self):
self.compileGrammar('t020fuzzyLexer.g')
def testValid(self):
inputPath = os.path.splitext(__file__)[0] + '.input'
... | Python |
import antlr3
import testbase
import unittest
import os
import sys
from cStringIO import StringIO
import difflib
class t018llstar(testbase.ANTLRTest):
def setUp(self):
self.compileGrammar()
def testValid(self):
inputPath = os.path.splitext(__file__)[0] + '.input'
cStream = ant... | Python |
import antlr3
import testbase
import unittest
class t017parser(testbase.ANTLRTest):
def setUp(self):
self.compileGrammar()
def parserClass(self, base):
class TestParser(base):
def __init__(self, *args, **kwargs):
base.__init__(self, *args, **kwargs)
... | Python |
import unittest
import textwrap
import antlr3
import antlr3.tree
import testbase
class T(testbase.ANTLRTest):
def walkerClass(self, base):
class TWalker(base):
def __init__(self, *args, **kwargs):
base.__init__(self, *args, **kwargs)
self.traces = []
... | Python |
import unittest
import textwrap
import antlr3
import antlr3.tree
import testbase
import sys
class TestAutoAST(testbase.ANTLRTest):
def parserClass(self, base):
class TParser(base):
def __init__(self, *args, **kwargs):
base.__init__(self, *args, **kwargs)
self._e... | Python |
import antlr3
import testbase
import unittest
class t013parser(testbase.ANTLRTest):
def setUp(self):
self.compileGrammar()
def testValid(self):
cStream = antlr3.StringStream('foobar')
lexer = self.getLexer(cStream)
tStream = antlr3.CommonTokenStream(lexer)
... | Python |
import antlr3
import testbase
import unittest
class t031emptyAlt(testbase.ANTLRTest):
def setUp(self):
self.compileGrammar()
def testValid1(self):
cStream = antlr3.StringStream('foo')
lexer = self.getLexer(cStream)
tStream = antlr3.CommonTokenStream(lexer)
par... | Python |
import unittest
import textwrap
import antlr3
import antlr3.tree
import testbase
import sys
class TestRewriteAST(testbase.ANTLRTest):
def parserClass(self, base):
class TParser(base):
def __init__(self, *args, **kwargs):
base.__init__(self, *args, **kwargs)
self... | Python |
import antlr3
import testbase
import unittest
class t040bug80(testbase.ANTLRTest):
def setUp(self):
self.compileGrammar()
def lexerClass(self, base):
class TLexer(base):
def recover(self, input, re):
# no error recovery yet, just crash!
rai... | Python |
"""Testsuite for TokenRewriteStream class."""
# don't care about docstrings
# pylint: disable-msg=C0111
import unittest
import antlr3
import testbase
class T1(testbase.ANTLRTest):
def setUp(self):
self.compileGrammar()
def _parse(self, input):
cStream = antlr3.StringStream(input)
le... | Python |
import unittest
import textwrap
import antlr3
import antlr3.tree
import testbase
import sys
class T(testbase.ANTLRTest):
def parserClass(self, base):
class TParser(base):
def __init__(self, *args, **kwargs):
base.__init__(self, *args, **kwargs)
self._output = ""... | Python |
import unittest
import textwrap
import antlr3
import antlr3.tree
import testbase
class T(testbase.ANTLRTest):
def walkerClass(self, base):
class TWalker(base):
def __init__(self, *args, **kwargs):
base.__init__(self, *args, **kwargs)
self.buf = ""
de... | Python |
import antlr3
import testbase
import unittest
class t033backtracking(testbase.ANTLRTest):
def setUp(self):
self.compileGrammar()
def parserClass(self, base):
class TParser(base):
def recover(self, input, re):
# no error recovery yet, just crash!
... | Python |
import antlr3
import testbase
import unittest
class t001lexer(testbase.ANTLRTest):
def setUp(self):
self.compileGrammar()
def lexerClass(self, base):
class TLexer(base):
def emitErrorMessage(self, msg):
# report errors to /dev/null
p... | Python |
import antlr3
import testbase
import unittest
class t006lexer(testbase.ANTLRTest):
def setUp(self):
self.compileGrammar()
def lexerClass(self, base):
class TLexer(base):
def emitErrorMessage(self, msg):
# report errors to /dev/null
p... | Python |
import antlr3
import testbase
import unittest
class t034tokenLabelPropertyRef(testbase.ANTLRTest):
def setUp(self):
self.compileGrammar()
def lexerClass(self, base):
class TLexer(base):
def recover(self, input, re):
# no error recovery yet, just crash!
... | Python |
import antlr3
import testbase
import unittest
class t015calc(testbase.ANTLRTest):
def setUp(self):
self.compileGrammar()
def _evaluate(self, expr, expected, errors=[]):
cStream = antlr3.StringStream(expr)
lexer = self.getLexer(cStream)
tStream = antlr3.CommonTokenStream(lexer)... | Python |
import unittest
import textwrap
import antlr3
import antlr3.tree
import testbase
class T(testbase.ANTLRTest):
def walkerClass(self, base):
class TWalker(base):
def __init__(self, *args, **kwargs):
base.__init__(self, *args, **kwargs)
self._output = ""
... | Python |
#!python
"""Bootstrap setuptools installation
If you want to use setuptools in your package's setup.py, just include this
file in the same directory with it, and add this to the top of your setup.py::
from ez_setup import use_setuptools
use_setuptools()
If you want to require a specific version of setuptools... | Python |
#!/usr/bin/env python
""" @namespace doxypy
doxypy is an input filter for Doxygen. It preprocesses python
files so that docstrings of classes and functions are extracted
as Doxygens special python documentation blocks. It can be found
at <http://code.foosel.net/doxypy>.
Copyright (C) 2006
Gina Haeussge (gina at f... | Python |
# -*- coding: utf-8 -*-
import os
import unittest
from StringIO import StringIO
import textwrap
import stringtemplate3
from antlr3.dottreegen import toDOT
from antlr3.treewizard import TreeWizard
from antlr3.tree import CommonTreeAdaptor
class TestToDOT(unittest.TestCase):
"""Test case for the toDOT function."... | Python |
# -*- coding: utf-8 -*-
import os
import unittest
from StringIO import StringIO
import antlr3
class TestStringStream(unittest.TestCase):
"""Test case for the StringStream class."""
def testSize(self):
"""StringStream.size()"""
stream = antlr3.StringStream('foo')
self.failUnlessEqua... | Python |
import unittest
import antlr3
class TestDFA(unittest.TestCase):
"""Test case for the DFA class."""
def setUp(self):
"""Setup test fixure.
We need a Recognizer in order to instanciate a DFA.
"""
class TRecognizer(antlr3.BaseRecognizer):
antlr_version = antlr3.r... | Python |
# -*- coding: utf-8 -*-
import os
import unittest
from StringIO import StringIO
from antlr3.tree import CommonTreeNodeStream, CommonTree, CommonTreeAdaptor
from antlr3 import CommonToken, UP, DOWN, EOF
class TestTreeNodeStream(unittest.TestCase):
"""Test case for the TreeNodeStream class."""
def setUp(self... | Python |
# -*- coding: utf-8 -*-
import os
import unittest
from StringIO import StringIO
from antlr3.tree import CommonTreeAdaptor, CommonTree, INVALID_TOKEN_TYPE
from antlr3.treewizard import TreeWizard, computeTokenTypes, \
TreePatternLexer, EOF, ID, BEGIN, END, PERCENT, COLON, DOT, ARG, \
TreePatternParser, \
... | Python |
import sys
import unittest
import antlr3
class TestBaseRecognizer(unittest.TestCase):
"""Tests for BaseRecognizer class"""
def testGetRuleInvocationStack(self):
"""BaseRecognizer._getRuleInvocationStack()"""
rules = antlr3.BaseRecognizer._getRuleInvocationStack(__name__)
self.fa... | Python |
import unittest
import antlr3
import testbase
class TestRecognitionException(unittest.TestCase):
"""Tests for the antlr3.RecognitionException class"""
def testInitNone(self):
"""RecognitionException.__init__()"""
exc = antlr3.RecognitionException()
class TestEarlyExitException(unit... | Python |
import unittest
class BrokenTest(unittest.TestCase.failureException):
def __repr__(self):
name, reason = self.args
return '%s: %s: %s works now' % (
(self.__class__.__name__, name, reason))
def broken(reason, *exceptions):
'''Indicates a failing (or erroneous) test case fails that... | Python |
import unittest
import antlr3
if __name__ == "__main__":
unittest.main(testRunner=unittest.TextTestRunner(verbosity=2))
| Python |
"""Compatibility stuff"""
# begin[licence]
#
# [The "BSD licence"]
# Copyright (c) 2005-2008 Terence Parr
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code mus... | Python |
""" @package antlr3.tree
@brief ANTLR3 runtime package, treewizard module
A utility module to create ASTs at runtime.
See <http://www.antlr.org/wiki/display/~admin/2007/07/02/Exploring+Concept+of+TreeWizard> for an overview. Note that the API of the Python implementation is slightly different.
"""
# begin[licence]
#... | Python |
"""ANTLR3 runtime package"""
# begin[licence]
#
# [The "BSD licence"]
# Copyright (c) 2005-2008 Terence Parr
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code ... | Python |
"""ANTLR3 runtime package"""
# begin[licence]
#
# [The "BSD licence"]
# Copyright (c) 2005-2008 Terence Parr
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code ... | Python |
"""ANTLR3 runtime package"""
# begin[licence]
#
# [The "BSD licence"]
# Copyright (c) 2005-2008 Terence Parr
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code ... | Python |
""" @package antlr3.tree
@brief ANTLR3 runtime package, tree module
This module contains all support classes for AST construction and tree parsers.
"""
# begin[licence]
#
# [The "BSD licence"]
# Copyright (c) 2005-2008 Terence Parr
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or... | Python |
""" @package antlr3.dottreegenerator
@brief ANTLR3 runtime package, tree module
This module contains all support classes for AST construction and tree parsers.
"""
# begin[licence]
#
# [The "BSD licence"]
# Copyright (c) 2005-2008 Terence Parr
# All rights reserved.
#
# Redistribution and use in source and binary fo... | Python |
""" @package antlr3.dottreegenerator
@brief ANTLR3 runtime package, tree module
This module contains all support classes for AST construction and tree parsers.
"""
# begin[licence]
#
# [The "BSD licence"]
# Copyright (c) 2005-2008 Terence Parr
# All rights reserved.
#
# Redistribution and use in source and binary fo... | Python |
"""ANTLR3 exception hierarchy"""
# begin[licence]
#
# [The "BSD licence"]
# Copyright (c) 2005-2008 Terence Parr
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source c... | Python |
"""ANTLR3 runtime package"""
# begin[licence]
#
# [The "BSD licence"]
# Copyright (c) 2005-2008 Terence Parr
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code ... | Python |
"""ANTLR3 runtime package"""
# begin[licence]
#
# [The "BSD licence"]
# Copyright (c) 2005-2008 Terence Parr
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code ... | Python |
"""ANTLR3 runtime package"""
# begin[licence]
#
# [The "BSD licence"]
# Copyright (c) 2005-2008 Terence Parr
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code ... | Python |
#!/usr/bin/env python
""" @namespace doxypy
doxypy is an input filter for Doxygen. It preprocesses python
files so that docstrings of classes and functions are extracted
as Doxygens special python documentation blocks. It can be found
at <http://code.foosel.net/doxypy>.
Copyright (C) 2006
Gina Haeussge (gina at f... | Python |
Subsets and Splits
SQL Console for ajibawa-2023/Python-Code-Large
Provides a useful breakdown of language distribution in the training data, showing which languages have the most samples and helping identify potential imbalances across different language groups.