├── lib
├── byacc-20130925
│ ├── test
│ │ ├── error.tab.h
│ │ ├── code_error.tab.h
│ │ ├── pure_error.tab.h
│ │ ├── calc.tab.h
│ │ ├── calc2.tab.h
│ │ ├── calc3.tab.h
│ │ ├── code_calc.tab.h
│ │ ├── pure_calc.tab.h
│ │ ├── README
│ │ ├── quote_calc-s.tab.h
│ │ ├── quote_calc3.tab.h
│ │ ├── quote_calc4.tab.h
│ │ ├── quote_calc2-s.tab.h
│ │ ├── quote_calc3-s.tab.h
│ │ ├── quote_calc4-s.tab.h
│ │ ├── quote_calc.tab.h
│ │ ├── quote_calc2.tab.h
│ │ ├── error.output
│ │ ├── code_error.output
│ │ ├── error.y
│ │ ├── pure_error.output
│ │ ├── calc1.tab.h
│ │ ├── run_lint.sh
│ │ ├── code_error.y
│ │ └── pure_error.y
│ ├── VERSION
│ ├── package
│ │ ├── debian
│ │ │ ├── compat
│ │ │ ├── source
│ │ │ │ └── format
│ │ │ ├── docs
│ │ │ ├── watch
│ │ │ ├── prerm
│ │ │ ├── postinst
│ │ │ └── control
│ │ └── pkgsrc
│ │ │ ├── PLIST
│ │ │ ├── DESCR
│ │ │ ├── distinfo
│ │ │ └── Makefile
│ ├── NO_WARRANTY
│ ├── AUTHORS
│ ├── NOTES
│ └── configure.in
└── flex-2.5.37
│ ├── po
│ ├── stamp-po
│ ├── da.po
│ ├── es.po
│ ├── ko.po
│ ├── pl.po
│ ├── ro.po
│ ├── ru.po
│ ├── sv.po
│ ├── ca.gmo
│ ├── da.gmo
│ ├── de.gmo
│ ├── es.gmo
│ ├── fi.gmo
│ ├── fr.gmo
│ ├── ga.gmo
│ ├── ko.gmo
│ ├── nl.gmo
│ ├── pl.gmo
│ ├── pt_BR.po
│ ├── ro.gmo
│ ├── ru.gmo
│ ├── sv.gmo
│ ├── tr.gmo
│ ├── vi.gmo
│ ├── zh_CN.po
│ ├── pt_BR.gmo
│ ├── zh_CN.gmo
│ ├── LINGUAS
│ ├── quot.sed
│ ├── POTFILES.in
│ ├── boldquot.sed
│ ├── remove-potcdate.sin
│ └── insert-header.sin
│ ├── version.h
│ ├── tests
│ ├── test-prefix-r
│ │ ├── test.input
│ │ └── README
│ ├── test-prefix-nr
│ │ ├── test.input
│ │ └── README
│ ├── test-c++-multiple-scanners
│ │ └── test.input
│ ├── test-extended
│ │ └── test.input
│ ├── TEMPLATE
│ │ └── test.input
│ ├── test-array-nr
│ │ └── test.input
│ ├── test-array-r
│ │ └── test.input
│ ├── test-c-cpp-nr
│ │ └── test.input
│ ├── test-c-cpp-r
│ │ └── test.input
│ ├── test-quotes
│ │ └── test.input
│ ├── test-reject
│ │ └── test.input
│ ├── test-rescan-r
│ │ └── test.input
│ ├── test-c++-basic
│ │ └── test.input
│ ├── test-c++-yywrap
│ │ └── test.input
│ ├── test-rescan-nr
│ │ └── test.input
│ ├── test-basic-r
│ │ └── test.input
│ ├── test-include-by-buffer
│ │ ├── test-3.input
│ │ ├── test-1.input
│ │ └── test-2.input
│ ├── test-include-by-push
│ │ ├── test-3.input
│ │ ├── test-1.input
│ │ └── test-2.input
│ ├── test-top
│ │ └── test.input
│ ├── test-header-nr
│ │ └── test.input
│ ├── test-header-r
│ │ └── test.input
│ ├── test-include-by-reentrant
│ │ ├── test-3.input
│ │ ├── test-1.input
│ │ └── test-2.input
│ ├── test-linedir-r
│ │ ├── test.input
│ │ └── check-lines.awk
│ ├── test-noansi-r
│ │ └── test.input
│ ├── test-basic-nr
│ │ └── test.input
│ ├── test-noansi-nr
│ │ └── test.input
│ ├── test-table-opts
│ │ └── test.input
│ ├── test-bison-yylval
│ │ └── test.input
│ ├── test-debug-nr
│ │ └── test.input
│ ├── test-debug-r
│ │ └── test.input
│ ├── test-bison-nr
│ │ └── test.input
│ ├── test-bison-yylloc
│ │ └── test.input
│ ├── test-lineno-nr
│ │ └── test.input
│ ├── test-lineno-r
│ │ └── test.input
│ └── create-test
│ ├── tools
│ └── Makefile.am
│ ├── doc
│ ├── flex.pdf
│ ├── stamp-vti
│ ├── version.texi
│ └── Makefile.am
│ ├── README-alpha
│ ├── lib
│ ├── Makefile.am
│ ├── lib.c
│ ├── malloc.c
│ └── realloc.c
│ ├── examples
│ ├── manual
│ │ ├── eof_test03.txt
│ │ ├── eof_test02.txt
│ │ ├── yymoretest.dat
│ │ ├── myname.txt
│ │ ├── reject.lex
│ │ ├── myname.lex
│ │ ├── README
│ │ ├── eof_test01.txt
│ │ ├── user_act.lex
│ │ ├── datetest.dat
│ │ ├── myname2.lex
│ │ ├── unput.lex
│ │ ├── userinit.lex
│ │ ├── replace.lex
│ │ ├── yymore.lex
│ │ └── expr.lex
│ ├── fastwc
│ │ ├── wc1.l
│ │ ├── wc2.l
│ │ ├── mywc.c
│ │ ├── wc5.l
│ │ └── wc3.l
│ └── README
│ ├── .indent.pro
│ └── AUTHORS
├── src
├── test
│ ├── parse
│ │ ├── evidence.in
│ │ ├── distinct.in
│ │ ├── numref.in
│ │ ├── origin.in
│ │ ├── numdec.in
│ │ ├── fundec.in
│ │ ├── quant.in
│ │ ├── map.in
│ │ ├── origin.out
│ │ ├── ifexp.in
│ │ ├── distinct.out
│ │ ├── numdec.out
│ │ ├── evidence.out
│ │ ├── numref.out
│ │ ├── quant.out
│ │ └── fundec.out
│ ├── semant
│ │ └── Semant_test.cpp
│ ├── absyn
│ │ ├── Birthday.h
│ │ ├── Hurricane.h
│ │ ├── MatrixTest.h
│ │ ├── BiasedBall.h
│ │ ├── PoissonBall.h
│ │ ├── AircraftSimple.h
│ │ ├── HMM.h
│ │ ├── DirichletSimpleTest.h
│ │ ├── MultiCaseSimpleTest.h
│ │ ├── DirichletSimpleTest2.h
│ │ └── MultinomialSimpleTest.h
│ └── random
│ │ └── TestCategorical.cpp
├── benchmark
│ └── handcompile
│ │ ├── lwsampler_hurricane.h
│ │ ├── rejsampler_hurricane.h
│ │ ├── rejsampler_urnball.h
│ │ ├── execute_hurricane.cpp
│ │ └── makefile
├── absyn
│ ├── Decl.cpp
│ ├── Stmt.cpp
│ ├── Literal.cpp
│ ├── SetExpr.cpp
│ ├── Stmt.h
│ ├── Literal.h
│ ├── Decl.h
│ ├── Absyn.cpp
│ ├── SetExpr.h
│ ├── Symbol.cpp
│ ├── Symbol.h
│ ├── ListSet.h
│ ├── NullLiteral.h
│ ├── CardinalityExpr.h
│ ├── TypDecl.h
│ ├── IntLiteral.h
│ ├── CaseExpr.h
│ ├── BoolLiteral.h
│ ├── VarRef.h
│ ├── ArrayExpr.h
│ ├── FuncApp.h
│ ├── DoubleLiteral.h
│ ├── TypDecl.cpp
│ ├── TimeStampLiteral.h
│ ├── DistrExpr.h
│ ├── MapExpr.h
│ ├── StringLiteral.h
│ ├── IfExpr.h
│ ├── CondSet.h
│ ├── NullLiteral.cpp
│ ├── OriginDecl.h
│ ├── QuantExpr.h
│ ├── Ty.h
│ ├── Expr.h
│ ├── VarRef.cpp
│ ├── DistinctDecl.h
│ ├── OpExpr.h
│ ├── VarDecl.h
│ ├── IntLiteral.cpp
│ ├── Ty.cpp
│ └── DoubleLiteral.cpp
├── predecl
│ ├── PreDecl.cpp
│ ├── PrevFuncDecl.h
│ ├── BetaDistrDecl.h
│ ├── ToIntFuncDecl.h
│ ├── GammaDistrDecl.h
│ ├── ToRealFuncDecl.h
│ ├── BinomialDistrDecl.h
│ ├── BooleanDistrDecl.h
│ ├── DiscreteDistrDecl.h
│ ├── GaussianDistrDecl.h
│ ├── InvGammaDistrDecl.h
│ ├── LaplaceDistrDecl.h
│ ├── PoissonDistrDecl.h
│ ├── ToMatrixFuncDecl.h
│ ├── ToStringFuncDecl.h
│ ├── BernoulliDistrDecl.h
│ ├── DirichletDistrDecl.h
│ ├── GeometricDistrDecl.h
│ ├── InvWishartDistrDecl.h
│ ├── SetAggrFuncDecl.h
│ ├── UniformIntDistrDecl.h
│ ├── CategoricalDistrDecl.h
│ ├── ExponentialDistrDecl.h
│ ├── MultinomialDistrDecl.h
│ ├── UniformRealDistrDecl.h
│ ├── DiagGaussianDistrDecl.h
│ ├── LoadRealMatrixFuncDecl.h
│ ├── UniformChoiceDistrDecl.h
│ ├── UniformVectorDistrDecl.h
│ ├── TruncatedGaussDistrDecl.h
│ ├── MultivarGaussianDistrDecl.h
│ ├── PrecisionGaussianDistrDecl.h
│ ├── MatrixIntFuncDecl.h
│ ├── MathFuncDecl.h
│ ├── MatrixConstructFuncDecl.h
│ ├── MatrixRealFuncDecl.h
│ ├── MatrixMatrixFuncDecl.h
│ ├── MatrixSubsetFuncDecl.h
│ ├── MatrixStackFuncDecl.h
│ └── PreDecl.h
├── code
│ ├── Stmt.cpp
│ ├── Decl.cpp
│ ├── BreakStmt.cpp
│ ├── Stmt.h
│ ├── Decl.h
│ ├── NullLiteral.cpp
│ ├── ContinueStmt.cpp
│ ├── ContinueStmt.h
│ ├── ListInitExpr.cpp
│ ├── NullLiteral.h
│ ├── NewExpr.h
│ ├── ListInitExpr.h
│ ├── IntegerLiteral.h
│ ├── BooleanLiteral.h
│ ├── DeclStmt.h
│ ├── ParamVarDecl.h
│ ├── DeclStmt.cpp
│ ├── BreakStmt.h
│ ├── NewExpr.cpp
│ ├── FloatingLiteral.h
│ ├── ReturnStmt.h
│ ├── ArraySubscriptExpr.h
│ ├── Identifier.cpp
│ ├── SpecialMacro.cpp
│ ├── Expr.cpp
│ ├── Identifier.h
│ ├── IntegerLiteral.cpp
│ ├── ParamVarDecl.cpp
│ ├── BooleanLiteral.cpp
│ ├── TemplateExpr.h
│ ├── StringLiteral.cpp
│ ├── StringLiteral.h
│ ├── NamespaceDecl.cpp
│ ├── ReturnStmt.cpp
│ ├── NamespaceDecl.h
│ ├── CallClassConstructor.cpp
│ ├── CallClassConstructor.h
│ ├── IfStmt.h
│ ├── CompoundStmt.h
│ ├── Expr.h
│ ├── CaseStmt.cpp
│ ├── IfStmt.cpp
│ ├── TemplateExpr.cpp
│ ├── FloatingLiteral.cpp
│ ├── CaseStmt.h
│ ├── SwitchStmt.cpp
│ ├── ArraySubscriptExpr.cpp
│ ├── DeclContext.cpp
│ └── BinaryOperator.cpp
├── ir
│ ├── ListSet.h
│ ├── NullSymbol.h
│ ├── ArrayExpr.h
│ ├── SetTy.h
│ ├── IntLiteral.h
│ ├── SetExpr.cpp
│ ├── SetExpr.h
│ ├── BoolLiteral.h
│ ├── DoubleLiteral.h
│ ├── OprExpr.h
│ ├── TimestepLiteral.h
│ ├── ConstSymbol.h
│ ├── MapTy.h
│ ├── NameTy.h
│ ├── NullSymbol.cpp
│ ├── ArrayTy.h
│ ├── InstSymbol.h
│ ├── NameTy.cpp
│ ├── SetTy.cpp
│ ├── Ty.h
│ ├── InstSymbolRef.h
│ ├── VarRefer.h
│ ├── StringLiteral.h
│ ├── VarDecl.h
│ ├── CardExpr.h
│ ├── ConstSymbol.cpp
│ ├── IntLiteral.cpp
│ ├── MatrixExpr.h
│ ├── VarRefer.cpp
│ ├── MapTy.cpp
│ ├── DoubleLiteral.cpp
│ ├── BoolLiteral.cpp
│ ├── Clause.h
│ ├── UniformChoiceDistr.h
│ ├── InstSymbol.cpp
│ ├── StringLiteral.cpp
│ ├── TimestepLiteral.cpp
│ ├── ArrayTy.cpp
│ ├── Clause.cpp
│ ├── InstSymbolRef.cpp
│ ├── VarDecl.cpp
│ ├── ArrayExpr.cpp
│ ├── Expr.h
│ ├── ListSet.cpp
│ ├── MapExpr.h
│ ├── Expr.cpp
│ └── CondSet.h
├── codegen
│ ├── LWTranslator.h
│ └── LWTranslator.cpp
├── fabrica
│ └── PreDeclFactory.h
├── parse
│ └── BLOGSymbol.h
├── analyzer
│ ├── ConjugatePriors
│ │ ├── ConjugatePrior.cpp
│ │ ├── InvGammaPrior.h
│ │ ├── ConjugatePriorList.cpp
│ │ ├── ConjugatePrior.h
│ │ └── ConjugatePriorList.h
│ ├── Analyzer.cpp
│ └── Analyzer.h
├── msg
│ └── ErrorMsg.h
├── util
│ └── util_conjugate.h
└── random
│ ├── Poisson.h
│ ├── Geometric.h
│ ├── Bernoulli.h
│ ├── Laplace.h
│ ├── Binomial.h
│ ├── Exponential.h
│ ├── BooleanDistrib.h
│ ├── UniformInt.h
│ ├── Gamma.h
│ ├── UniformReal.h
│ ├── Beta.h
│ ├── InvGamma.h
│ └── Gaussian.h
├── swifty-mh.bat
├── swifty-pf.bat
├── swift.rc
├── design
├── swift-architecture.pptx
└── swift-ir-classdiagram.zargo
├── git-sync.sh
├── swifty.bat
├── runtests.bat
├── swifty-pf.sh
├── swifty-mh.sh
├── compile.bat
├── example
├── test
│ ├── test-distrib-placement.blog
│ ├── test-obs-forloop-pf.blog
│ ├── test-obs-forloop.blog
│ ├── test-diaggaussian.blog
│ ├── test-query-forloop.blog
│ ├── test-invwishart.blog
│ ├── test-matrix.blog
│ ├── test-precisiongaussian.blog
│ └── test-extern.blog
├── simple-aircraft.blog
├── birthday.blog
├── exponential.blog
├── burglary-multihouse.blog
└── csi.blog
└── swifty.sh
/lib/byacc-20130925/test/error.tab.h:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/lib/byacc-20130925/VERSION:
--------------------------------------------------------------------------------
1 | 20130925
2 |
--------------------------------------------------------------------------------
/lib/byacc-20130925/test/code_error.tab.h:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/lib/byacc-20130925/test/pure_error.tab.h:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/lib/flex-2.5.37/po/stamp-po:
--------------------------------------------------------------------------------
1 | timestamp
2 |
--------------------------------------------------------------------------------
/lib/byacc-20130925/package/debian/compat:
--------------------------------------------------------------------------------
1 | 5
2 |
--------------------------------------------------------------------------------
/src/test/parse/evidence.in:
--------------------------------------------------------------------------------
1 | obs Color(b[0]) = Red;
--------------------------------------------------------------------------------
/src/test/parse/distinct.in:
--------------------------------------------------------------------------------
1 | distinct Ball a[10], b;
--------------------------------------------------------------------------------
/src/test/parse/numref.in:
--------------------------------------------------------------------------------
1 | query #{Aircraft a : a != b};
--------------------------------------------------------------------------------
/src/test/parse/origin.in:
--------------------------------------------------------------------------------
1 | origin Aircraft Source(Blip);
--------------------------------------------------------------------------------
/swifty-mh.bat:
--------------------------------------------------------------------------------
1 | swift -e MHSampler -i %1.blog -o %1.cpp
--------------------------------------------------------------------------------
/lib/flex-2.5.37/version.h:
--------------------------------------------------------------------------------
1 | #define FLEX_VERSION VERSION
2 |
--------------------------------------------------------------------------------
/src/test/parse/numdec.in:
--------------------------------------------------------------------------------
1 | #Blip(Source = a) ~ Poisson(1.0);
--------------------------------------------------------------------------------
/swifty-pf.bat:
--------------------------------------------------------------------------------
1 | swift -e ParticleFilter -i %1.blog -o %1.cpp
--------------------------------------------------------------------------------
/lib/byacc-20130925/package/debian/source/format:
--------------------------------------------------------------------------------
1 | 3.0 (quilt)
2 |
--------------------------------------------------------------------------------
/lib/flex-2.5.37/tests/test-prefix-r/test.input:
--------------------------------------------------------------------------------
1 | Dummy input.
2 |
--------------------------------------------------------------------------------
/lib/flex-2.5.37/tests/test-prefix-nr/test.input:
--------------------------------------------------------------------------------
1 | Dummy input.
2 |
--------------------------------------------------------------------------------
/src/test/parse/fundec.in:
--------------------------------------------------------------------------------
1 | random Ball x ~ UniformChoice({b[0], b[1]});
--------------------------------------------------------------------------------
/src/test/parse/quant.in:
--------------------------------------------------------------------------------
1 | query exists Person x exists Person y (x==y);
--------------------------------------------------------------------------------
/swift.rc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lileicc/swift/HEAD/swift.rc
--------------------------------------------------------------------------------
/lib/flex-2.5.37/tools/Makefile.am:
--------------------------------------------------------------------------------
1 | EXTRA_DIST = \
2 | git2cl
3 |
4 |
--------------------------------------------------------------------------------
/src/test/parse/map.in:
--------------------------------------------------------------------------------
1 | random Ball x ~ Categorical({b[0]->0.5, b[1]->0.5});
--------------------------------------------------------------------------------
/lib/flex-2.5.37/tests/test-c++-multiple-scanners/test.input:
--------------------------------------------------------------------------------
1 | foo on bar off
2 |
--------------------------------------------------------------------------------
/lib/flex-2.5.37/tests/test-extended/test.input:
--------------------------------------------------------------------------------
1 | abcdefghijklmnopqrstuvwxyz
2 | ABCD
3 |
--------------------------------------------------------------------------------
/lib/byacc-20130925/package/debian/docs:
--------------------------------------------------------------------------------
1 | README
2 | ACKNOWLEDGEMENTS
3 | NEW_FEATURES
4 | NOTES
5 |
--------------------------------------------------------------------------------
/lib/flex-2.5.37/po/da.po:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lileicc/swift/HEAD/lib/flex-2.5.37/po/da.po
--------------------------------------------------------------------------------
/lib/flex-2.5.37/po/es.po:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lileicc/swift/HEAD/lib/flex-2.5.37/po/es.po
--------------------------------------------------------------------------------
/lib/flex-2.5.37/po/ko.po:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lileicc/swift/HEAD/lib/flex-2.5.37/po/ko.po
--------------------------------------------------------------------------------
/lib/flex-2.5.37/po/pl.po:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lileicc/swift/HEAD/lib/flex-2.5.37/po/pl.po
--------------------------------------------------------------------------------
/lib/flex-2.5.37/po/ro.po:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lileicc/swift/HEAD/lib/flex-2.5.37/po/ro.po
--------------------------------------------------------------------------------
/lib/flex-2.5.37/po/ru.po:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lileicc/swift/HEAD/lib/flex-2.5.37/po/ru.po
--------------------------------------------------------------------------------
/lib/flex-2.5.37/po/sv.po:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lileicc/swift/HEAD/lib/flex-2.5.37/po/sv.po
--------------------------------------------------------------------------------
/lib/byacc-20130925/test/calc.tab.h:
--------------------------------------------------------------------------------
1 | #define DIGIT 257
2 | #define LETTER 258
3 | #define UMINUS 259
4 |
--------------------------------------------------------------------------------
/lib/byacc-20130925/test/calc2.tab.h:
--------------------------------------------------------------------------------
1 | #define DIGIT 257
2 | #define LETTER 258
3 | #define UMINUS 259
4 |
--------------------------------------------------------------------------------
/lib/byacc-20130925/test/calc3.tab.h:
--------------------------------------------------------------------------------
1 | #define DIGIT 257
2 | #define LETTER 258
3 | #define UMINUS 259
4 |
--------------------------------------------------------------------------------
/lib/flex-2.5.37/po/ca.gmo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lileicc/swift/HEAD/lib/flex-2.5.37/po/ca.gmo
--------------------------------------------------------------------------------
/lib/flex-2.5.37/po/da.gmo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lileicc/swift/HEAD/lib/flex-2.5.37/po/da.gmo
--------------------------------------------------------------------------------
/lib/flex-2.5.37/po/de.gmo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lileicc/swift/HEAD/lib/flex-2.5.37/po/de.gmo
--------------------------------------------------------------------------------
/lib/flex-2.5.37/po/es.gmo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lileicc/swift/HEAD/lib/flex-2.5.37/po/es.gmo
--------------------------------------------------------------------------------
/lib/flex-2.5.37/po/fi.gmo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lileicc/swift/HEAD/lib/flex-2.5.37/po/fi.gmo
--------------------------------------------------------------------------------
/lib/flex-2.5.37/po/fr.gmo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lileicc/swift/HEAD/lib/flex-2.5.37/po/fr.gmo
--------------------------------------------------------------------------------
/lib/flex-2.5.37/po/ga.gmo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lileicc/swift/HEAD/lib/flex-2.5.37/po/ga.gmo
--------------------------------------------------------------------------------
/lib/flex-2.5.37/po/ko.gmo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lileicc/swift/HEAD/lib/flex-2.5.37/po/ko.gmo
--------------------------------------------------------------------------------
/lib/flex-2.5.37/po/nl.gmo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lileicc/swift/HEAD/lib/flex-2.5.37/po/nl.gmo
--------------------------------------------------------------------------------
/lib/flex-2.5.37/po/pl.gmo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lileicc/swift/HEAD/lib/flex-2.5.37/po/pl.gmo
--------------------------------------------------------------------------------
/lib/flex-2.5.37/po/pt_BR.po:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lileicc/swift/HEAD/lib/flex-2.5.37/po/pt_BR.po
--------------------------------------------------------------------------------
/lib/flex-2.5.37/po/ro.gmo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lileicc/swift/HEAD/lib/flex-2.5.37/po/ro.gmo
--------------------------------------------------------------------------------
/lib/flex-2.5.37/po/ru.gmo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lileicc/swift/HEAD/lib/flex-2.5.37/po/ru.gmo
--------------------------------------------------------------------------------
/lib/flex-2.5.37/po/sv.gmo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lileicc/swift/HEAD/lib/flex-2.5.37/po/sv.gmo
--------------------------------------------------------------------------------
/lib/flex-2.5.37/po/tr.gmo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lileicc/swift/HEAD/lib/flex-2.5.37/po/tr.gmo
--------------------------------------------------------------------------------
/lib/flex-2.5.37/po/vi.gmo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lileicc/swift/HEAD/lib/flex-2.5.37/po/vi.gmo
--------------------------------------------------------------------------------
/lib/flex-2.5.37/po/zh_CN.po:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lileicc/swift/HEAD/lib/flex-2.5.37/po/zh_CN.po
--------------------------------------------------------------------------------
/lib/flex-2.5.37/tests/TEMPLATE/test.input:
--------------------------------------------------------------------------------
1 | 0000 foo 1111 foo 0000 bar
2 | 0000 foo 1111 foo 0000 bar
3 |
--------------------------------------------------------------------------------
/lib/byacc-20130925/test/code_calc.tab.h:
--------------------------------------------------------------------------------
1 | #define DIGIT 257
2 | #define LETTER 258
3 | #define UMINUS 259
4 |
--------------------------------------------------------------------------------
/lib/byacc-20130925/test/pure_calc.tab.h:
--------------------------------------------------------------------------------
1 | #define DIGIT 257
2 | #define LETTER 258
3 | #define UMINUS 259
4 |
--------------------------------------------------------------------------------
/lib/flex-2.5.37/doc/flex.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lileicc/swift/HEAD/lib/flex-2.5.37/doc/flex.pdf
--------------------------------------------------------------------------------
/lib/flex-2.5.37/po/pt_BR.gmo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lileicc/swift/HEAD/lib/flex-2.5.37/po/pt_BR.gmo
--------------------------------------------------------------------------------
/lib/flex-2.5.37/po/zh_CN.gmo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lileicc/swift/HEAD/lib/flex-2.5.37/po/zh_CN.gmo
--------------------------------------------------------------------------------
/lib/flex-2.5.37/tests/test-array-nr/test.input:
--------------------------------------------------------------------------------
1 | 0000 foo 1111 foo 0000 bar
2 | 0000 foo 1111 foo 0000 bar
3 |
--------------------------------------------------------------------------------
/lib/flex-2.5.37/tests/test-array-r/test.input:
--------------------------------------------------------------------------------
1 | 0000 foo 1111 foo 0000 bar
2 | 0000 foo 1111 foo 0000 bar
3 |
--------------------------------------------------------------------------------
/lib/flex-2.5.37/tests/test-c-cpp-nr/test.input:
--------------------------------------------------------------------------------
1 | 0000 foo 1111 foo 0000 bar
2 | 0000 foo 1111 foo 0000 bar
3 |
--------------------------------------------------------------------------------
/lib/flex-2.5.37/tests/test-c-cpp-r/test.input:
--------------------------------------------------------------------------------
1 | 0000 foo 1111 foo 0000 bar
2 | 0000 foo 1111 foo 0000 bar
3 |
--------------------------------------------------------------------------------
/lib/flex-2.5.37/tests/test-quotes/test.input:
--------------------------------------------------------------------------------
1 | 0000 foo 1111 foo 0000 bar
2 | 0000 foo 1111 foo 0000 bar
3 |
--------------------------------------------------------------------------------
/lib/flex-2.5.37/tests/test-reject/test.input:
--------------------------------------------------------------------------------
1 | 0000 foo 1111 foo 0000 bar
2 | 0000 foo 1111 foo 0000 bar
3 |
--------------------------------------------------------------------------------
/lib/flex-2.5.37/tests/test-rescan-r/test.input:
--------------------------------------------------------------------------------
1 | 0000 foo 1111 foo 0000 bar
2 | 0000 foo 1111 foo 0000 bar
3 |
--------------------------------------------------------------------------------
/design/swift-architecture.pptx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lileicc/swift/HEAD/design/swift-architecture.pptx
--------------------------------------------------------------------------------
/lib/flex-2.5.37/tests/test-c++-basic/test.input:
--------------------------------------------------------------------------------
1 | 0000 foo 1111 foo 0000 bar
2 | 0000 foo 1111 foo 0000 bar
3 |
--------------------------------------------------------------------------------
/lib/flex-2.5.37/tests/test-c++-yywrap/test.input:
--------------------------------------------------------------------------------
1 | 0000 foo 1111 foo 0000 bar
2 | 0000 foo 1111 foo 0000 bar
3 |
--------------------------------------------------------------------------------
/lib/flex-2.5.37/tests/test-rescan-nr/test.input:
--------------------------------------------------------------------------------
1 | 0000 foo 1111 foo 0000 bar
2 | 0000 foo 1111 foo 0000 bar
3 |
--------------------------------------------------------------------------------
/design/swift-ir-classdiagram.zargo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lileicc/swift/HEAD/design/swift-ir-classdiagram.zargo
--------------------------------------------------------------------------------
/lib/flex-2.5.37/tests/test-basic-r/test.input:
--------------------------------------------------------------------------------
1 | # this is a comment
2 | foo = "bar"
3 | num = 43
4 | setting = false
5 |
--------------------------------------------------------------------------------
/lib/flex-2.5.37/tests/test-include-by-buffer/test-3.input:
--------------------------------------------------------------------------------
1 | Beginning of "test-3.input".
2 | End of "test-3.input".
3 |
--------------------------------------------------------------------------------
/lib/flex-2.5.37/tests/test-include-by-push/test-3.input:
--------------------------------------------------------------------------------
1 | Beginning of "test-3.input".
2 | End of "test-3.input".
3 |
--------------------------------------------------------------------------------
/lib/flex-2.5.37/tests/test-top/test.input:
--------------------------------------------------------------------------------
1 | Any input is ok for this scanner.
2 | We only care if it links.
3 |
4 |
--------------------------------------------------------------------------------
/lib/flex-2.5.37/tests/test-header-nr/test.input:
--------------------------------------------------------------------------------
1 | Any input is ok for this scanner.
2 | We only care if it links.
3 |
4 |
--------------------------------------------------------------------------------
/lib/flex-2.5.37/tests/test-header-r/test.input:
--------------------------------------------------------------------------------
1 | Any input is ok for this scanner.
2 | We only care if it links.
3 |
4 |
--------------------------------------------------------------------------------
/lib/flex-2.5.37/tests/test-include-by-reentrant/test-3.input:
--------------------------------------------------------------------------------
1 | Beginning of "test-3.input".
2 | End of "test-3.input".
3 |
--------------------------------------------------------------------------------
/lib/flex-2.5.37/tests/test-linedir-r/test.input:
--------------------------------------------------------------------------------
1 | Any input is ok for this scanner.
2 | We only care if it links.
3 |
4 |
--------------------------------------------------------------------------------
/lib/flex-2.5.37/tests/test-noansi-r/test.input:
--------------------------------------------------------------------------------
1 | # this is a comment
2 | foo = "bar"
3 | num = 43
4 | setting = false
5 |
--------------------------------------------------------------------------------
/git-sync.sh:
--------------------------------------------------------------------------------
1 | git pull --all
2 | git remote prune origin
3 | git branch --merged | grep -v "\*" | xargs -n 1 git branch -d
4 |
--------------------------------------------------------------------------------
/lib/flex-2.5.37/README-alpha:
--------------------------------------------------------------------------------
1 | Beta versions and cvs snapshots of flex can be had at
2 | ftp://ftp.uncg.edu/people/wlestes/.
3 |
--------------------------------------------------------------------------------
/lib/flex-2.5.37/tests/test-basic-nr/test.input:
--------------------------------------------------------------------------------
1 | # this is a comment
2 | foo = "bar"
3 | num = 43
4 | setting = false
5 |
6 |
--------------------------------------------------------------------------------
/lib/flex-2.5.37/tests/test-noansi-nr/test.input:
--------------------------------------------------------------------------------
1 | # this is a comment
2 | foo = "bar"
3 | num = 43
4 | setting = false
5 |
6 |
--------------------------------------------------------------------------------
/lib/flex-2.5.37/tests/test-table-opts/test.input:
--------------------------------------------------------------------------------
1 | 0000 foo 1111 foo 0000 bar foobar
2 | 0000 foo 1111 foo 0000 bar foobar
3 |
--------------------------------------------------------------------------------
/lib/flex-2.5.37/tests/test-prefix-nr/README:
--------------------------------------------------------------------------------
1 | This check is to make sure the prefix "yy" is substituted where it should be.
2 |
3 |
--------------------------------------------------------------------------------
/lib/flex-2.5.37/tests/test-prefix-r/README:
--------------------------------------------------------------------------------
1 | This check is to make sure the prefix "yy" is substituted where it should be.
2 |
3 |
--------------------------------------------------------------------------------
/swifty.bat:
--------------------------------------------------------------------------------
1 | swift -i %* -o _target.cpp
2 |
3 | g++ -std=c++11 -Wall src/random/*.cpp _target.cpp -o _target -O3
4 |
5 | _target
6 |
--------------------------------------------------------------------------------
/lib/byacc-20130925/package/pkgsrc/PLIST:
--------------------------------------------------------------------------------
1 | @comment $NetBSD: PLIST,v 1.2 2005/04/13 14:11:54 wiz Exp $
2 | bin/yacc
3 | man/man1/yacc.1
4 |
--------------------------------------------------------------------------------
/lib/flex-2.5.37/doc/stamp-vti:
--------------------------------------------------------------------------------
1 | @set UPDATED 22 July 2012
2 | @set UPDATED-MONTH July 2012
3 | @set EDITION 2.5.37
4 | @set VERSION 2.5.37
5 |
--------------------------------------------------------------------------------
/lib/flex-2.5.37/doc/version.texi:
--------------------------------------------------------------------------------
1 | @set UPDATED 22 July 2012
2 | @set UPDATED-MONTH July 2012
3 | @set EDITION 2.5.37
4 | @set VERSION 2.5.37
5 |
--------------------------------------------------------------------------------
/lib/flex-2.5.37/lib/Makefile.am:
--------------------------------------------------------------------------------
1 | noinst_LIBRARIES = libcompat.a
2 | libcompat_a_SOURCES = lib.c
3 | libcompat_a_LIBADD = $(LIBOBJS)
4 |
5 |
--------------------------------------------------------------------------------
/lib/flex-2.5.37/tests/test-bison-yylval/test.input:
--------------------------------------------------------------------------------
1 |
2 |
3 | This is a test
4 |
5 |
6 |
--------------------------------------------------------------------------------
/lib/flex-2.5.37/tests/test-debug-nr/test.input:
--------------------------------------------------------------------------------
1 | Any input will do for this test.
2 | We are only testing if it actually runs in debug mode.
3 |
--------------------------------------------------------------------------------
/lib/flex-2.5.37/tests/test-debug-r/test.input:
--------------------------------------------------------------------------------
1 | Any input will do for this test.
2 | We are only testing if it actually runs in debug mode.
3 |
--------------------------------------------------------------------------------
/lib/flex-2.5.37/tests/test-include-by-push/test-1.input:
--------------------------------------------------------------------------------
1 | Beginning of "test-1.input".
2 | #include
3 | End of "test-1.input".
4 |
--------------------------------------------------------------------------------
/lib/flex-2.5.37/tests/test-include-by-push/test-2.input:
--------------------------------------------------------------------------------
1 | Beginning of "test-2.input".
2 | #include
3 | End of "test-2.input".
4 |
--------------------------------------------------------------------------------
/lib/byacc-20130925/package/debian/watch:
--------------------------------------------------------------------------------
1 | version=3
2 |
3 | opts=passive ftp://invisible-island.net/byacc/byacc-(\d+)\.tgz \
4 | debian uupdate
5 |
--------------------------------------------------------------------------------
/lib/flex-2.5.37/tests/test-include-by-buffer/test-1.input:
--------------------------------------------------------------------------------
1 | Beginning of "test-1.input".
2 | #include
3 | End of "test-1.input".
4 |
--------------------------------------------------------------------------------
/lib/flex-2.5.37/tests/test-include-by-buffer/test-2.input:
--------------------------------------------------------------------------------
1 | Beginning of "test-2.input".
2 | #include
3 | End of "test-2.input".
4 |
--------------------------------------------------------------------------------
/lib/flex-2.5.37/tests/test-include-by-reentrant/test-1.input:
--------------------------------------------------------------------------------
1 | Beginning of "test-1.input".
2 | #include
3 | End of "test-1.input".
4 |
--------------------------------------------------------------------------------
/lib/flex-2.5.37/tests/test-include-by-reentrant/test-2.input:
--------------------------------------------------------------------------------
1 | Beginning of "test-2.input".
2 | #include
3 | End of "test-2.input".
4 |
--------------------------------------------------------------------------------
/lib/flex-2.5.37/tests/test-bison-nr/test.input:
--------------------------------------------------------------------------------
1 | 0001: FIRSTNAME=firstname
2 | 0002: MIDDLENAME=middle
3 | 0003: LASTNAME=lastname
4 | 0004: ADDRESS=address
5 |
--------------------------------------------------------------------------------
/lib/flex-2.5.37/examples/manual/eof_test03.txt:
--------------------------------------------------------------------------------
1 | INCLUDE #3
2 |
3 | This is the third file that will
4 | be included.
5 |
6 | >>> echo "I am `whoami`!!"
7 |
8 |
--------------------------------------------------------------------------------
/lib/flex-2.5.37/tests/test-bison-yylloc/test.input:
--------------------------------------------------------------------------------
1 | 0001: FIRSTNAME=firstname
2 | 0002: MIDDLENAME=middle
3 | 0003: LASTNAME=lastname
4 | 0004: ADDRESS=address
5 |
--------------------------------------------------------------------------------
/lib/flex-2.5.37/po/LINGUAS:
--------------------------------------------------------------------------------
1 | ca
2 | da
3 | de
4 | es
5 | fi
6 | fr
7 | ga
8 | ko
9 | nl
10 | pl
11 | pt_BR
12 | ro
13 | ru
14 | sv
15 | tr
16 | vi
17 | zh_CN
18 |
--------------------------------------------------------------------------------
/src/test/parse/origin.out:
--------------------------------------------------------------------------------
1 | (BlogProgram:
2 | (args:
3 | (OriginDecl:
4 | :func Source
5 | :typ Aircraft
6 | :arg Blip
7 | )
8 | )
9 | )
10 |
--------------------------------------------------------------------------------
/lib/flex-2.5.37/examples/manual/eof_test02.txt:
--------------------------------------------------------------------------------
1 | INCLUDE #2
2 |
3 | This is the second file that will
4 | be included.
5 |
6 | >>> Foo are GNU?
7 |
8 | #include "eof_test03.txt"
9 |
--------------------------------------------------------------------------------
/lib/flex-2.5.37/po/quot.sed:
--------------------------------------------------------------------------------
1 | s/"\([^"]*\)"/“\1”/g
2 | s/`\([^`']*\)'/‘\1’/g
3 | s/ '\([^`']*\)' / ‘\1’ /g
4 | s/ '\([^`']*\)'$/ ‘\1’/g
5 | s/^'\([^`']*\)' /‘\1’ /g
6 | s/“”/""/g
7 |
--------------------------------------------------------------------------------
/runtests.bat:
--------------------------------------------------------------------------------
1 | for %%f in (src\test\parse\*.in) do (
2 | parseex -i src\test\parse\%%~nf.in -o src\test\parse\%%~nf.tmp
3 | fc src\test\parse\%%~nf.out src\test\parse\%%~nf.tmp
4 | )
--------------------------------------------------------------------------------
/src/test/parse/ifexp.in:
--------------------------------------------------------------------------------
1 | random PrepLevel Prep(City c) {
2 | if (First == c) then ~ Categorical({High -> 0.5, Low -> 0.5})
3 | else ~ Categorical({High -> 0.8, Low -> 0.2})
4 | };
--------------------------------------------------------------------------------
/lib/byacc-20130925/test/README:
--------------------------------------------------------------------------------
1 | -- $Id: README,v 1.1 2004/03/28 19:10:48 tom Exp $
2 |
3 | The files in this directory are input (.y) and output (.output, .tab.c, .tab.h)
4 | examples.
5 |
--------------------------------------------------------------------------------
/lib/flex-2.5.37/examples/manual/yymoretest.dat:
--------------------------------------------------------------------------------
1 | "This is a test \
2 | of multi-line string \
3 | scanning in flex. \
4 | This may be breaking some law \
5 | of usage though..."
6 |
7 |
8 |
--------------------------------------------------------------------------------
/lib/byacc-20130925/NO_WARRANTY:
--------------------------------------------------------------------------------
1 | Berkeley Yacc is distributed with no warranty whatever. The author
2 | and any other contributors take no responsibility for the consequences of
3 | its use.
4 |
--------------------------------------------------------------------------------
/lib/flex-2.5.37/tests/test-linedir-r/check-lines.awk:
--------------------------------------------------------------------------------
1 | {
2 | if( /#line/ && $1 != ($3 - 1)) {
3 | printf "Line directive mismatch at line %d: %s\n", NR, $0;
4 | exit 1;
5 | }
6 | }
7 |
8 |
--------------------------------------------------------------------------------
/src/test/parse/distinct.out:
--------------------------------------------------------------------------------
1 | (BlogProgram:
2 | (args:
3 | (DistinctDecl:
4 | :type Ball
5 | :var (:
6 | (: a 10 )
7 | (: b 1 )
8 | )
9 | )
10 | )
11 | )
12 |
--------------------------------------------------------------------------------
/lib/flex-2.5.37/examples/manual/myname.txt:
--------------------------------------------------------------------------------
1 | Hello, my name name is %NAME. Actually
2 | "%NAME" isn't my real name, it is the
3 | alias I use when I'm on %HOST, which
4 | is the %HOSTTYPE I use. My HOME
5 | directory is %HOME.
6 |
7 |
--------------------------------------------------------------------------------
/lib/byacc-20130925/package/debian/prerm:
--------------------------------------------------------------------------------
1 | #! /bin/sh
2 | # prerm script for byacc
3 |
4 | set -e
5 |
6 | if [ $1 != "upgrade" ]; then
7 | update-alternatives --remove yacc /usr/bin/byacc
8 | fi
9 |
10 | #DEBHELPER#
11 |
12 | exit 0
13 |
--------------------------------------------------------------------------------
/src/benchmark/handcompile/lwsampler_hurricane.h:
--------------------------------------------------------------------------------
1 | /*
2 | * lwsampler_hurricane.h
3 | *
4 | * Created on: Nov 19, 2013
5 | * Author: leili
6 | */
7 |
8 | #pragma once
9 |
10 | namespace LWSAMPLER {
11 | void run();
12 | }
13 |
--------------------------------------------------------------------------------
/swifty-pf.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | ./swift -e ParticleFilter -i example/$1.blog -o src/$1.cpp
4 |
5 | cd src
6 |
7 | g++ -Ofast -std=c++11 $1.cpp random/*.cpp -o $1 -larmadillo
8 |
9 | echo "Running "$1
10 | ./$1
11 |
12 | cd ..
13 |
--------------------------------------------------------------------------------
/lib/byacc-20130925/test/quote_calc-s.tab.h:
--------------------------------------------------------------------------------
1 | #define OP_ADD 257
2 | #define OP_SUB 259
3 | #define OP_MUL 261
4 | #define OP_DIV 263
5 | #define OP_MOD 265
6 | #define OP_AND 267
7 | #define DIGIT 269
8 | #define LETTER 270
9 | #define UMINUS 271
10 |
--------------------------------------------------------------------------------
/lib/byacc-20130925/test/quote_calc3.tab.h:
--------------------------------------------------------------------------------
1 | #define OP_ADD 257
2 | #define OP_SUB 259
3 | #define OP_MUL 261
4 | #define OP_DIV 263
5 | #define OP_MOD 265
6 | #define OP_AND 267
7 | #define DIGIT 269
8 | #define LETTER 270
9 | #define UMINUS 271
10 |
--------------------------------------------------------------------------------
/lib/byacc-20130925/test/quote_calc4.tab.h:
--------------------------------------------------------------------------------
1 | #define OP_ADD 257
2 | #define OP_SUB 259
3 | #define OP_MUL 261
4 | #define OP_DIV 263
5 | #define OP_MOD 265
6 | #define OP_AND 267
7 | #define DIGIT 269
8 | #define LETTER 270
9 | #define UMINUS 271
10 |
--------------------------------------------------------------------------------
/lib/flex-2.5.37/po/POTFILES.in:
--------------------------------------------------------------------------------
1 | buf.c
2 | ccl.c
3 | dfa.c
4 | ecs.c
5 | gen.c
6 | libmain.c
7 | libyywrap.c
8 | main.c
9 | misc.c
10 | nfa.c
11 | options.c
12 | parse.y
13 | scan.l
14 | scanopt.c
15 | skel.c
16 | sym.c
17 | tblcmp.c
18 | yylex.c
19 |
--------------------------------------------------------------------------------
/lib/byacc-20130925/test/quote_calc2-s.tab.h:
--------------------------------------------------------------------------------
1 | #define OP_ADD 257
2 | #define OP_SUB 259
3 | #define OP_MUL 261
4 | #define OP_DIV 263
5 | #define OP_MOD 265
6 | #define OP_AND 267
7 | #define DIGIT 269
8 | #define LETTER 270
9 | #define UMINUS 271
10 |
--------------------------------------------------------------------------------
/lib/byacc-20130925/test/quote_calc3-s.tab.h:
--------------------------------------------------------------------------------
1 | #define OP_ADD 257
2 | #define OP_SUB 259
3 | #define OP_MUL 261
4 | #define OP_DIV 263
5 | #define OP_MOD 265
6 | #define OP_AND 267
7 | #define DIGIT 269
8 | #define LETTER 270
9 | #define UMINUS 271
10 |
--------------------------------------------------------------------------------
/lib/byacc-20130925/test/quote_calc4-s.tab.h:
--------------------------------------------------------------------------------
1 | #define OP_ADD 257
2 | #define OP_SUB 259
3 | #define OP_MUL 261
4 | #define OP_DIV 263
5 | #define OP_MOD 265
6 | #define OP_AND 267
7 | #define DIGIT 269
8 | #define LETTER 270
9 | #define UMINUS 271
10 |
--------------------------------------------------------------------------------
/lib/flex-2.5.37/po/boldquot.sed:
--------------------------------------------------------------------------------
1 | s/"\([^"]*\)"/“\1”/g
2 | s/`\([^`']*\)'/‘\1’/g
3 | s/ '\([^`']*\)' / ‘\1’ /g
4 | s/ '\([^`']*\)'$/ ‘\1’/g
5 | s/^'\([^`']*\)' /‘\1’ /g
6 | s/“”/""/g
7 | s/“/“[1m/g
8 | s/”/[0m”/g
9 | s/‘/‘[1m/g
10 | s/’/[0m’/g
11 |
--------------------------------------------------------------------------------
/src/benchmark/handcompile/rejsampler_hurricane.h:
--------------------------------------------------------------------------------
1 | /*
2 | * rejsampler_hurricane.h
3 | *
4 | * Created on: Nov 19, 2013
5 | * Author: leili
6 | */
7 |
8 | #pragma once
9 |
10 | namespace REJECTSAMPLER {
11 | void run();
12 | }
13 |
14 |
--------------------------------------------------------------------------------
/src/benchmark/handcompile/rejsampler_urnball.h:
--------------------------------------------------------------------------------
1 | /*
2 | * rejsampler_urnball.h
3 | *
4 | * Created on: Nov 21, 2013
5 | * Author: yiwu
6 | */
7 |
8 | #pragma once
9 |
10 | namespace URNBALL_REJ {
11 | void run(int N);
12 | }
13 |
14 |
15 |
--------------------------------------------------------------------------------
/swifty-mh.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | ./swift -e MHSampler -i example/$1.blog -o src/$1.cpp --model-output out
4 |
5 | cd src
6 |
7 | g++ -Ofast -std=c++11 $1.cpp random/*.cpp -o $1 -larmadillo
8 |
9 | echo "Running "$1
10 | ./$1
11 |
12 | cd ..
13 |
--------------------------------------------------------------------------------
/src/test/semant/Semant_test.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Semant_test.cpp
3 | *
4 | * Created on: Nov 2, 2013
5 | * Author: leili
6 | */
7 |
8 | #include "../../semant/Semant.h"
9 |
10 | namespace swift {
11 |
12 |
13 | } /* namespace swift */
14 |
15 | int main() {
16 |
17 |
18 | }
19 |
--------------------------------------------------------------------------------
/lib/byacc-20130925/AUTHORS:
--------------------------------------------------------------------------------
1 | -- $Id: AUTHORS,v 1.1 2010/06/06 20:31:51 tom Exp $
2 | -- vile:txtmode
3 | -- This file is used by a script that collects contributor information and
4 | -- resolves nicknames vs fullnames.
5 | dickey Thomas Dickey
6 | schmitz Sylvain Schmitz
7 | unknown Robert Corbett
8 |
--------------------------------------------------------------------------------
/lib/flex-2.5.37/lib/lib.c:
--------------------------------------------------------------------------------
1 | /* Since building an empty library could cause problems, we provide a
2 | * function to go into the library. We could make this non-trivial by
3 | * moving something that flex treats as a library function into this
4 | * directory. */
5 |
6 | void do_nothing(){ return;}
7 |
8 |
--------------------------------------------------------------------------------
/src/absyn/Decl.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Decl.cpp
3 | *
4 | * Created on: Oct 30, 2013
5 | * Author: yiwu
6 | */
7 |
8 | #include "Decl.h"
9 |
10 | namespace swift {
11 | namespace absyn {
12 |
13 | Decl::Decl(int l, int c) :
14 | Stmt(l, c) {
15 | }
16 |
17 | Decl::~Decl() {
18 | }
19 |
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/src/absyn/Stmt.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Stmt.cpp
3 | *
4 | * Created on: Oct 31, 2013
5 | * Author: yiwu
6 | */
7 |
8 | #include "Stmt.h"
9 |
10 | namespace swift {
11 | namespace absyn {
12 |
13 | Stmt::Stmt(int l, int c) :
14 | Absyn(l, c) {
15 | }
16 |
17 | Stmt::~Stmt() {
18 | }
19 |
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/src/predecl/PreDecl.cpp:
--------------------------------------------------------------------------------
1 | #include "PreDecl.h"
2 |
3 | namespace swift {
4 | namespace predecl {
5 |
6 | PreDecl::PreDecl(const std::string& name) :
7 | name(name) {
8 | }
9 |
10 | PreDecl::~PreDecl() {
11 | }
12 |
13 | const std::string& PreDecl::getName() const {
14 | return name;
15 | }
16 |
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/lib/byacc-20130925/package/pkgsrc/DESCR:
--------------------------------------------------------------------------------
1 | Berkeley Yacc (byacc) is a LALR(1) parser generator. Berkeley Yacc
2 | has been made as compatible as possible with AT&T Yacc. Berkeley
3 | Yacc can accept any input specification that conforms to the AT&T
4 | Yacc documentation.
5 |
6 | Some programs depend on a byacc (instead of bison).
7 |
--------------------------------------------------------------------------------
/src/code/Stmt.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Stmt.cpp
3 | *
4 | * Created on: Nov 23, 2013
5 | * Author: leili
6 | */
7 |
8 | #include "Stmt.h"
9 |
10 | namespace swift {
11 | namespace code {
12 |
13 | Stmt::Stmt() {
14 | }
15 |
16 | Stmt::~Stmt() {
17 | }
18 |
19 | } /* namespace code */
20 | } /* namespace swift */
21 |
22 |
--------------------------------------------------------------------------------
/compile.bat:
--------------------------------------------------------------------------------
1 | g++ -std=c++11 -Wall src/preprocess/*.cpp src/printer/*.cpp src/absyn/*.cpp src/analyzer/*.cpp src/analyzer/ConjugatePriors/*.cpp src/ir/*.cpp src/fabrica/*.cpp src/msg/*.cpp src/predecl/*.cpp src/code/*.cpp src/codegen/*.cpp src/util/*.cpp src/semant/Semant.cpp src/main.cpp src/parse/parser.cpp src/parse/lexer.cpp -o swift
2 |
--------------------------------------------------------------------------------
/example/test/test-distrib-placement.blog:
--------------------------------------------------------------------------------
1 | type Data;
2 | distinct Data D[10];
3 | random Real X ~ Gaussian(0, 1);
4 | random Boolean A(Data d) ~ BooleanDistrib(0.5);
5 | random Real Y(Data d) ~
6 | if A(d) then Gaussian(toInt(d), 1)
7 | else Gaussian(X + toInt(d), 1);
8 |
9 | obs Y(d) = toInt(d) for Data d;
10 |
11 | query X;
12 |
--------------------------------------------------------------------------------
/example/test/test-obs-forloop-pf.blog:
--------------------------------------------------------------------------------
1 | type Data;
2 | distinct Data D[10];
3 |
4 | fixed RealMatrix A = randn(3, 10);
5 |
6 | random Real mu ~ Gaussian(0, 1);
7 |
8 | random Real B(Data d, Timestep t) ~ Gaussian(mu, 1);
9 |
10 | obs B(d, t) = A[toInt(t)][toInt(d)] for Timestep t, Data d: @0 <= t & t <= @2;
11 |
12 | query mu;
13 |
--------------------------------------------------------------------------------
/lib/flex-2.5.37/examples/manual/reject.lex:
--------------------------------------------------------------------------------
1 | /*
2 | * reject.lex: An example of REJECT and unput()
3 | * misuse.
4 | */
5 |
6 | %%
7 | UNIX {
8 | unput('U'); unput('N'); unput('G'); unput('\0');
9 | REJECT;
10 | }
11 | GNU printf("GNU is Not Unix!\n");
12 | %%
13 |
--------------------------------------------------------------------------------
/src/absyn/Literal.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Literal.cpp
3 | *
4 | * Created on: Oct 29, 2013
5 | * Author: yiwu
6 | */
7 |
8 | #include "Literal.h"
9 |
10 | namespace swift {
11 | namespace absyn {
12 |
13 | Literal::Literal(int l, int c) :
14 | Expr(l, c) {
15 | }
16 |
17 | Literal::~Literal() {
18 | }
19 |
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/src/absyn/SetExpr.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * SetExpr.cpp
3 | *
4 | * Created on: Oct 29, 2013
5 | * Author: yiwu
6 | */
7 |
8 | #include "SetExpr.h"
9 |
10 | namespace swift {
11 | namespace absyn {
12 |
13 | SetExpr::SetExpr(int l, int c) :
14 | Expr(l, c) {
15 | }
16 |
17 | SetExpr::~SetExpr() {
18 | }
19 |
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/src/ir/ListSet.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 | #include "SetExpr.h"
3 |
4 | namespace swift {
5 | namespace ir {
6 |
7 | class ListSet: public swift::ir::SetExpr {
8 | public:
9 | ListSet();
10 | virtual ~ListSet();
11 |
12 | virtual std::string toString();
13 | void print(FILE* file, int indent) const;
14 | };
15 |
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/src/absyn/Stmt.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Stmt.h
3 | *
4 | * Created on: Oct 31, 2013
5 | * Author: yiwu
6 | */
7 |
8 | #pragma once
9 |
10 | #include "Absyn.h"
11 |
12 | namespace swift {
13 | namespace absyn {
14 |
15 | class Stmt: public Absyn {
16 | public:
17 | Stmt(int l, int c);
18 | virtual ~Stmt();
19 | };
20 |
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/example/test/test-obs-forloop.blog:
--------------------------------------------------------------------------------
1 | type Data;
2 | type Step;
3 | distinct Data D[10];
4 | distinct Step S[3];
5 |
6 | fixed RealMatrix A = randn(3, 10);
7 |
8 | random Real mu ~ Gaussian(0, 1);
9 |
10 | random Real B(Data d, Step t) ~ Gaussian(mu, 1);
11 |
12 | obs B(d, t) = A[toInt(t)][toInt(d)] for Step t, Data d;
13 |
14 | query mu;
15 |
--------------------------------------------------------------------------------
/src/test/absyn/Birthday.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 |
3 | #include "../../absyn/BlogProgram.h"
4 |
5 | namespace test_absyn {
6 |
7 | class Birthday {
8 | swift::absyn::BlogProgram* root;
9 | public:
10 | Birthday();
11 | ~Birthday();
12 | void test(FILE *file);
13 | void build();
14 | swift::absyn::BlogProgram* getRoot();
15 | };
16 |
17 | }
18 |
--------------------------------------------------------------------------------
/src/test/absyn/Hurricane.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 |
3 | #include "../../absyn/BlogProgram.h"
4 |
5 | namespace test_absyn {
6 |
7 | class Hurricane {
8 | swift::absyn::BlogProgram* root;
9 | public:
10 | Hurricane();
11 | ~Hurricane();
12 | void test(FILE *file);
13 | void build();
14 | swift::absyn::BlogProgram* getRoot();
15 | };
16 |
17 | }
--------------------------------------------------------------------------------
/example/test/test-diaggaussian.blog:
--------------------------------------------------------------------------------
1 | /**
2 | * Simple test for DiagGaussian model.
3 | */
4 |
5 | fixed RealMatrix mean = [0.0;0.0];
6 | fixed RealMatrix cov = [1.0;1.0];
7 |
8 | Random RealMatrix r ~ DiagGaussian(mean, cov);
9 |
10 | Random Boolean check ~ if r[0] < 0 then true else false;
11 |
12 | obs check = false;
13 | query r[0];
14 | query r;
15 |
--------------------------------------------------------------------------------
/lib/byacc-20130925/package/pkgsrc/distinfo:
--------------------------------------------------------------------------------
1 | $NetBSD: distinfo,v 1.4 2008/07/24 17:13:00 tonnerre Exp $
2 |
3 | SHA1 (byacc-20050813.tgz) = 3258494f3422eb3150944c1823af1c9c2c386062
4 | RMD160 (byacc-20050813.tgz) = 3ee159857a79025a83e2b0807577925fe460f816
5 | Size (byacc-20050813.tgz) = 138684 bytes
6 | SHA1 (patch-aa) = decae78775a5e0f1e1f7aaaa258da53903aa1f7a
7 |
--------------------------------------------------------------------------------
/src/absyn/Literal.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Literal.h
3 | *
4 | * Created on: Oct 29, 2013
5 | * Author: yiwu
6 | */
7 |
8 | #pragma once
9 |
10 | #include "Expr.h"
11 |
12 | namespace swift {
13 | namespace absyn {
14 |
15 | class Literal: public Expr {
16 | public:
17 | Literal(int l, int c);
18 | virtual ~Literal();
19 | };
20 |
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/src/ir/NullSymbol.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 | #include "ConstSymbol.h"
3 |
4 | namespace swift {
5 | namespace ir {
6 |
7 | class NullSymbol: public swift::ir::ConstSymbol {
8 | public:
9 | NullSymbol();
10 | virtual ~NullSymbol();
11 |
12 | virtual std::string toString();
13 | void print(FILE* file, int indent) const;
14 | };
15 |
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/src/test/absyn/MatrixTest.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 |
3 | #include "../../absyn/BlogProgram.h"
4 |
5 | namespace test_absyn {
6 |
7 | class MatrixTest {
8 | swift::absyn::BlogProgram* root;
9 | public:
10 | MatrixTest();
11 | ~MatrixTest();
12 | void test(FILE *file);
13 | void build();
14 | swift::absyn::BlogProgram* getRoot();
15 | };
16 |
17 | }
--------------------------------------------------------------------------------
/src/test/parse/numdec.out:
--------------------------------------------------------------------------------
1 | (BlogProgram:
2 | (args:
3 | (NumStDecl:
4 | :type Blip
5 | (args:
6 | origin# Source var# a )
7 | :expr
8 | (DistrExpr:
9 | :distr Poisson
10 | (args:
11 | (DoubleLiteral: 1.000000 )
12 | )
13 | )
14 | )
15 | )
16 | )
17 |
--------------------------------------------------------------------------------
/example/simple-aircraft.blog:
--------------------------------------------------------------------------------
1 | // Type Declarations
2 | type Aircraft;
3 | type Blip;
4 |
5 | // Origin Declarations
6 | origin Aircraft Source(Blip);
7 |
8 | // Number Declarations
9 | #Aircraft ~ Poisson(5);
10 | #Blip(Source=a) ~ Poisson(4);
11 |
12 | // Evidence
13 | obs size({b for Blip b}) = 3;
14 |
15 | // Query
16 | query size({a for Aircraft a});
17 |
--------------------------------------------------------------------------------
/src/absyn/Decl.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Decl.h
3 | *
4 | * Created on: Oct 30, 2013
5 | * Author: yiwu
6 | */
7 |
8 | #pragma once
9 |
10 | #include "Absyn.h"
11 | #include "Stmt.h"
12 |
13 | namespace swift {
14 | namespace absyn {
15 | class Decl: public Stmt {
16 | public:
17 | Decl(int l, int c);
18 | virtual ~Decl();
19 | };
20 |
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/src/test/absyn/BiasedBall.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 |
3 | #include "../../absyn/BlogProgram.h"
4 |
5 | namespace test_absyn {
6 |
7 | class BiasedBall {
8 | swift::absyn::BlogProgram* root;
9 | public:
10 | BiasedBall();
11 | ~BiasedBall();
12 | void test(FILE *file);
13 | void build();
14 | swift::absyn::BlogProgram* getRoot();
15 | };
16 |
17 | }
18 |
--------------------------------------------------------------------------------
/lib/byacc-20130925/package/debian/postinst:
--------------------------------------------------------------------------------
1 | #! /bin/sh
2 | # postinst script for byacc
3 |
4 | set -e
5 |
6 | if [ $1 != "upgrade" ] ; then
7 | update-alternatives \
8 | --install /usr/bin/yacc yacc /usr/bin/byacc 80 \
9 | --slave /usr/share/man/man1/yacc.1.gz yaccman \
10 | /usr/share/man/man1/byacc.1.gz
11 | fi
12 |
13 | #DEBHELPER#
14 |
15 | exit 0
16 |
--------------------------------------------------------------------------------
/src/test/absyn/PoissonBall.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 |
3 | #include "../../absyn/BlogProgram.h"
4 |
5 | namespace test_absyn {
6 |
7 | class PoissonBall {
8 | swift::absyn::BlogProgram* root;
9 | public:
10 | PoissonBall();
11 | ~PoissonBall();
12 | void test(FILE *file);
13 | void build();
14 | swift::absyn::BlogProgram* getRoot();
15 | };
16 |
17 | }
18 |
--------------------------------------------------------------------------------
/lib/byacc-20130925/test/quote_calc.tab.h:
--------------------------------------------------------------------------------
1 | #define OP_ADD 257
2 | #define ADD 258
3 | #define OP_SUB 259
4 | #define SUB 260
5 | #define OP_MUL 261
6 | #define MUL 262
7 | #define OP_DIV 263
8 | #define DIV 264
9 | #define OP_MOD 265
10 | #define MOD 266
11 | #define OP_AND 267
12 | #define AND 268
13 | #define DIGIT 269
14 | #define LETTER 270
15 | #define UMINUS 271
16 |
--------------------------------------------------------------------------------
/lib/byacc-20130925/test/quote_calc2.tab.h:
--------------------------------------------------------------------------------
1 | #define OP_ADD 257
2 | #define ADD 258
3 | #define OP_SUB 259
4 | #define SUB 260
5 | #define OP_MUL 261
6 | #define MUL 262
7 | #define OP_DIV 263
8 | #define DIV 264
9 | #define OP_MOD 265
10 | #define MOD 266
11 | #define OP_AND 267
12 | #define AND 268
13 | #define DIGIT 269
14 | #define LETTER 270
15 | #define UMINUS 271
16 |
--------------------------------------------------------------------------------
/src/absyn/Absyn.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Absyn.cpp
3 | *
4 | * Created on: Oct 28, 2013
5 | * Author: leili
6 | */
7 |
8 | #include "Absyn.h"
9 |
10 | namespace swift {
11 | namespace absyn {
12 |
13 | Absyn::Absyn(int l, int c) :
14 | line(l), col(c) {
15 | }
16 |
17 | Absyn::~Absyn() {
18 | // TODO Auto-generated destructor stub
19 | }
20 |
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/src/test/absyn/AircraftSimple.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 |
3 | #include "../../absyn/BlogProgram.h"
4 |
5 | namespace test_absyn {
6 |
7 | class AircraftSimple {
8 | swift::absyn::BlogProgram* root;
9 | public:
10 | AircraftSimple();
11 | ~AircraftSimple();
12 | void test(FILE *file);
13 | void build();
14 | swift::absyn::BlogProgram* getRoot();
15 | };
16 |
17 | }
18 |
--------------------------------------------------------------------------------
/src/absyn/SetExpr.h:
--------------------------------------------------------------------------------
1 | /*
2 | * SetExpr.h
3 | *
4 | * Created on: Oct 29, 2013
5 | * Author: yiwu
6 | */
7 |
8 | #pragma once
9 |
10 | #include "Expr.h"
11 | #include "Symbol.h"
12 |
13 | namespace swift {
14 | namespace absyn {
15 |
16 | class SetExpr: public Expr {
17 | public:
18 | SetExpr(int l, int c);
19 | virtual ~SetExpr();
20 | };
21 |
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/src/test/absyn/HMM.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 | // Test Class for Particle Filtering Algorithm
3 | #include "../../absyn/BlogProgram.h"
4 |
5 | namespace test_absyn {
6 |
7 | class HMM {
8 | swift::absyn::BlogProgram* root;
9 | public:
10 | HMM();
11 | ~HMM();
12 | void test(FILE *file);
13 | void build();
14 | swift::absyn::BlogProgram* getRoot();
15 | };
16 |
17 | }
18 |
--------------------------------------------------------------------------------
/src/ir/ArrayExpr.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 | #include "Expr.h"
3 | #include "IRForwardDecl.h"
4 |
5 | namespace swift {
6 | namespace ir {
7 | class ArrayExpr: public swift::ir::Expr {
8 | public:
9 | ArrayExpr();
10 | virtual ~ArrayExpr();
11 | virtual std::string toString();
12 | // For Debugging Use
13 | void print(FILE* file, int indent) const;
14 | };
15 |
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/lib/flex-2.5.37/examples/fastwc/wc1.l:
--------------------------------------------------------------------------------
1 | /* First cut at a flex-based "wc" tool. */
2 |
3 | ws [ \t]
4 | nonws [^ \t\n]
5 |
6 | %option main noyywrap
7 | %%
8 | int cc = 0, wc = 0, lc = 0;
9 |
10 | {nonws}+ cc += yyleng; ++wc;
11 |
12 | {ws}+ cc += yyleng;
13 |
14 | \n ++lc; ++cc;
15 |
16 | <> {
17 | printf( "%8d %8d %8d\n", lc, wc, cc );
18 | yyterminate();
19 | }
20 |
--------------------------------------------------------------------------------
/src/test/absyn/DirichletSimpleTest.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 |
3 | #include "../../absyn/BlogProgram.h"
4 |
5 | namespace test_absyn {
6 |
7 | class DirichletSimpleTest {
8 | swift::absyn::BlogProgram* root;
9 | public:
10 | DirichletSimpleTest();
11 | ~DirichletSimpleTest();
12 | void test(FILE *file);
13 | void build();
14 | swift::absyn::BlogProgram* getRoot();
15 | };
16 |
17 | }
--------------------------------------------------------------------------------
/src/test/absyn/MultiCaseSimpleTest.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 |
3 | #include "../../absyn/BlogProgram.h"
4 |
5 | namespace test_absyn {
6 |
7 | class MultiCaseSimpleTest {
8 | swift::absyn::BlogProgram* root;
9 | public:
10 | MultiCaseSimpleTest();
11 | ~MultiCaseSimpleTest();
12 | void test(FILE *file);
13 | void build();
14 | swift::absyn::BlogProgram* getRoot();
15 | };
16 |
17 | }
--------------------------------------------------------------------------------
/example/birthday.blog:
--------------------------------------------------------------------------------
1 | type Date;
2 | distinct Date Day[365];
3 |
4 | type Person;
5 |
6 | random Date Birthday(Person p) ~
7 | UniformChoice({d for Date d});
8 |
9 | #Person ~ Poisson(13);
10 |
11 | // comment the following to try full open world model
12 | obs size({p for Person p}) = 23;
13 | query exists Person x exists Person y
14 | ((x != y) & (Birthday(x) == Birthday(y)));
15 |
--------------------------------------------------------------------------------
/lib/flex-2.5.37/examples/manual/myname.lex:
--------------------------------------------------------------------------------
1 | /*
2 | *
3 | * myname.lex : A sample Flex program
4 | * that does token replacement.
5 | */
6 |
7 | %%
8 |
9 | %NAME { printf("%s",getenv("LOGNAME")); }
10 | %HOST { printf("%s",getenv("HOST")); }
11 | %HOSTTYPE { printf("%s",getenv("HOSTTYPE"));}
12 | %HOME { printf("%s",getenv("HOME")); }
13 |
14 | %%
15 |
16 |
--------------------------------------------------------------------------------
/src/test/absyn/DirichletSimpleTest2.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 |
3 | #include "../../absyn/BlogProgram.h"
4 |
5 | namespace test_absyn {
6 |
7 | class DirichletSimpleTest2 {
8 | swift::absyn::BlogProgram* root;
9 | public:
10 | DirichletSimpleTest2();
11 | ~DirichletSimpleTest2();
12 | void test(FILE *file);
13 | void build();
14 | swift::absyn::BlogProgram* getRoot();
15 | };
16 |
17 | }
--------------------------------------------------------------------------------
/src/test/absyn/MultinomialSimpleTest.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 |
3 | #include "../../absyn/BlogProgram.h"
4 |
5 | namespace test_absyn {
6 |
7 | class MultinomialSimpleTest {
8 | swift::absyn::BlogProgram* root;
9 | public:
10 | MultinomialSimpleTest();
11 | ~MultinomialSimpleTest();
12 | void test(FILE *file);
13 | void build();
14 | swift::absyn::BlogProgram* getRoot();
15 | };
16 |
17 | }
--------------------------------------------------------------------------------
/src/ir/SetTy.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 | #include "Ty.h"
3 | #include "IRForwardDecl.h"
4 |
5 | namespace swift {
6 | namespace ir {
7 |
8 | class SetTy: public swift::ir::Ty {
9 | public:
10 | SetTy(const Ty* refer);
11 | virtual ~SetTy();
12 |
13 | const Ty* getRefer() const;
14 |
15 | virtual std::string toString() const;
16 |
17 | private:
18 | const Ty* refer;
19 | };
20 |
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/src/absyn/Symbol.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Symbol.cpp
3 | *
4 | * Created on: Oct 29, 2013
5 | * Author: yiwu
6 | */
7 |
8 | #include "Symbol.h"
9 |
10 | namespace swift {
11 | namespace absyn {
12 |
13 | Symbol::Symbol(std::string v) :
14 | value(v) {
15 | }
16 |
17 | Symbol::~Symbol() {
18 | }
19 |
20 | const std::string& Symbol::getValue() const {
21 | return value;
22 | }
23 |
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/src/absyn/Symbol.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Symbol.h
3 | *
4 | * Created on: Oct 29, 2013
5 | * Author: yiwu
6 | */
7 |
8 | #pragma once
9 |
10 | #include
11 |
12 | namespace swift {
13 | namespace absyn {
14 |
15 | class Symbol {
16 | std::string value;
17 | public:
18 | Symbol(std::string v = "");
19 | ~Symbol();
20 |
21 | const std::string& getValue() const;
22 | };
23 |
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/src/code/Decl.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Decl.cpp
3 | *
4 | * Created on: Nov 23, 2013
5 | * Author: leili
6 | */
7 |
8 | #include "Decl.h"
9 |
10 | namespace swift {
11 | namespace code {
12 |
13 | Decl::Decl() {
14 | // TODO Auto-generated constructor stub
15 |
16 | }
17 |
18 | Decl::~Decl() {
19 | // TODO Auto-generated destructor stub
20 | }
21 |
22 | } /* namespace code */
23 | } /* namespace swift */
24 |
--------------------------------------------------------------------------------
/example/exponential.blog:
--------------------------------------------------------------------------------
1 |
2 | /**
3 | * Simple model to test if exponential distribution is working.
4 | *
5 | * Query will check if BLOG can correctly compute the likelihood of the exponential.
6 | */
7 |
8 |
9 | random Real wait ~ Exponential(4);
10 |
11 | random Boolean check ~
12 | if wait < 0.5 then BooleanDistrib(1.0)
13 | else BooleanDistrib(0.0);
14 |
15 |
16 | obs check = false;
17 |
18 | query wait;
19 |
--------------------------------------------------------------------------------
/lib/byacc-20130925/test/error.output:
--------------------------------------------------------------------------------
1 | 0 $accept : S $end
2 |
3 | 1 S : error
4 |
5 | state 0
6 | $accept : . S $end (0)
7 |
8 | error shift 1
9 | . error
10 |
11 | S goto 2
12 |
13 |
14 | state 1
15 | S : error . (1)
16 |
17 | . reduce 1
18 |
19 |
20 | state 2
21 | $accept : S . $end (0)
22 |
23 | $end accept
24 |
25 |
26 | 2 terminals, 2 nonterminals
27 | 2 grammar rules, 3 states
28 |
--------------------------------------------------------------------------------
/src/predecl/PrevFuncDecl.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 | #include "PreDecl.h"
3 |
4 | namespace swift {
5 | namespace predecl {
6 |
7 | class PrevFuncDecl: public swift::predecl::PreDecl {
8 | public:
9 | PrevFuncDecl();
10 | virtual ~PrevFuncDecl();
11 |
12 | virtual std::shared_ptr
13 | getNew(std::vector>& args,
14 | fabrica::TypeFactory* fact) const;
15 | };
16 |
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/lib/byacc-20130925/test/code_error.output:
--------------------------------------------------------------------------------
1 | 0 $accept : S $end
2 |
3 | 1 S : error
4 |
5 | state 0
6 | $accept : . S $end (0)
7 |
8 | error shift 1
9 | . error
10 |
11 | S goto 2
12 |
13 |
14 | state 1
15 | S : error . (1)
16 |
17 | . reduce 1
18 |
19 |
20 | state 2
21 | $accept : S . $end (0)
22 |
23 | $end accept
24 |
25 |
26 | 2 terminals, 2 nonterminals
27 | 2 grammar rules, 3 states
28 |
--------------------------------------------------------------------------------
/lib/byacc-20130925/test/error.y:
--------------------------------------------------------------------------------
1 | %{
2 | int yylex(void);
3 | static void yyerror(const char *);
4 | %}
5 | %%
6 | S: error
7 | %%
8 |
9 | #include
10 |
11 | int
12 | main(void)
13 | {
14 | printf("yyparse() = %d\n", yyparse());
15 | return 0;
16 | }
17 |
18 | int
19 | yylex(void)
20 | {
21 | return -1;
22 | }
23 |
24 | static void
25 | yyerror(const char* s)
26 | {
27 | printf("%s\n", s);
28 | }
29 |
--------------------------------------------------------------------------------
/lib/byacc-20130925/test/pure_error.output:
--------------------------------------------------------------------------------
1 | 0 $accept : S $end
2 |
3 | 1 S : error
4 |
5 | state 0
6 | $accept : . S $end (0)
7 |
8 | error shift 1
9 | . error
10 |
11 | S goto 2
12 |
13 |
14 | state 1
15 | S : error . (1)
16 |
17 | . reduce 1
18 |
19 |
20 | state 2
21 | $accept : S . $end (0)
22 |
23 | $end accept
24 |
25 |
26 | 2 terminals, 2 nonterminals
27 | 2 grammar rules, 3 states
28 |
--------------------------------------------------------------------------------
/lib/flex-2.5.37/tests/test-lineno-nr/test.input:
--------------------------------------------------------------------------------
1 | These words
2 | are separated
3 | by newlines
4 | and sometimes
5 | spaces
6 | too.
7 | The next three lines are numbers with only intervening newlines
8 | 01123
9 | 581321
10 | 34
11 | And now for some blank lines....
12 |
13 |
14 | Finally, we directly modify yylineno, but then change it back afterwards
15 | (see scanner.l):
16 |
17 | yylineno++
18 |
19 | yylineno--
20 |
--------------------------------------------------------------------------------
/lib/flex-2.5.37/tests/test-lineno-r/test.input:
--------------------------------------------------------------------------------
1 | These words
2 | are separated
3 | by newlines
4 | and sometimes
5 | spaces
6 | too.
7 | The next three lines are numbers with only intervening newlines
8 | 01123
9 | 581321
10 | 34
11 | And now for some blank lines....
12 |
13 |
14 | Finally, we directly modify yylineno, but then change it back afterwards
15 | (see scanner.l):
16 |
17 | yylineno++
18 |
19 | yylineno--
20 |
--------------------------------------------------------------------------------
/src/predecl/BetaDistrDecl.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 | #include "PreDecl.h"
3 |
4 | namespace swift {
5 | namespace predecl {
6 |
7 | class BetaDistrDecl: public swift::predecl::PreDecl {
8 | public:
9 | BetaDistrDecl();
10 | virtual ~BetaDistrDecl();
11 |
12 | virtual std::shared_ptr
13 | getNew(std::vector>& args,
14 | fabrica::TypeFactory* fact) const;
15 | };
16 |
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/src/predecl/ToIntFuncDecl.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 | #include "PreDecl.h"
3 |
4 | namespace swift {
5 | namespace predecl {
6 |
7 | class ToIntFuncDecl: public swift::predecl::PreDecl {
8 | public:
9 | ToIntFuncDecl();
10 | virtual ~ToIntFuncDecl();
11 |
12 | virtual std::shared_ptr
13 | getNew(std::vector>& args,
14 | fabrica::TypeFactory* fact) const;
15 | };
16 |
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/example/test/test-query-forloop.blog:
--------------------------------------------------------------------------------
1 | type Data;
2 | type Step;
3 | distinct Data D[10];
4 | distinct Step S[3];
5 |
6 | fixed RealMatrix A = randn(3, 10);
7 |
8 | random Real mu ~ Gaussian(0, 1);
9 |
10 | random Real B(Data d, Step t) ~ Gaussian(mu, 1);
11 |
12 | random Real C(Data d, Step t) ~ Gaussian(B(d, t), 1);
13 |
14 | obs C(d, t) = A[toInt(t)][toInt(d)] for Step t, Data d;
15 |
16 | query B(d, t) for Step t, Data d;
17 |
--------------------------------------------------------------------------------
/lib/flex-2.5.37/examples/manual/README:
--------------------------------------------------------------------------------
1 | This directory contains the example programs from the manual, and a
2 | few other things as well. To make all the programs, simply type "make
3 | -f Makefile.examples", and assuming you have flex and gcc, all will be
4 | well.
5 |
6 | To build the programs individually, type
7 |
8 | make -f Makefile.examples program_name
9 |
10 | For example:
11 |
12 | make -f Makefile.examples expr
13 |
--------------------------------------------------------------------------------
/src/ir/IntLiteral.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 |
3 | #include "ConstSymbol.h"
4 |
5 | namespace swift {
6 | namespace ir {
7 |
8 | class IntLiteral: public swift::ir::ConstSymbol {
9 | public:
10 | IntLiteral(int v = 0);
11 | virtual ~IntLiteral();
12 |
13 | int getValue() const;
14 |
15 | virtual std::string toString();
16 | void print(FILE* file, int indent) const;
17 | private:
18 | int value;
19 | };
20 |
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/src/predecl/GammaDistrDecl.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 | #include "PreDecl.h"
3 |
4 | namespace swift {
5 | namespace predecl {
6 |
7 | class GammaDistrDecl: public swift::predecl::PreDecl {
8 | public:
9 | GammaDistrDecl();
10 | virtual ~GammaDistrDecl();
11 |
12 | virtual std::shared_ptr
13 | getNew(std::vector>& args,
14 | fabrica::TypeFactory* fact) const;
15 | };
16 |
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/src/predecl/ToRealFuncDecl.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 | #include "PreDecl.h"
3 |
4 | namespace swift {
5 | namespace predecl {
6 |
7 | class ToRealFuncDecl: public swift::predecl::PreDecl {
8 | public:
9 | ToRealFuncDecl();
10 | virtual ~ToRealFuncDecl();
11 |
12 | virtual std::shared_ptr
13 | getNew(std::vector>& args,
14 | fabrica::TypeFactory* fact) const;
15 | };
16 |
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/src/code/BreakStmt.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * BreakStmt.cpp
3 | *
4 | * Created on: Nov 24, 2013
5 | * Author: leili
6 | */
7 |
8 | #include "BreakStmt.h"
9 |
10 | namespace swift {
11 | namespace code {
12 |
13 | BreakStmt::BreakStmt() {
14 | }
15 |
16 | BreakStmt::~BreakStmt() {
17 | }
18 |
19 | void BreakStmt::print(printer::Printer* prt) {
20 | prt->print(this);
21 | }
22 | } /* namespace code */
23 | } /* namespace swift */
24 |
--------------------------------------------------------------------------------
/src/codegen/LWTranslator.h:
--------------------------------------------------------------------------------
1 | /*
2 | * LWTranslator.h
3 | *
4 | * Created on: Mar 4, 2014
5 | * Author: leili
6 | */
7 |
8 | #pragma once
9 |
10 | #include "Translator.h"
11 |
12 | namespace swift {
13 | namespace codegen {
14 |
15 | class LWTranslator: public swift::codegen::Translator {
16 | public:
17 | LWTranslator();
18 | ~LWTranslator();
19 | };
20 |
21 | } /* namespace codegen */
22 | } /* namespace swift */
23 |
--------------------------------------------------------------------------------
/src/ir/SetExpr.cpp:
--------------------------------------------------------------------------------
1 | #include "SetExpr.h"
2 |
3 | namespace swift {
4 | namespace ir {
5 |
6 | SetExpr::SetExpr(IRConstant kind) :
7 | kind(kind) {
8 | }
9 |
10 | SetExpr::~SetExpr() {
11 | }
12 |
13 | IRConstant SetExpr::getKind() const {
14 | return kind;
15 | }
16 |
17 | void SetExpr::print(FILE* file, int indent) const {
18 |
19 | }
20 |
21 | std::string SetExpr::toString() {
22 | return "";
23 | }
24 |
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/src/ir/SetExpr.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 | #include "Expr.h"
3 | #include "IRConst.h"
4 |
5 | namespace swift {
6 | namespace ir {
7 |
8 | class SetExpr: public swift::ir::Expr {
9 | public:
10 | SetExpr(IRConstant kind);
11 | virtual ~SetExpr();
12 |
13 | IRConstant getKind() const;
14 | virtual void print(FILE* file, int indent) const;
15 | std::string toString();
16 | private:
17 | IRConstant kind;
18 | };
19 |
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/lib/flex-2.5.37/lib/malloc.c:
--------------------------------------------------------------------------------
1 | #include
2 | #undef malloc
3 |
4 | #include
5 |
6 | void *malloc ();
7 |
8 | /* Allocate an N-byte block of memory from the heap.
9 | If N is zero, allocate a 1-byte block. */
10 |
11 | void *
12 | rpl_malloc (size_t n)
13 | {
14 | if (n == 0)
15 | n = 1;
16 | return malloc (n);
17 | }
18 |
--------------------------------------------------------------------------------
/src/code/Stmt.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Stmt.h
3 | *
4 | * Created on: Nov 23, 2013
5 | * Author: leili
6 | */
7 |
8 | #pragma once
9 |
10 | #include "../printer/Printer.h"
11 |
12 | namespace swift {
13 | namespace code {
14 |
15 | class Stmt {
16 | public:
17 | Stmt();
18 | virtual ~Stmt();
19 | // For Printer
20 | virtual void print(printer::Printer* prt) = 0;
21 | };
22 |
23 | } /* namespace code */
24 | } /* namespace swift */
25 |
--------------------------------------------------------------------------------
/src/ir/BoolLiteral.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 | #include "ConstSymbol.h"
3 |
4 | namespace swift {
5 | namespace ir {
6 |
7 | class BoolLiteral: public swift::ir::ConstSymbol {
8 | public:
9 | BoolLiteral(bool v = false);
10 | virtual ~BoolLiteral();
11 |
12 | bool getValue() const;
13 |
14 | virtual std::string toString();
15 | void print(FILE* file, int indent) const;
16 |
17 | private:
18 | bool value;
19 | };
20 |
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/src/predecl/BinomialDistrDecl.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 | #include "PreDecl.h"
3 |
4 | namespace swift {
5 | namespace predecl {
6 |
7 | class BinomialDistrDecl: public swift::predecl::PreDecl {
8 | public:
9 | BinomialDistrDecl();
10 | virtual ~BinomialDistrDecl();
11 |
12 | virtual std::shared_ptr
13 | getNew(std::vector>& args,
14 | fabrica::TypeFactory* fact) const;
15 | };
16 |
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/src/predecl/BooleanDistrDecl.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 | #include "PreDecl.h"
3 |
4 | namespace swift {
5 | namespace predecl {
6 |
7 | class BooleanDistrDecl: public swift::predecl::PreDecl {
8 | public:
9 | BooleanDistrDecl();
10 | virtual ~BooleanDistrDecl();
11 |
12 | virtual std::shared_ptr
13 | getNew(std::vector>& args,
14 | fabrica::TypeFactory* fact) const;
15 | };
16 |
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/src/predecl/DiscreteDistrDecl.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 | #include "PreDecl.h"
3 |
4 | namespace swift {
5 | namespace predecl {
6 |
7 | class DiscreteDistrDecl: public swift::predecl::PreDecl {
8 | public:
9 | DiscreteDistrDecl();
10 | virtual ~DiscreteDistrDecl();
11 |
12 | virtual std::shared_ptr
13 | getNew(std::vector>& args,
14 | fabrica::TypeFactory* fact) const;
15 | };
16 |
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/src/predecl/GaussianDistrDecl.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 | #include "PreDecl.h"
3 |
4 | namespace swift {
5 | namespace predecl {
6 |
7 | class GaussianDistrDecl: public swift::predecl::PreDecl {
8 | public:
9 | GaussianDistrDecl();
10 | virtual ~GaussianDistrDecl();
11 |
12 | virtual std::shared_ptr
13 | getNew(std::vector>& args,
14 | fabrica::TypeFactory* fact) const;
15 | };
16 |
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/src/predecl/InvGammaDistrDecl.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 | #include "PreDecl.h"
3 |
4 | namespace swift {
5 | namespace predecl {
6 |
7 | class InvGammaDistrDecl: public swift::predecl::PreDecl {
8 | public:
9 | InvGammaDistrDecl();
10 | virtual ~InvGammaDistrDecl();
11 |
12 | virtual std::shared_ptr
13 | getNew(std::vector>& args,
14 | fabrica::TypeFactory* fact) const;
15 | };
16 |
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/src/predecl/LaplaceDistrDecl.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 | #include "PreDecl.h"
3 |
4 | namespace swift {
5 | namespace predecl {
6 |
7 | class LaplaceDistrDecl: public swift::predecl::PreDecl {
8 | public:
9 | LaplaceDistrDecl();
10 | virtual ~LaplaceDistrDecl();
11 |
12 | virtual std::shared_ptr
13 | getNew(std::vector>& args,
14 | fabrica::TypeFactory* fact) const;
15 | };
16 |
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/src/predecl/PoissonDistrDecl.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 | #include "PreDecl.h"
3 |
4 | namespace swift {
5 | namespace predecl {
6 |
7 | class PoissonDistrDecl: public swift::predecl::PreDecl {
8 | public:
9 | PoissonDistrDecl();
10 | virtual ~PoissonDistrDecl();
11 |
12 | virtual std::shared_ptr
13 | getNew(std::vector>& args,
14 | fabrica::TypeFactory* fact) const;
15 | };
16 |
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/src/predecl/ToMatrixFuncDecl.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 | #include "PreDecl.h"
3 |
4 | namespace swift {
5 | namespace predecl {
6 |
7 | class ToMatrixFuncDecl: public swift::predecl::PreDecl {
8 | public:
9 | ToMatrixFuncDecl();
10 | virtual ~ToMatrixFuncDecl();
11 |
12 | virtual std::shared_ptr
13 | getNew(std::vector>& args,
14 | fabrica::TypeFactory* fact) const;
15 | };
16 |
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/src/predecl/ToStringFuncDecl.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 | #include "PreDecl.h"
3 |
4 | namespace swift {
5 | namespace predecl {
6 |
7 | class ToStringFuncDecl: public swift::predecl::PreDecl {
8 | public:
9 | ToStringFuncDecl();
10 | virtual ~ToStringFuncDecl();
11 |
12 | virtual std::shared_ptr
13 | getNew(std::vector>& args,
14 | fabrica::TypeFactory* fact) const;
15 | };
16 |
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/src/predecl/BernoulliDistrDecl.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 | #include "PreDecl.h"
3 |
4 | namespace swift {
5 | namespace predecl {
6 |
7 | class BernoulliDistrDecl: public swift::predecl::PreDecl {
8 | public:
9 | BernoulliDistrDecl();
10 | virtual ~BernoulliDistrDecl();
11 |
12 | virtual std::shared_ptr
13 | getNew(std::vector>& args,
14 | fabrica::TypeFactory* fact) const;
15 | };
16 |
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/src/predecl/DirichletDistrDecl.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 | #include "PreDecl.h"
3 |
4 | namespace swift {
5 | namespace predecl {
6 |
7 | class DirichletDistrDecl: public swift::predecl::PreDecl {
8 | public:
9 | DirichletDistrDecl();
10 | virtual ~DirichletDistrDecl();
11 |
12 | virtual std::shared_ptr
13 | getNew(std::vector>& args,
14 | fabrica::TypeFactory* fact) const;
15 | };
16 |
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/src/predecl/GeometricDistrDecl.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 | #include "PreDecl.h"
3 |
4 | namespace swift {
5 | namespace predecl {
6 |
7 | class GeometricDistrDecl: public swift::predecl::PreDecl {
8 | public:
9 | GeometricDistrDecl();
10 | virtual ~GeometricDistrDecl();
11 |
12 | virtual std::shared_ptr
13 | getNew(std::vector>& args,
14 | fabrica::TypeFactory* fact) const;
15 | };
16 |
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/lib/byacc-20130925/test/calc1.tab.h:
--------------------------------------------------------------------------------
1 | #define DREG 257
2 | #define VREG 258
3 | #define CONST 259
4 | #define UMINUS 260
5 | #ifdef YYSTYPE
6 | #undef YYSTYPE_IS_DECLARED
7 | #define YYSTYPE_IS_DECLARED 1
8 | #endif
9 | #ifndef YYSTYPE_IS_DECLARED
10 | #define YYSTYPE_IS_DECLARED 1
11 | typedef union
12 | {
13 | int ival;
14 | double dval;
15 | INTERVAL vval;
16 | } YYSTYPE;
17 | #endif /* !YYSTYPE_IS_DECLARED */
18 | extern YYSTYPE calc1_lval;
19 |
--------------------------------------------------------------------------------
/lib/flex-2.5.37/doc/Makefile.am:
--------------------------------------------------------------------------------
1 | help2man = @HELP2MAN@
2 |
3 | info_TEXINFOS = flex.texi
4 | dist_man_MANS = flex.1
5 | dist_doc_DATA= flex.pdf
6 |
7 | CLEANFILES = \
8 | flex.hks \
9 | flex.ops
10 |
11 | $(dist_man_MANS): $(top_srcdir)/main.c
12 | for i in $(dist_man_MANS) ; do \
13 | $(help2man) --name='$(PACKAGE_NAME)' \
14 | --section=`echo $$i | sed -e 's/.*\.\([^.]*\)$$/\1/'` \
15 | ../flex$(EXEEXT) > $$i || rm -f $$i ; \
16 | done
17 |
--------------------------------------------------------------------------------
/src/code/Decl.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Decl.h
3 | *
4 | * Created on: Nov 23, 2013
5 | * Author: leili
6 | */
7 |
8 | #pragma once
9 |
10 | #include "../printer/Printer.h"
11 |
12 | namespace swift {
13 | namespace code {
14 |
15 | class Decl {
16 | public:
17 | Decl();
18 | virtual ~Decl();
19 |
20 | // For Printer
21 | virtual void print(printer::Printer* prt) = 0;
22 | };
23 |
24 | } /* namespace code */
25 | } /* namespace swift */
26 |
--------------------------------------------------------------------------------
/src/fabrica/PreDeclFactory.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 |
3 | #include
4 | #include