Skip to content
Newer
Older
100644 70 lines (48 sloc) 1.42 KB
b1d7c4b Initial import to google code
austin_hastings@yahoo.com authored
1 =head1 TITLE
2
3 close.pir - A close compiler.
4
5 =head2 Description
6
7 This is the base file for the close compiler.
8
9 This file includes the parsing and grammar rules from
10 the src/ directory, loads the relevant PGE libraries,
11 and registers the compiler under the name 'close'.
12
13 =head2 Functions
14
15 =over 4
16
17 =item onload()
18
19 Creates the close compiler using a C<PCT::HLLCompiler>
20 object.
21
22 =cut
23
cdb2286 Grammar refactor checkpoint. Nothing works.
austin_hastings@yahoo.com authored
24 .namespace [ 'close' ; 'Compiler' ]
b1d7c4b Initial import to google code
austin_hastings@yahoo.com authored
25
26 #.loadlib 'close_group'
27
28 .sub 'onload' :anon :load :init
29 load_bytecode 'PCT.pbc'
30
31 $P0 = get_hll_global ['PCT'], 'HLLCompiler'
32 $P1 = $P0.'new'()
33 $P1.'language'('close')
5e2ced7 NOT WORKING: Commit before directory moves.
austin_hastings@yahoo.com authored
34 $P1.'parsegrammar'('Slam::Grammar')
35 $P1.'parseactions'('Slam::Grammar::Actions')
b1d7c4b Initial import to google code
austin_hastings@yahoo.com authored
36 $P1.'commandline_banner'("Close for Parrot VM\n")
37 $P1.'commandline_prompt'('> ')
38 .end
39
40 =item main(args :slurpy) :main
41
42 Start compilation by passing any command line C<args>
43 to the close compiler.
44
45 =cut
46
47 .sub 'main' :main
48 .param pmc args
49
50 $P0 = compreg 'close'
51 $P1 = $P0.'command_line'(args)
46113f4 Checkpoint: segfault problems
austin_hastings@yahoo.com authored
52 exit 0
b1d7c4b Initial import to google code
austin_hastings@yahoo.com authored
53 .end
54
55 .include 'src/gen_builtins.pir'
56 .include 'src/gen_grammar.pir'
57 .include 'src/gen_actions.pir'
366aead Added Config.nqp to library for getting config data.
austin_hastings@yahoo.com authored
58 .include 'src/parser/grammar_actions.pir'
212b2a0 Updated configurability. Added some utility classes.
austin_hastings@yahoo.com authored
59 .include 'src/parser/declaration_actions.pir'
60 .include 'src/parser/expression_actions.pir'
61 .include 'src/parser/name_actions.pir'
5e2ced7 NOT WORKING: Commit before directory moves.
austin_hastings@yahoo.com authored
62 .include 'src/parser/parse_utils.pir'
212b2a0 Updated configurability. Added some utility classes.
austin_hastings@yahoo.com authored
63 .include 'src/parser/statement_actions.pir'
64 .include 'src/parser/token_actions.pir'
cdb2286 Grammar refactor checkpoint. Nothing works.
austin_hastings@yahoo.com authored
65 .include 'src/gen_library.pir'
b1d7c4b Initial import to google code
austin_hastings@yahoo.com authored
66
67 =back
68
69 =cut
Something went wrong with that request. Please try again.