├── .github └── workflows │ └── testing.yml ├── .gitignore ├── CMakeLists.txt ├── LICENSE ├── README.md ├── benchmark ├── benchmark.sh ├── grammars │ ├── calc.peg │ ├── json.peg │ └── kotlin.peg └── inputs │ ├── calc.txt │ ├── json.json │ └── kotlin.kt ├── examples ├── README.md ├── ast-calc.peg ├── ast-calc.v3.peg ├── ast-tinyc │ ├── .gitignore │ ├── CMakeLists.txt │ ├── README.md │ ├── inputs │ │ ├── erroneous1.c │ │ ├── example1.c │ │ ├── example2.c │ │ ├── example3.c │ │ ├── example4.c │ │ └── example5.c │ ├── main.c │ ├── parser.peg │ ├── system.c │ ├── system.h │ ├── utility.c │ └── utility.h └── calc.peg ├── import ├── README.md ├── char │ ├── README.md │ ├── ascii_character_group.peg │ ├── unicode_derived_core.peg │ └── unicode_general_category.peg └── code │ ├── README.md │ ├── pcc_ast.md │ ├── pcc_ast.peg │ ├── pcc_ast.v3.md │ └── pcc_ast.v3.peg ├── misc ├── README.md ├── unicode_derived_core.py └── unicode_general_category.py ├── src └── packcc.c └── tests ├── .gitignore ├── README.md ├── ascii.d ├── ascii.bats ├── expected.txt ├── input.peg └── input.txt ├── ast-calc.d ├── ast-calc.bats ├── expected.txt └── input.txt ├── ast-calc.v3.d ├── ast-calc.bats ├── expected.txt └── input.txt ├── basic.d ├── expected.txt ├── input.peg └── input.txt ├── blank_lines.d ├── input.peg └── lines.bats ├── calc.d ├── calc.bats ├── expected.txt └── input.txt ├── captures.d ├── expected.txt ├── input.peg └── input.txt ├── character_classes_0.d ├── expected.txt ├── input.peg └── input.txt ├── character_classes_1.d ├── expected-utf8.txt ├── expected.txt ├── input-utf8.txt ├── input.peg └── input.txt ├── character_classes_2.d ├── expected.txt ├── input.peg └── input.txt ├── code_generation.d ├── generation.bats ├── input.peg └── main.c ├── code_indentation.d ├── code.bats ├── expected.c.txt └── input.peg ├── code_line_continuation.d ├── dump.bats ├── expected.txt └── input.peg ├── debug_macro.d ├── expected.txt ├── input.peg └── input.txt ├── dump.d ├── dump.bats └── expected.txt ├── error_action.d ├── expected.txt ├── input.peg └── input.txt ├── escape_sequences.d ├── expected-hex-0.txt ├── expected-unicode-0.txt ├── expected-unicode-1.txt ├── input-hex-0.txt ├── input-unicode-0.txt ├── input-unicode-1.txt └── input.peg ├── import.d ├── .gitignore ├── check_line_number.py ├── import.bats ├── make_input.py ├── reference.peg └── template.peg ├── import_char.d ├── import_char.bats └── input.peg ├── invalid_identifier_mvar.d ├── input.peg └── mvar.bats ├── invalid_identifier_rvar.d ├── input.peg └── rvar.bats ├── issue_28.d ├── expected.txt ├── input.peg └── input.txt ├── issue_78.d ├── input.peg └── issue_78.bats ├── issue_96.d ├── expected.txt ├── input.peg └── input.txt ├── lines.d ├── input.peg └── lines.bats ├── main.c ├── negative_predicate.d ├── expected.txt ├── input.peg └── input.txt ├── null.d ├── .gitignore ├── expected.txt ├── input.peg ├── input.txt └── null.bats ├── position.d ├── expected.txt ├── input.peg └── input.txt ├── positive_predicate.d ├── expected.txt ├── input.peg └── input.txt ├── programmable_predicate.d ├── expected.txt ├── input.peg └── input.txt ├── quantifiers.d ├── expected-optional-repeatable.txt ├── expected-optional.txt ├── expected-repeatable.txt ├── input-optional-repeatable.txt ├── input-optional.txt ├── input-repeatable.txt └── input.peg ├── strings.d ├── expected-escapes.txt ├── expected-utf8.txt ├── expected.txt ├── input-escapes.txt ├── input-utf8.txt ├── input.peg └── input.txt ├── style.d └── style.bats ├── substitution.d ├── expected.c.txt ├── expected.h.txt ├── input.peg └── subst.bats ├── test.sh ├── uncrustify.cfg ├── unused_functions.d ├── check.bats ├── test0.peg ├── test1.peg └── test2.peg ├── unused_rule_elimination.d ├── dump.bats ├── expected.txt └── input.peg └── utils.sh /.github/workflows/testing.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/.github/workflows/testing.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/.gitignore -------------------------------------------------------------------------------- /CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/CMakeLists.txt -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/README.md -------------------------------------------------------------------------------- /benchmark/benchmark.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/benchmark/benchmark.sh -------------------------------------------------------------------------------- /benchmark/grammars/calc.peg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/benchmark/grammars/calc.peg -------------------------------------------------------------------------------- /benchmark/grammars/json.peg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/benchmark/grammars/json.peg -------------------------------------------------------------------------------- /benchmark/grammars/kotlin.peg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/benchmark/grammars/kotlin.peg -------------------------------------------------------------------------------- /benchmark/inputs/calc.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/benchmark/inputs/calc.txt -------------------------------------------------------------------------------- /benchmark/inputs/json.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/benchmark/inputs/json.json -------------------------------------------------------------------------------- /benchmark/inputs/kotlin.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/benchmark/inputs/kotlin.kt -------------------------------------------------------------------------------- /examples/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/examples/README.md -------------------------------------------------------------------------------- /examples/ast-calc.peg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/examples/ast-calc.peg -------------------------------------------------------------------------------- /examples/ast-calc.v3.peg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/examples/ast-calc.v3.peg -------------------------------------------------------------------------------- /examples/ast-tinyc/.gitignore: -------------------------------------------------------------------------------- 1 | /build/ 2 | -------------------------------------------------------------------------------- /examples/ast-tinyc/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/examples/ast-tinyc/CMakeLists.txt -------------------------------------------------------------------------------- /examples/ast-tinyc/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/examples/ast-tinyc/README.md -------------------------------------------------------------------------------- /examples/ast-tinyc/inputs/erroneous1.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/examples/ast-tinyc/inputs/erroneous1.c -------------------------------------------------------------------------------- /examples/ast-tinyc/inputs/example1.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/examples/ast-tinyc/inputs/example1.c -------------------------------------------------------------------------------- /examples/ast-tinyc/inputs/example2.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/examples/ast-tinyc/inputs/example2.c -------------------------------------------------------------------------------- /examples/ast-tinyc/inputs/example3.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/examples/ast-tinyc/inputs/example3.c -------------------------------------------------------------------------------- /examples/ast-tinyc/inputs/example4.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/examples/ast-tinyc/inputs/example4.c -------------------------------------------------------------------------------- /examples/ast-tinyc/inputs/example5.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/examples/ast-tinyc/inputs/example5.c -------------------------------------------------------------------------------- /examples/ast-tinyc/main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/examples/ast-tinyc/main.c -------------------------------------------------------------------------------- /examples/ast-tinyc/parser.peg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/examples/ast-tinyc/parser.peg -------------------------------------------------------------------------------- /examples/ast-tinyc/system.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/examples/ast-tinyc/system.c -------------------------------------------------------------------------------- /examples/ast-tinyc/system.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/examples/ast-tinyc/system.h -------------------------------------------------------------------------------- /examples/ast-tinyc/utility.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/examples/ast-tinyc/utility.c -------------------------------------------------------------------------------- /examples/ast-tinyc/utility.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/examples/ast-tinyc/utility.h -------------------------------------------------------------------------------- /examples/calc.peg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/examples/calc.peg -------------------------------------------------------------------------------- /import/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/import/README.md -------------------------------------------------------------------------------- /import/char/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/import/char/README.md -------------------------------------------------------------------------------- /import/char/ascii_character_group.peg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/import/char/ascii_character_group.peg -------------------------------------------------------------------------------- /import/char/unicode_derived_core.peg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/import/char/unicode_derived_core.peg -------------------------------------------------------------------------------- /import/char/unicode_general_category.peg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/import/char/unicode_general_category.peg -------------------------------------------------------------------------------- /import/code/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/import/code/README.md -------------------------------------------------------------------------------- /import/code/pcc_ast.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/import/code/pcc_ast.md -------------------------------------------------------------------------------- /import/code/pcc_ast.peg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/import/code/pcc_ast.peg -------------------------------------------------------------------------------- /import/code/pcc_ast.v3.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/import/code/pcc_ast.v3.md -------------------------------------------------------------------------------- /import/code/pcc_ast.v3.peg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/import/code/pcc_ast.v3.peg -------------------------------------------------------------------------------- /misc/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/misc/README.md -------------------------------------------------------------------------------- /misc/unicode_derived_core.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/misc/unicode_derived_core.py -------------------------------------------------------------------------------- /misc/unicode_general_category.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/misc/unicode_general_category.py -------------------------------------------------------------------------------- /src/packcc.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/src/packcc.c -------------------------------------------------------------------------------- /tests/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/tests/.gitignore -------------------------------------------------------------------------------- /tests/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/tests/README.md -------------------------------------------------------------------------------- /tests/ascii.d/ascii.bats: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/tests/ascii.d/ascii.bats -------------------------------------------------------------------------------- /tests/ascii.d/expected.txt: -------------------------------------------------------------------------------- 1 | This 2 | is 3 | a 4 | test 5 | -------------------------------------------------------------------------------- /tests/ascii.d/input.peg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/tests/ascii.d/input.peg -------------------------------------------------------------------------------- /tests/ascii.d/input.txt: -------------------------------------------------------------------------------- 1 | This is a test 2 | -------------------------------------------------------------------------------- /tests/ast-calc.d/ast-calc.bats: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/tests/ast-calc.d/ast-calc.bats -------------------------------------------------------------------------------- /tests/ast-calc.d/expected.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/tests/ast-calc.d/expected.txt -------------------------------------------------------------------------------- /tests/ast-calc.d/input.txt: -------------------------------------------------------------------------------- 1 | 1+2*(3+4*(5+6)) 2 | 5*6*7*8/(1*2*3*4) 3 | -------------------------------------------------------------------------------- /tests/ast-calc.v3.d/ast-calc.bats: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/tests/ast-calc.v3.d/ast-calc.bats -------------------------------------------------------------------------------- /tests/ast-calc.v3.d/expected.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/tests/ast-calc.v3.d/expected.txt -------------------------------------------------------------------------------- /tests/ast-calc.v3.d/input.txt: -------------------------------------------------------------------------------- 1 | 1+2*(3+4*(5+6)) 2 | 5*6*7*8/(1*2*3*4) 3 | -------------------------------------------------------------------------------- /tests/basic.d/expected.txt: -------------------------------------------------------------------------------- 1 | This 2 | is 3 | a 4 | test 5 | -------------------------------------------------------------------------------- /tests/basic.d/input.peg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/tests/basic.d/input.peg -------------------------------------------------------------------------------- /tests/basic.d/input.txt: -------------------------------------------------------------------------------- 1 | This is a test 2 | -------------------------------------------------------------------------------- /tests/blank_lines.d/input.peg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/tests/blank_lines.d/input.peg -------------------------------------------------------------------------------- /tests/blank_lines.d/lines.bats: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/tests/blank_lines.d/lines.bats -------------------------------------------------------------------------------- /tests/calc.d/calc.bats: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/tests/calc.d/calc.bats -------------------------------------------------------------------------------- /tests/calc.d/expected.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/tests/calc.d/expected.txt -------------------------------------------------------------------------------- /tests/calc.d/input.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/tests/calc.d/input.txt -------------------------------------------------------------------------------- /tests/captures.d/expected.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/tests/captures.d/expected.txt -------------------------------------------------------------------------------- /tests/captures.d/input.peg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/tests/captures.d/input.peg -------------------------------------------------------------------------------- /tests/captures.d/input.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/tests/captures.d/input.txt -------------------------------------------------------------------------------- /tests/character_classes_0.d/expected.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/tests/character_classes_0.d/expected.txt -------------------------------------------------------------------------------- /tests/character_classes_0.d/input.peg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/tests/character_classes_0.d/input.peg -------------------------------------------------------------------------------- /tests/character_classes_0.d/input.txt: -------------------------------------------------------------------------------- 1 | ^ - \ ] ぬ 𝓴 J 7 2 | -------------------------------------------------------------------------------- /tests/character_classes_1.d/expected-utf8.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/tests/character_classes_1.d/expected-utf8.txt -------------------------------------------------------------------------------- /tests/character_classes_1.d/expected.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/tests/character_classes_1.d/expected.txt -------------------------------------------------------------------------------- /tests/character_classes_1.d/input-utf8.txt: -------------------------------------------------------------------------------- 1 | €£ 2 | -------------------------------------------------------------------------------- /tests/character_classes_1.d/input.peg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/tests/character_classes_1.d/input.peg -------------------------------------------------------------------------------- /tests/character_classes_1.d/input.txt: -------------------------------------------------------------------------------- 1 | abcz 2 | ZYXA 3 | 456 4 | ^_-@/\ 5 | -------------------------------------------------------------------------------- /tests/character_classes_2.d/expected.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/tests/character_classes_2.d/expected.txt -------------------------------------------------------------------------------- /tests/character_classes_2.d/input.peg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/tests/character_classes_2.d/input.peg -------------------------------------------------------------------------------- /tests/character_classes_2.d/input.txt: -------------------------------------------------------------------------------- 1 | a- bb c+ c- d+ d- ee ff 2 | -------------------------------------------------------------------------------- /tests/code_generation.d/generation.bats: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/tests/code_generation.d/generation.bats -------------------------------------------------------------------------------- /tests/code_generation.d/input.peg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/tests/code_generation.d/input.peg -------------------------------------------------------------------------------- /tests/code_generation.d/main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/tests/code_generation.d/main.c -------------------------------------------------------------------------------- /tests/code_indentation.d/code.bats: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/tests/code_indentation.d/code.bats -------------------------------------------------------------------------------- /tests/code_indentation.d/expected.c.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/tests/code_indentation.d/expected.c.txt -------------------------------------------------------------------------------- /tests/code_indentation.d/input.peg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/tests/code_indentation.d/input.peg -------------------------------------------------------------------------------- /tests/code_line_continuation.d/dump.bats: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/tests/code_line_continuation.d/dump.bats -------------------------------------------------------------------------------- /tests/code_line_continuation.d/expected.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/tests/code_line_continuation.d/expected.txt -------------------------------------------------------------------------------- /tests/code_line_continuation.d/input.peg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/tests/code_line_continuation.d/input.peg -------------------------------------------------------------------------------- /tests/debug_macro.d/expected.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/tests/debug_macro.d/expected.txt -------------------------------------------------------------------------------- /tests/debug_macro.d/input.peg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/tests/debug_macro.d/input.peg -------------------------------------------------------------------------------- /tests/debug_macro.d/input.txt: -------------------------------------------------------------------------------- 1 | Aaa 2 | BBCccbbCCBbbb 3 | -------------------------------------------------------------------------------- /tests/dump.d/dump.bats: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/tests/dump.d/dump.bats -------------------------------------------------------------------------------- /tests/dump.d/expected.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/tests/dump.d/expected.txt -------------------------------------------------------------------------------- /tests/error_action.d/expected.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/tests/error_action.d/expected.txt -------------------------------------------------------------------------------- /tests/error_action.d/input.peg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/tests/error_action.d/input.peg -------------------------------------------------------------------------------- /tests/error_action.d/input.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/tests/error_action.d/input.txt -------------------------------------------------------------------------------- /tests/escape_sequences.d/expected-hex-0.txt: -------------------------------------------------------------------------------- 1 | PackCC 2 | -------------------------------------------------------------------------------- /tests/escape_sequences.d/expected-unicode-0.txt: -------------------------------------------------------------------------------- 1 | 構文解析 2 | -------------------------------------------------------------------------------- /tests/escape_sequences.d/expected-unicode-1.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/tests/escape_sequences.d/expected-unicode-1.txt -------------------------------------------------------------------------------- /tests/escape_sequences.d/input-hex-0.txt: -------------------------------------------------------------------------------- 1 | PackCC 2 | -------------------------------------------------------------------------------- /tests/escape_sequences.d/input-unicode-0.txt: -------------------------------------------------------------------------------- 1 | 構文解析 2 | -------------------------------------------------------------------------------- /tests/escape_sequences.d/input-unicode-1.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/tests/escape_sequences.d/input-unicode-1.txt -------------------------------------------------------------------------------- /tests/escape_sequences.d/input.peg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/tests/escape_sequences.d/input.peg -------------------------------------------------------------------------------- /tests/import.d/.gitignore: -------------------------------------------------------------------------------- 1 | t_*/ 2 | t_*.* 3 | -------------------------------------------------------------------------------- /tests/import.d/check_line_number.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/tests/import.d/check_line_number.py -------------------------------------------------------------------------------- /tests/import.d/import.bats: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/tests/import.d/import.bats -------------------------------------------------------------------------------- /tests/import.d/make_input.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/tests/import.d/make_input.py -------------------------------------------------------------------------------- /tests/import.d/reference.peg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/tests/import.d/reference.peg -------------------------------------------------------------------------------- /tests/import.d/template.peg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/tests/import.d/template.peg -------------------------------------------------------------------------------- /tests/import_char.d/import_char.bats: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/tests/import_char.d/import_char.bats -------------------------------------------------------------------------------- /tests/import_char.d/input.peg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/tests/import_char.d/input.peg -------------------------------------------------------------------------------- /tests/invalid_identifier_mvar.d/input.peg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/tests/invalid_identifier_mvar.d/input.peg -------------------------------------------------------------------------------- /tests/invalid_identifier_mvar.d/mvar.bats: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/tests/invalid_identifier_mvar.d/mvar.bats -------------------------------------------------------------------------------- /tests/invalid_identifier_rvar.d/input.peg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/tests/invalid_identifier_rvar.d/input.peg -------------------------------------------------------------------------------- /tests/invalid_identifier_rvar.d/rvar.bats: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/tests/invalid_identifier_rvar.d/rvar.bats -------------------------------------------------------------------------------- /tests/issue_28.d/expected.txt: -------------------------------------------------------------------------------- 1 | A; 2 | 3 | Syntax error 4 | -------------------------------------------------------------------------------- /tests/issue_28.d/input.peg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/tests/issue_28.d/input.peg -------------------------------------------------------------------------------- /tests/issue_28.d/input.txt: -------------------------------------------------------------------------------- 1 | A; 2 | A 3 | -------------------------------------------------------------------------------- /tests/issue_78.d/input.peg: -------------------------------------------------------------------------------- 1 | main <- ( "A" 2 | -------------------------------------------------------------------------------- /tests/issue_78.d/issue_78.bats: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/tests/issue_78.d/issue_78.bats -------------------------------------------------------------------------------- /tests/issue_96.d/expected.txt: -------------------------------------------------------------------------------- 1 | 9 + 7 = 16 2 | -------------------------------------------------------------------------------- /tests/issue_96.d/input.peg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/tests/issue_96.d/input.peg -------------------------------------------------------------------------------- /tests/issue_96.d/input.txt: -------------------------------------------------------------------------------- 1 | 9 + 7 2 | -------------------------------------------------------------------------------- /tests/lines.d/input.peg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/tests/lines.d/input.peg -------------------------------------------------------------------------------- /tests/lines.d/lines.bats: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/tests/lines.d/lines.bats -------------------------------------------------------------------------------- /tests/main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/tests/main.c -------------------------------------------------------------------------------- /tests/negative_predicate.d/expected.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/tests/negative_predicate.d/expected.txt -------------------------------------------------------------------------------- /tests/negative_predicate.d/input.peg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/tests/negative_predicate.d/input.peg -------------------------------------------------------------------------------- /tests/negative_predicate.d/input.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/tests/negative_predicate.d/input.txt -------------------------------------------------------------------------------- /tests/null.d/.gitignore: -------------------------------------------------------------------------------- 1 | /input.bin 2 | -------------------------------------------------------------------------------- /tests/null.d/expected.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/tests/null.d/expected.txt -------------------------------------------------------------------------------- /tests/null.d/input.peg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/tests/null.d/input.peg -------------------------------------------------------------------------------- /tests/null.d/input.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/tests/null.d/input.txt -------------------------------------------------------------------------------- /tests/null.d/null.bats: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/tests/null.d/null.bats -------------------------------------------------------------------------------- /tests/position.d/expected.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/tests/position.d/expected.txt -------------------------------------------------------------------------------- /tests/position.d/input.peg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/tests/position.d/input.peg -------------------------------------------------------------------------------- /tests/position.d/input.txt: -------------------------------------------------------------------------------- 1 | 12345 67890 2 | -------------------------------------------------------------------------------- /tests/positive_predicate.d/expected.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/tests/positive_predicate.d/expected.txt -------------------------------------------------------------------------------- /tests/positive_predicate.d/input.peg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/tests/positive_predicate.d/input.peg -------------------------------------------------------------------------------- /tests/positive_predicate.d/input.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/tests/positive_predicate.d/input.txt -------------------------------------------------------------------------------- /tests/programmable_predicate.d/expected.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/tests/programmable_predicate.d/expected.txt -------------------------------------------------------------------------------- /tests/programmable_predicate.d/input.peg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/tests/programmable_predicate.d/input.peg -------------------------------------------------------------------------------- /tests/programmable_predicate.d/input.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/tests/programmable_predicate.d/input.txt -------------------------------------------------------------------------------- /tests/quantifiers.d/expected-optional-repeatable.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/tests/quantifiers.d/expected-optional-repeatable.txt -------------------------------------------------------------------------------- /tests/quantifiers.d/expected-optional.txt: -------------------------------------------------------------------------------- 1 | ? 2 | ?A 3 | -------------------------------------------------------------------------------- /tests/quantifiers.d/expected-repeatable.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/tests/quantifiers.d/expected-repeatable.txt -------------------------------------------------------------------------------- /tests/quantifiers.d/input-optional-repeatable.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/tests/quantifiers.d/input-optional-repeatable.txt -------------------------------------------------------------------------------- /tests/quantifiers.d/input-optional.txt: -------------------------------------------------------------------------------- 1 | ? 2 | ?A 3 | -------------------------------------------------------------------------------- /tests/quantifiers.d/input-repeatable.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/tests/quantifiers.d/input-repeatable.txt -------------------------------------------------------------------------------- /tests/quantifiers.d/input.peg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/tests/quantifiers.d/input.peg -------------------------------------------------------------------------------- /tests/strings.d/expected-escapes.txt: -------------------------------------------------------------------------------- 1 | \'" =€ 2 | -------------------------------------------------------------------------------- /tests/strings.d/expected-utf8.txt: -------------------------------------------------------------------------------- 1 | Hello 2 | world 3 | 😊 4 | -------------------------------------------------------------------------------- /tests/strings.d/expected.txt: -------------------------------------------------------------------------------- 1 | Hello 2 | world 3 | -------------------------------------------------------------------------------- /tests/strings.d/input-escapes.txt: -------------------------------------------------------------------------------- 1 | \'" =€ 2 | -------------------------------------------------------------------------------- /tests/strings.d/input-utf8.txt: -------------------------------------------------------------------------------- 1 | Hello world 😊 2 | -------------------------------------------------------------------------------- /tests/strings.d/input.peg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/tests/strings.d/input.peg -------------------------------------------------------------------------------- /tests/strings.d/input.txt: -------------------------------------------------------------------------------- 1 | Hello world 2 | -------------------------------------------------------------------------------- /tests/style.d/style.bats: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/tests/style.d/style.bats -------------------------------------------------------------------------------- /tests/substitution.d/expected.c.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/tests/substitution.d/expected.c.txt -------------------------------------------------------------------------------- /tests/substitution.d/expected.h.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/tests/substitution.d/expected.h.txt -------------------------------------------------------------------------------- /tests/substitution.d/input.peg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/tests/substitution.d/input.peg -------------------------------------------------------------------------------- /tests/substitution.d/subst.bats: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/tests/substitution.d/subst.bats -------------------------------------------------------------------------------- /tests/test.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/tests/test.sh -------------------------------------------------------------------------------- /tests/uncrustify.cfg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/tests/uncrustify.cfg -------------------------------------------------------------------------------- /tests/unused_functions.d/check.bats: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/tests/unused_functions.d/check.bats -------------------------------------------------------------------------------- /tests/unused_functions.d/test0.peg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/unused_functions.d/test1.peg: -------------------------------------------------------------------------------- 1 | %marker @foo 2 | -------------------------------------------------------------------------------- /tests/unused_functions.d/test2.peg: -------------------------------------------------------------------------------- 1 | rule <- &{ @@ = 1; } 2 | -------------------------------------------------------------------------------- /tests/unused_rule_elimination.d/dump.bats: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/tests/unused_rule_elimination.d/dump.bats -------------------------------------------------------------------------------- /tests/unused_rule_elimination.d/expected.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/tests/unused_rule_elimination.d/expected.txt -------------------------------------------------------------------------------- /tests/unused_rule_elimination.d/input.peg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/tests/unused_rule_elimination.d/input.peg -------------------------------------------------------------------------------- /tests/utils.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithy/packcc/HEAD/tests/utils.sh --------------------------------------------------------------------------------